From: Marco Patzer <homerow@lavabit.com>
To: ntg-context@ntg.nl
Subject: Re: ToC - dots distance
Date: Thu, 24 Jan 2013 10:30:32 +0100 [thread overview]
Message-ID: <20130124093032.GB25656@homerow> (raw)
In-Reply-To: <9B3CCD47-9361-4383-887B-3EDE6923042B@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 984 bytes --]
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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2013-01-24 9:30 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
2013-01-24 9:30 ` Marco Patzer [this message]
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=20130124093032.GB25656@homerow \
--to=homerow@lavabit.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).