ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* select TOC elements
@ 2013-04-16  8:46 Meer, H. van der
  2013-04-16 13:14 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2013-04-16  8:46 UTC (permalink / raw)
  To: NTG ConTeXt

With \placecontents I am able to put the TOC for a chapter right after the chapter heading. So far so good. But now I would like to suppress in the overall TOC all elements below the chapters. 
How to? 
At the moment I am using \completecontent for calling up the TOC. I looked in the ConTeXtGarden but the explanation for \completecontent didn't make me any wiser.For example, I do not understand the meaning of the three successive []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help me out.

Hans van der Meer



___________________________________________________________________________________
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: select TOC elements
  2013-04-16  8:46 select TOC elements Meer, H. van der
@ 2013-04-16 13:14 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2013-04-16 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.04.2013 um 10:46 schrieb "Meer, H. van der" <H.vanderMeer@uva.nl>:

> With \placecontents I am able to put the TOC for a chapter right after the chapter heading. So far so good. But now I would like to suppress in the overall TOC all elements below the chapters. 
> How to? 
> At the moment I am using \completecontent for calling up the TOC. I looked in the ConTeXtGarden but the explanation for \completecontent didn't make me any wiser.For example, I do not understand the meaning of the three successive []-pairs in \completecontent[..][..][..] and the link to \setuplist didn't help me out.

The syntax description is wrong, \placecontent has only one optional argument which expects a assignment, e.g. alternative=a.

To place only TOC entry for certain headings you have to use \placelist, e.g. \placelist[section].

\starttext

\chapter{One}
\placelist[section]
\section{First}
\section{Second}
\chapter{Two}
\placelist[section]
\section{Third}
\section{Fourth}
\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:[~2013-04-16 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-16  8:46 select TOC elements Meer, H. van der
2013-04-16 13:14 ` 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).