Procházka Lukáš Ing. - Pontex s. r. o. <mailto:l...@pontex.cz>
20. Juni 2015 11:30
Hello,

I'm not able to limit level of sections in TOC so to not show \subsubsection:

----
%\setuplist[content][level=subsection] % Doesn't work
%\setuplist[content][section,subsection] % Doesn't work

\starttext
  \placecontent[level=subsection] % Doesn't work
  \hairline
  \placecontent[level=3] % Doesn't work
  \hairline

  \section{Sec}
    \subsection{SSec}
      \subsubsection{SSSec}
\stoptext
----

I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and also contextref.pdf (pg. 218) but without success.
The level key doesn't work with MkIV but you can use the following two methods.

1. Use the \placelist command and list the sections you want to show, e.g.

    \placelist[chapter,section,subsection]

2. Use the list key for \placecontent to show only the listed entries, e.g.

    \placecontent[list={chapter,section,subsection}]

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to