Changes

Jump to navigation Jump to search
1,214 bytes added ,  21:07, 18 August 2019
m
referring to elements in an external file
</texcode>
 
==References to an external file==
 
You can refer to referenced elements in an external file. MKIV requires for this the presence of the '''tuc-file''' of the referenced file. ConTeXt will catch the information to be included from this file.
 
===Example===
External files: hasseltbook.tex/pdf/'''tuc'''
 
The contents of hasseltbook.tex could be:
 
<texcode>
\starttext
 
\startstandardmakeup
\midaligned{\tfd Festivities in Hasselt}
\stopstandardmakeup
 
\startchapter[title=Euifeest,reference=euifeest]
Something about the Euifeest.\index{Euifeest}
\stopchapter
 
\stoptext
</texcode>
 
In your document you can say:
 
<texcode>
\setupinteraction
[state=start]
 
\useexternaldocument
[hia][hasseltbook][Festivities in Hasselt]
 
\setupinteraction
[state=start,
color=green,
style=bold]
 
\starttext
Most tourist attractions are described in \from[hia].\crlf
A description of the \about[hia::euifeest] is found in \from[hia].\crlf
The eui||feest is described on \at{page}[hia::euifeest] in \from[hia].\crlf
See for more information \in{chapter}[hia::euifeest] in \from[hia].
\stoptext
</texcode>
 
Note how the link is established to the externalfile:
<texcode>\command[symbolic-name::reference]</texcode>
==Related Modules==
48

edits

Navigation menu