[NTG-context] \writetolist in mkiv

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun Oct 12 21:28:22 CEST 2014


Am 12.10.2014 um 20:39 schrieb Jano Kula <jano.kula at gmail.com>:

> Hello to everybody!
> 
> Minimal story
> -------------
> How to insert local TOC of manually created subsections after the section starts?
> 
> % start minimal example
> \def\ManualSubsection#1{\blank%
> {\bf Manual Subsection #1}\par%
> \writetolist[subsection]{whatever}{Manual Subsection #1}%
> \input tufte\relax}
> 
> \starttext
> \dorecurse{3}{%
> \startchapter[title=Chapter]
> \placecontent[chapter,criterium=local] % local TOC OK

You can’t put a keyword (chapter) and a assignment (criterium=local) in the same argument
of a setup-command, what you’re looking for is \placelist[chapter][criterium=local].

Wolfgang


More information about the ntg-context mailing list