[NTG-context] TOC with wrong lines in latest beta
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Sat Feb 11 19:30:47 CET 2012
Am 10.02.2012 um 18:15 schrieb Pablo Rodríguez:
> Hi there,
>
> in the following sample, the TOC has chapter 2 on the same line as
> section 1.
>
> \setuplist[chapter][alternative=g,align=middle,aligntitle=yes]
> \setuplist[section][alternative=d]
> \starttext
> \completecontent
> \chapter{chapter 1}
> \section{section 1}
> \chapter{chapter 2}
> \section{section 2}
> \stoptext
>
> I'm afraid that this i a bug, since chapter 2 should be on a new line.
No it isn’t.
You shouldn’t also misuse the “g” alternative which is meant for interactive document
to center the entry, instead use the “command” alternative.
\definelistplacement[ChapterList][command]%
{\endgraf
\midaligned{#2}%
\endgraf}
\setuplist[chapter][alternative=ChapterList]
Wolfgang
More information about the ntg-context
mailing list