On Thu, May 26, 2011 at 05:30:55PM +0200, Wolfgang Schuster wrote:
Am 26.05.2011 um 17:13 schrieb Alan Braslau:
This solution: [alternative=command,command=\ChapterList] breaks interaction; How can one get [interaction=all] to work?
Something like this:
\setupinteraction[state=start]
\define[3]\ChapterList {\vbox{#1\crlf#2\hfill#3}}
\setuplist [chapter] [alternative=vertical, command=\ChapterList, interaction=all]
\starttext
\completecontent
\chapter{One} \chapter{Two}
\stoptext
I guess i should take a closer look at “horizontal” and “vertical” because the label key has no effect for them.
Wolfgang
\define[3]\ChapterList {\vbox{\par\noindent\currentlistsymbol#1\crlf#2\enspace\listdots\enspace#3}} \setuplist[chapter][label=yes,alternative=vertical,command=\ChapterList,interaction=all] Almost works. Almost in that all lines get indented by one level, and then the page number (and the title if it is long and multi-line) stick(s) out by this much on the right. The manual is a bit cryptic concerning horizontal and vertical: "As an alternative for none, we can use horizontal and vertical. Both commands have their spacing tuned for typesetting lists in for instance menus." Alan