ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco <netuse@lavabit.com>
To: ntg-context@ntg.nl
Subject: Local TOC after each chapter title (was: Re: Need help)
Date: Wed, 18 Jul 2012 16:15:19 +0200	[thread overview]
Message-ID: <20120718161519.0403a64f@homerow> (raw)
In-Reply-To: <CALJ_jGSQMxD2kag-NnjedVbdB8qvs4RafMinoWc9xrvb66jiqw@mail.gmail.com>

On 2012-07-18 Shiv Shankar Dayal <shivshankar.dayal@gmail.com> wrote:

Hi Shiv!

For your next posts please

∙ Provide a meaningful subject, not just “Need help”.
  E.g. “Local TOC after each chapter title”

∙ Provide a MWE, a minimal *working* example. A small code snippet
  that compiles and demonstrates you problem. That way you increase
  the chance of getting an answer by magnitudes.

∙ Be specific! “Does not work” doesn't say much. State clearly what
  you expect and what you got instead. E.g. TOC does not show up on
  the page, leads to compilation error: “Undefined control
  sequence”, TOC is not centred, etc.

> I want a local TOC after each chapter title.

How about this:

\setuphead
  [chapter]
  [after=\placecontent]

\starttext

\startchapter [title=Foo]
  \startsection [title=First A]
    \input knuth
  \stopsection
  \startsection [title=First B]
    \input knuth
  \stopsection
\stopchapter

\startchapter [title=Bar]
  \startsection [title=Second A]
    \input knuth
  \stopsection
  \startsection [title=Second B]
    \input knuth
  \stopsection
  \input zapf
\stopchapter

\stoptext


Marco


___________________________________________________________________________________
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:[~2012-07-18 14:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 13:41 Need help Shiv Shankar Dayal
2012-07-18 14:15 ` Marco [this message]
2012-07-18 14:21   ` Local TOC after each chapter title (was: Re: Need help) Wolfgang Schuster
2012-07-18 14:56     ` Marco
2012-07-19  7:26       ` Steffen Wolfrum
2012-07-19  8:41         ` Marco
2012-07-19  9:53           ` Local TOC after each chapter title Hans Hagen

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=20120718161519.0403a64f@homerow \
    --to=netuse@lavabit.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).