11 Feb
2012
11 Feb
'12
7:30 p.m.
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