From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ToC - dots distance
Date: Wed, 23 Jan 2013 23:52:23 +0100 [thread overview]
Message-ID: <9B3CCD47-9361-4383-887B-3EDE6923042B@gmail.com> (raw)
In-Reply-To: <20130123221103.GN15403@homerow>
Am 23.01.2013 um 23:11 schrieb Marco Patzer <homerow@lavabit.com>:
> 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]
\newconditional\PavelState
\define\PavelFiller
{\ifconditional\PavelState
\global\setfalse\PavelState
\filler[pavel-1]%
\else
\global\settrue\PavelState
\filler[pavel-2]%
\fi}
% \define\PavelFiller
% {\ifodd\structurelistlocation % does the value alternate?
% \filler[pavel-1]%
% \else
% \filler[pavel-2]%
% \fi}
\setuplistalternative[c][filler=\PavelFiller]
\starttext
\completecontent[alternative=c]
\dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-01-23 22:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 19:10 hanak
2013-01-23 19:21 ` Wolfgang Schuster
2013-01-23 19:56 ` Devendra Ghate
2013-01-23 20:05 ` Wolfgang Schuster
2013-01-23 20:09 ` Devendra Ghate
2013-01-23 22:11 ` Marco Patzer
2013-01-23 22:52 ` Wolfgang Schuster [this message]
2013-01-24 9:30 ` Marco Patzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9B3CCD47-9361-4383-887B-3EDE6923042B@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).