ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: select TOC elements
Date: Tue, 16 Apr 2013 15:14:41 +0200	[thread overview]
Message-ID: <96D00877-D0F5-4266-9E50-80FC56BA082F@gmail.com> (raw)
In-Reply-To: <20FA9B5D-9F5F-4568-8D2F-5C7352DC5205@uva.nl>


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
___________________________________________________________________________________


      reply	other threads:[~2013-04-16 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-16  8:46 Meer, H. van der
2013-04-16 13:14 ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=96D00877-D0F5-4266-9E50-80FC56BA082F@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).