ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE ConTEXt an excursion - Pragma ADE

pragma.ade.nl
from pragma.ade.nl More from this publisher
29.05.2014 Views

Refering to text elements \setupsynonyms Look at chapter 9 for another application of synonyms. contents index commands 25 Refering to text elements definitions colofon For referring to one location in a document from another you can use the command: \in{.1.}{.2.}[ref] The curly braces contain text, the brackets contain a logical label. If you have written a chapter header like this: \chapter[hotel]{Hotels in Hasselt} then you can refer to this chapter with: \in{chapter}[hotel] After processing the chapter number is available and the reference could look something like: chapter 23. You can use \in for any references to text elements like chapters, sections, figures, tables, formulae etc. Another example: There are a number of things you can do in Hasselt: \startitemize[n,packed] \item swimming exit search + go back – + 25 74

Refering to text elements \item sailing \item[hiking] hiking \item biking \stopitemize Activities like \in{activity}[hiking] described on \at{page}[hiking] are very tiring. This would look like this: There are a number of things you can do in Hasselt: 1. swimming 2. sailing 3. hiking 4. biking contents index commands definitions colofon Activities like activity 3 described on page 75 are very tiring. As you can see, it is also possible to refer to pages. This is done with: \at{.1.}{.2.}[ref] For example with: \at{page}[hiking] This command can be used in combination with: \pagereference[ref] exit and \textreference[ref]{...} search + go back – + 25 75

Refering to text elements<br />

\item sailing<br />

\item[hiking] hiking<br />

\item biking<br />

\stopitemize<br />

Activities like \in{activity}[hiking] described on \at{page}[hiking]<br />

are very tiring.<br />

This would look like this:<br />

There are a number of things you c<strong>an</strong> do in Hasselt:<br />

1. swimming<br />

2. sailing<br />

3. hiking<br />

4. biking<br />

contents<br />

index<br />

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

definitions<br />

colofon<br />

Activities like activity 3 described on page 75 are very tiring.<br />

As you c<strong>an</strong> see, it is also possible to refer to pages. This is done with:<br />

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

For example with:<br />

\at{page}[hiking]<br />

This comm<strong>an</strong>d c<strong>an</strong> be used in combination with:<br />

\pagereference[ref]<br />

exit<br />

<strong>an</strong>d<br />

\textreference[ref]{...}<br />

search +<br />

go back<br />

– +<br />

25 75

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

Saved successfully!

Ooh no, something went wrong!