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

Table of contents (lists) \placelist[..,...,..][..,..=..,..] contents index So if you want a table of content you type: \placecontent[level=section] or \completecontent[level=section] only the sections will be displayed. You might need this option when you have a well structured document that has sub sub sub sub sub sections and you don’t want those in the table of contents. commands definitions colofon A long list or a long table of contents will use up more than one page. To be able to force page breaking you can type: \completecontent[2.2,8.5,12.3.3] A page break will occur after section 2.2 and 8.5 and sub section 12.3.3. In some cases you want to be able to write your own text in an automatically generated list. This is done with \writetolist[.1.]{.2.}{.3.} \writebetweenlist[.1.]{.2.} For example if you want to make a remark in your table of contents after a section titled Hotels in Hasselt you can type: \section{Hotels in Hasselt} \writebetweenlist[section]{\blank} exit search + go back – + 22 70

Registers \writetolist[section]{}{---under construction---} \writebetweenlist[section]{\blank} contents index commands 23 Registers definitions colofon It is possible to generate one or more registers. By default the command \index is available. If you want to add a word to the index you type: \index{town hall} The word town hall will appear as an index entry. An index is sorted in alphabetical order by an auxilliary program. Sometimes the index word does not appear in normal alphabetic order. For example, entries such as symbols have to provide extra sorting information in order to produce a correct alphabetical list: \index[minus]{$-$} Sometimes you have sub- or sub sub entries. These can be defined as follows: \index{town hall+location} \index{town hall+architecture} You can generate your indexlist with: exit or \placeindex \completeindex search + go back The command \index is a predefined CONT E XT command, but of course you can also define your own registers. – + 23 71

Table of contents (lists)<br />

\placelist[..,...,..][..,..=..,..]<br />

contents<br />

index<br />

So if you w<strong>an</strong>t a table of content you type:<br />

\placecontent[level=section]<br />

or<br />

\completecontent[level=section]<br />

only the sections will be displayed. You might need this option when you have a well<br />

structured document that has sub sub sub sub sub sections <strong>an</strong>d you don’t w<strong>an</strong>t those in<br />

the table of contents.<br />

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

definitions<br />

colofon<br />

A long list or a long table of contents will use up more th<strong>an</strong> one page. To be able to force<br />

page breaking you c<strong>an</strong> type:<br />

\completecontent[2.2,8.5,12.3.3]<br />

A page break will occur after section 2.2 <strong>an</strong>d 8.5 <strong>an</strong>d sub section 12.3.3.<br />

In some cases you w<strong>an</strong>t to be able to write your own text in <strong>an</strong> automatically generated<br />

list. This is done with<br />

\writetolist[.1.]{.2.}{.3.}<br />

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

For example if you w<strong>an</strong>t to make a remark in your table of contents after a section titled<br />

Hotels in Hasselt you c<strong>an</strong> type:<br />

\section{Hotels in Hasselt}<br />

\writebetweenlist[section]{\bl<strong>an</strong>k}<br />

exit<br />

search +<br />

go back<br />

– +<br />

22 70

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

Saved successfully!

Ooh no, something went wrong!