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
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 -----------------------------------------------------------------
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
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
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 -----------------------------------------------------------------
participants (3)
-
Andreas Harder
-
Hans Hagen
-
Thomas A. Schmitz