Difference between revisions of "Command/coupledocument"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "Reference/en|" to "Commands|")
 
(8 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>coupledocument</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 22: Line 25:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== 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 ==
 +
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>
  
== Example ==
+
== See also ==
<!-- Please fill in an example if you can -->
+
* {{cmd|setuphead}}, specifically the <code>file=</code> key.
  
== See also ==
+
== Help from ConTeXt-Mailinglist/Forum ==
<!-- something like [[cmd:goto|\goto]] -->
+
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|coupledocument]]
+
[[Category:Command/Interaction|coupledocument]]

Latest revision as of 17:31, 10 November 2019

\coupledocument

Syntax (autogenerated)


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: