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 />

\setupsynonyms<br />

Look at chapter 9 for <strong>an</strong>other application of synonyms.<br />

contents<br />

index<br />

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

25 Refering to text elements<br />

definitions<br />

colofon<br />

For referring to one location in a document from <strong>an</strong>other you c<strong>an</strong> use the comm<strong>an</strong>d:<br />

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

The curly braces contain text, the brackets contain a logical label. If you have written a<br />

chapter header like this:<br />

\chapter[hotel]{Hotels in Hasselt}<br />

then you c<strong>an</strong> refer to this chapter with:<br />

\in{chapter}[hotel]<br />

After processing the chapter number is available <strong>an</strong>d the reference could look something<br />

like: chapter 23. You c<strong>an</strong> use \in for <strong>an</strong>y references to text elements like chapters,<br />

sections, figures, tables, formulae etc.<br />

Another example:<br />

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

\startitemize[n,packed]<br />

\item swimming<br />

exit<br />

search +<br />

go back<br />

– +<br />

25 74

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

Saved successfully!

Ooh no, something went wrong!