[NTG-context] ToC - dots distance

Marco Patzer homerow at lavabit.com
Thu Jan 24 10:30:32 CET 2013


On 2013–01–23 Wolfgang Schuster wrote:

> > Out of curiosity: Is possible to set up the new filler mechanism in
> > a way to yield alternating dots like in the TeXbook?
> > 
> >>> default look:
> >>> 
> >>> 1. First chapter  ...................   1
> >>> 2. Second chapter ...................  10 
> >>> 
> >>> requested look:
> >>> 
> >>> 1. First chapter  . . . . . . . . . .   1
> >>> 2. Second chapter . . . . . . . . . .  10
> > 
> > alternating look (Knuths' TeXbook style)
> > 
> > 1. First chapter . . . . . . . . . . .  1
> > 2. Second chapter . . . . . . . . . .  10
> 
> \definefiller[pavel-0][alterntive=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]
> 
> […]

Very nice. I wikified¹ that code in case someone needs it.

Marco


[1] http://wiki.contextgarden.net/Table_of_Contents#Alternating_filler_dots
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20130124/7ddc119e/attachment.pgp>


More information about the ntg-context mailing list