Difference between revisions of "Command/coupledocument"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Add description, example, See Also, category)
Line 25: Line 25:
  
 
== Description ==  
 
== Description ==  
 
+
Together with {{cmd|setuphead}} (see example), this can be used to make the section headings of the document link to the corresponding heads in another version of the document. (E.g., Section 1.2.1 of the screen PDF links to Section 1.2.1 of the print PDF.)
  
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
From the [http://archive.contextgarden.net/message/20010211.223535.a69b7cdd.fi.html mailing list].
 +
<texcode>
 +
\coupledocument
 +
[alternative] % symbolic name
 +
[docu-p] % name of paper version
 +
[chapter,section,subsection]
 +
[the printable version]
  
 +
\setuphead
 +
[chapter,section,subsection]
 +
[file=alternative]
 +
</texcode>
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|setuphead}}, specifically the <code>file=</code> key.
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 38: Line 48:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|coupledocument]]
+
[[Category:Command/Interacton|coupledocument]]

Revision as of 23:25, 21 May 2012

\coupledocument

Syntax

\coupledocument[...][...][...]
[...] name
[...] file
[...] name


Description

Together with \setuphead (see example), this can be used to make the section headings of the document link to the corresponding heads in another version of the document. (E.g., Section 1.2.1 of the screen PDF links to Section 1.2.1 of the print PDF.)


Example

From the mailing list.

\coupledocument 
 [alternative] % symbolic name 
 [docu-p] % name of paper version 
 [chapter,section,subsection] 
 [the printable version] 

\setuphead 
 [chapter,section,subsection] 
 [file=alternative]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: