Am 26.02.2014 um 20:31 schrieb Thangalin
Hi,
The predefined alternative list setups (e.g., a, b, c...) provide various ways to format the ToC with the page number to the right of the list entry title. An alternative with the page number to the left of the list entry title would be useful.
\unprotect
\define[3]\SectionToCEntry{% \hbox \strc_lists_get_reference_attribute\v!all{% \par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par% } }
\protect
\setuplist[section][ alternative=command, command=\SectionToCEntry, ]
When you want a interactive list entry replace “alternative=command” with “alternative=interactive”. \define[3]\SectionToCEntry {\leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=interactive, command=\SectionToCEntry] Wolfgang