Changes

Jump to navigation Jump to search
901 bytes added ,  09:26, 24 January 2013
Add section about alternating filler dots
Processing the component file will give you a separate table of contents for each component.
 
== Alternating filler dots ==
 
The following code was provided by Wolfgang on the mailing list. It produces alternating dots like in Knuths' TeXbook and MetaFont book. The {{cmd|definefiller}} command requires ConTeXt version 2013.01.13 or newer.
 
<texcode>
\definefiller
[pavel-0]
[alternative=symbol,
method=global,
width=1em,
leftmargin=.5em,
rightmargin=.5em,
symbol=\clap{.}]
 
\definefiller
[pavel-1]
[pavel-0]
[align=left]
 
\definefiller
[pavel-2]
[pavel-0]
[align=middle]
 
\newconditional\PavelState
 
\define\PavelFiller
{\ifconditional\PavelState
\global\setfalse\PavelState
\filler[pavel-1]%%
\else
\global\settrue\PavelState
\filler[pavel-2]%%
\fi}
 
\setuplistalternative
[c]
[filler=\PavelFiller]
 
\starttext
\completecontent [alternative=c]
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stoptext
</texcode>
69

edits

Navigation menu