* vertical alignment in TOC
@ 2011-07-19 18:36 Thomas A. Schmitz
2011-07-19 21:22 ` Hans Hagen
2011-07-19 22:43 ` Andreas Harder
0 siblings, 2 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2011-07-19 18:36 UTC (permalink / raw)
To: ntg-context
Hi all,
for an edited volume, entries in the TOC have two lines, title, then
author. Is is possible to have the page number aligned to the title,
i.e. the first of these lines?
Example:
\setuphead[chapter]
[number=no]
\setuplist[chapter]
[width=0cm]
\starttext
\startchapter[title=One,list={A Title \crlf An Author}]
\input knuth
\stopchapter
\page
\placelist[chapter][criterium=text]
\stoptext
Thanks!
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vertical alignment in TOC
2011-07-19 18:36 vertical alignment in TOC Thomas A. Schmitz
@ 2011-07-19 21:22 ` Hans Hagen
2011-07-19 22:43 ` Andreas Harder
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2011-07-19 21:22 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
On 19-7-2011 8:36, Thomas A. Schmitz wrote:
> Hi all,
>
> for an edited volume, entries in the TOC have two lines, title, then
> author. Is is possible to have the page number aligned to the title,
> i.e. the first of these lines?
i'll send you a temp hack
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vertical alignment in TOC
2011-07-19 18:36 vertical alignment in TOC Thomas A. Schmitz
2011-07-19 21:22 ` Hans Hagen
@ 2011-07-19 22:43 ` Andreas Harder
2011-07-20 12:13 ` Thomas A. Schmitz
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Harder @ 2011-07-19 22:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.07.2011 um 20:36 schrieb Thomas A. Schmitz:
> Hi all,
>
> for an edited volume, entries in the TOC have two lines, title, then author. Is is possible to have the page number aligned to the title, i.e. the first of these lines?
>
> Example:
>
> \setuphead[chapter]
> [number=no]
>
> \setuplist[chapter]
> [width=0cm]
>
> \starttext
>
> \startchapter[title=One,list={A Title \crlf An Author}]
>
> \input knuth
>
> \stopchapter
>
> \page
>
> \placelist[chapter][criterium=text]
\define[3]\ChapterList%
{\bTABLE[offset=none,rulethickness=0pt,width=broad]
\bTR
% \bTD #1 \eTD
\bTD #2 \eTD
\bTD[width=1.5em,align={left,high}]\strut #3 \eTD
\eTR
\eTABLE}
\setuplist[chapter][alternative=command,command=\ChapterList]
\placelist[chapter][criterium=text]
\stoptext
If I got your right, this should work.
Greeting
Andreas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vertical alignment in TOC
2011-07-19 22:43 ` Andreas Harder
@ 2011-07-20 12:13 ` Thomas A. Schmitz
2011-07-20 14:55 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2011-07-20 12:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 07/20/2011 12:43 AM, Andreas Harder wrote:
>
>
>
> \define[3]\ChapterList%
> {\bTABLE[offset=none,rulethickness=0pt,width=broad]
> \bTR
> % \bTD #1 \eTD
> \bTD #2 \eTD
> \bTD[width=1.5em,align={left,high}]\strut #3 \eTD
> \eTR
> \eTABLE}
>
> \setuplist[chapter][alternative=command,command=\ChapterList]
>
> \placelist[chapter][criterium=text]
>
> \stoptext
>
> If I got your right, this should work.
>
Thanks Andreas, this one looks very good! Hans had sent me a more
complex patch which may go into the core (something like
"alternative=high"), but this is good to have.
All best
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: vertical alignment in TOC
2011-07-20 12:13 ` Thomas A. Schmitz
@ 2011-07-20 14:55 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2011-07-20 14:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
On 20-7-2011 2:13, Thomas A. Schmitz wrote:
> On 07/20/2011 12:43 AM, Andreas Harder wrote:
>>
>> \bTD[width=1.5em,align={left,high}]\strut #3 \eTD
best use endstruts as well
\define[3]\ChapterList
{\bTABLE[offset=none,rulethickness=0pt,width=broad]
\bTR
% \bTD \begstrut#1\endstrut \eTD
\bTD \begstrut#2\endstrut \eTD
\bTD[width=1.5em,align={left,high}]\begstrut#3\endstrut \eTD
\eTR
\eTABLE}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-20 14:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-19 18:36 vertical alignment in TOC Thomas A. Schmitz
2011-07-19 21:22 ` Hans Hagen
2011-07-19 22:43 ` Andreas Harder
2011-07-20 12:13 ` Thomas A. Schmitz
2011-07-20 14:55 ` Hans Hagen
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).