Changes

Jump to navigation Jump to search
1,084 bytes added ,  20:52, 1 January 2015
no edit summary
\subject{Sub B}
\section{Sec C}
\stoptext
</context>
 
Quite probably, the un-numbered sections to be included are at the beginning or end of the document (e.g. a Preface and a Bibliography) and should *not* modify the enumeration of the actual numbered sections. In this case iyou
have to use "incrementnumber=list" instead. A slightly modified example would be:
 
<context mode=mkiv source=yes>
% mode=mkiv
\setuppapersize[A7][A7]
 
%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][margin=1.5em]
 
\setupcombinedlist[content][list={subject,subject,section,subsection}]
 
\starttext
\completecontent
\subject{Preface}
\section{One}
\subsection{Sec A}
\section{Two}
\subject{Bibliograpy}
\stoptext
</context>
\stoptext
</texcode>
texcode>
\setuppagenumbering[numberseparator=/]
\placecombinedlist[MyContentsList]
6

edits

Navigation menu