29.05.2014 Views

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Interactive mode in electronic documents<br />

30.4 Interaction between documents<br />

It is possible to link one document to <strong>an</strong>other. First you have to state that you w<strong>an</strong>t to<br />

refer to <strong>an</strong>other document. This is done by:<br />

\useexternaldocument[.1.][.2.][.3.]<br />

The first bracket pair must contain a logical name of the document, the second pair the<br />

file name of the other document <strong>an</strong>d the third pair is used for the title of the document.<br />

contents<br />

index<br />

comm<strong>an</strong>ds<br />

definitions<br />

colofon<br />

For refering to these other documents you c<strong>an</strong> use:<br />

\from[ref]<br />

The curly braces contain text <strong>an</strong>d the brackets contain the reference.<br />

Look at the example below.<br />

\useexternaldocument[hia][hasbook][Hasselt in August]<br />

Most tourist attractions are described in \from[hia]. A description<br />

of the Eui||feest is found in \from[hia::euifeest]. A description of<br />

the \goto{Eui||feest}[hia::euifeest] is found in \from[hia]. The<br />

eui||feest is described on \at{page}[hia::euifeest] in \from[hia].<br />

See for more information \in{chapter}[hia::euifeest] in \from[hia].<br />

The \useexternaldocument is usually typed in the set up area of your input file.<br />

After processing your input file (at least two times to get the references right), <strong>an</strong>d the file<br />

hasbook.tex, you will have two PDF documents. The references above have the following<br />

me<strong>an</strong>ing:<br />

• \from[hia] will produce the active title you gave in the third bracket pair of<br />

\useexternaldocument <strong>an</strong>d is linked to the first page of hasbook.pdf<br />

exit<br />

search +<br />

go back<br />

– +<br />

30 84

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!