29.05.2014 Views

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Interactive mode in electronic documents<br />

\setupinteraction<br />

[state=start,<br />

color=green,<br />

style=bold]<br />

The hyper links are now generated automatically <strong>an</strong>d the active words are displayed in<br />

bold green.<br />

The interactive document is considerably bigger (in MB’s) th<strong>an</strong> its paper cousin because<br />

hyperlinks consume space. You will also notice that processing time becomes longer.<br />

Therefore it is advisable to de-activate the interactive mode as long as your document is<br />

under construction.<br />

contents<br />

index<br />

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

definitions<br />

colofon<br />

30.3 Interaction within a document<br />

Earlier you have seen how to make a reference with \in <strong>an</strong>d \at. You may have wondered<br />

why you had to type \in{chapter}[chap:introduction]. In the first place chapter <strong>an</strong>d<br />

its corresponding chapter number will not be separated at line breaking. In the second<br />

place the word chapter <strong>an</strong>d its number are typeset differently in the interactive mode.<br />

This gives the user a larger clickable area.<br />

In interactive mode there is one other comm<strong>an</strong>d that has little me<strong>an</strong>ing in the paper<br />

vari<strong>an</strong>t.<br />

\goto{.1.}{.2.}[ref,..]<br />

The curly braces contain text, the brackets contain a reference (logical name, location).<br />

In \goto{Hasselt}[fig:citypl<strong>an</strong>] all streets are build in a circular<br />

way.<br />

In the interactive document Hasselt will be green <strong>an</strong>d active. You will jump to a map of<br />

Hasselt.<br />

exit<br />

search +<br />

go back<br />

– +<br />

30 83

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

Saved successfully!

Ooh no, something went wrong!