* How do I tell \completecontent not to include anything below the \chapter level?
@ 2014-08-20 14:14 Gerben Wierda
2014-08-20 15:19 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2014-08-20 14:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
See subject. Same question for other levels.
G
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do I tell \completecontent not to include anything below the \chapter level?
2014-08-20 14:14 How do I tell \completecontent not to include anything below the \chapter level? Gerben Wierda
@ 2014-08-20 15:19 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-08-20 15:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.08.2014 um 16:14 schrieb Gerben Wierda <gerben.wierda@rna.nl>:
> See subject. Same question for other levels.
Method 1 (MkII only):
\starttext
\completecontent[level=chapter]
\dorecurse{10}
{\chapter{Chapter #1}
\dorecurse{2}
{\section{Section #1.##1}
\dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}
\stoptext
Method 2 (MkII and MkIV):
\definecombinedlist[content][chapter]
\starttext
\completecontent
\dorecurse{10}
{\chapter{Chapter #1}
\dorecurse{2}
{\section{Section #1.##1}
\dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}
\stoptext
Method 3 (MkIV only):
\starttext
\completecontent[list=chapter] % list={chapter,section}
\dorecurse{10}
{\chapter{Chapter #1}
\dorecurse{2}
{\section{Section #1.##1}
\dorecurse{2}{\subsection{Subsection #1.##1.####1}}}}
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-20 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 14:14 How do I tell \completecontent not to include anything below the \chapter level? Gerben Wierda
2014-08-20 15:19 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).