[NTG-context] Table of Content

Ursula Hermann ursula.hermann at univie.ac.at
Thu Feb 11 12:11:46 CET 2021


Dear List!


I did this example, which works perfect. If i would like to  take a new page after the Table of Content, is \page the right way?

% mode=mkiv
\setuppapersize[A7][A7]
\language[de]
%list the "subject" sections in the ToC but don't modify the "section" counter:
\setuphead[subject]  [incrementnumber=list]

%"width": distance between number and text in the ToC entry, "margin" : indent of ToC entry relative to left page margin
\setuplist[section][width=1.5em]
\setuplist[subsection][width=2.5em, margin=1.5em]
\setuplist[subject]
\setuplist[subject, section, subsection]

\setupcombinedlist[content][list={subject,section,subsection}, alternative=c]

\starttext
\placecontent
\setupuserpagenumber[numberconversion=romannumerals]
\setcounter[userpage][5]
\page
\subject{Vorwort}
\page
\setupuserpagenumber[numberconversion=numbers]
\setcounter[userpage][12]
\section{One}
\subsection{Sec A}
\section{Two}
\subject{Bibliography}
\stoptext

Uschi


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210211/4fb76b87/attachment.htm>


More information about the ntg-context mailing list