On 2012-07-18 Shiv Shankar Dayal 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