[NTG-context] Table of contents: style and subject

Idris Samawi Hamid ادريس سماوي حامد Idris.Hamid at colostate.edu
Sun Mar 4 15:03:50 CET 2018


On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen <pragma at wxs.nl> wrote:

>> A working minimal example follows. Is this the recommended practice?  
>> Can it be streamlined further?
:
>> \placecontent
>
> \placelist[content]
>     [subject,section,subsection,subsubsection]

Hm, toggling lines 12-13 below: Line 13 makes the TOC disappear entirely:

==============
\setuphead[subject]
   [incrementnumber=yes,  % keep track of the number
    number=no]            % but don't show it

\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setuplist[subject,section,subsection,subsubsection]
   [alternative=c,style=bold]
\setupcombinedlist[content]
   [list={subject,section,subsection,subsubsection}]
% \placecontent     % line 12
\placelist[content] % line 13
    [subject,section,subsection,subsubsection]
\stop
\stoptitle
\page
\startsection[title={Section One},reference={}]
new page \page
\stopsection

\startsection[title={Section Two},reference={}]
new page \page
\stopsection

\startsubject[title={Subject},reference={}]

\stopsubject
\stoptext
==============

-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512


More information about the ntg-context mailing list