Re: [NTG-context] local ToC after each chapter title
Am 2019-01-10 um 15:21 schrieb Otared Kavian : > Hi Hraban, > > Probably instead of > >> \setuplist[chapter][ >> before=, >> after={\placecombinedlist[content][criterium=local]},] > > you wanted to say > > \setuphead[chapter][ > before=, > after={\placecombinedlist[content][criterium=local]}] > > which gives the expected result without any problem… RGHLLL, I’m so blind... Thank you, of course! That happens if you change an old, cluttered environment... Sorry for the noise. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] local ToC after each chapter title
Hi Hraban, Probably instead of > \setuplist[chapter][ > before=, > after={\placecombinedlist[content][criterium=local]},] you wanted to say \setuphead[chapter][ before=, after={\placecombinedlist[content][criterium=local]}] which gives the expected result without any problem… Best regards: OK > On 10 Jan 2019, at 14:34, Henning Hraban Ramm wrote: > > Hello again, > > in my current book project I need a local ToC after each chapter title. > What’s wrong with my use of "after"? > > The following example leads to a "TeX capacity exceeded" error: > > \setupcombinedlist[content][% > list={chapter,section},] > > \setuplist[chapter][ > before=, > after={\placecombinedlist[content][criterium=local]},] > > \starttext > > \completecontent > > \chapter{One} > > \section{Knuth} > \input knuth > > \section{Tufte} > \input tufte > > \chapter{Two} > > \section{Tufte 2} > \input tufte > > \chapter{Three} > > \section{Zapf} > \input zapf > > \stoptext > > (MkIV, version 2018.12.19 19:22) > > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreiviertelhaus.de > GPG Key ID 1C9B22FD > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] local ToC after each chapter title
Hello again, in my current book project I need a local ToC after each chapter title. What’s wrong with my use of "after"? The following example leads to a "TeX capacity exceeded" error: \setupcombinedlist[content][% list={chapter,section},] \setuplist[chapter][ before=, after={\placecombinedlist[content][criterium=local]},] \starttext \completecontent \chapter{One} \section{Knuth} \input knuth \section{Tufte} \input tufte \chapter{Two} \section{Tufte 2} \input tufte \chapter{Three} \section{Zapf} \input zapf \stoptext (MkIV, version 2018.12.19 19:22) Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)
Am 18.07.2012 um 16:56 schrieb Marco: On 2012-07-18 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for insidesection on this garden's page ... http://wiki.contextgarden.net/Command/setuphead ... but couldn't find it. Is there yet another page for \setupheads? Steffen ___ 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 ___
Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)
On 2012-07-19 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for insidesection on this garden's page ... http://wiki.contextgarden.net/Command/setuphead http://wiki.contextgarden.net/Command/setupheads ^^^ Technically the command belongs to \setupheads, not to \setuphead. However, in practice it is unlikely that one wants to apply insidesection to all structures, I agree. ... but couldn't find it. It takes a while for the garden to refresh the search index. Now you can find it by typing “insidesection” in the search box. 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 ___
Re: [NTG-context] Local TOC after each chapter title
On 19-7-2012 10:41, Marco wrote: On 2012-07-19 Steffen Wolfrum cont...@st.estfiles.de wrote: Hi Steffen Nice, I didn't know that one, yet. Wikified under \setupheads. I searched for insidesection on this garden's page ... http://wiki.contextgarden.net/Command/setuphead http://wiki.contextgarden.net/Command/setupheads ^^^ Technically the command belongs to \setupheads, not to \setuphead. However, in practice it is unlikely that one wants to apply insidesection to all structures, I agree. ... but couldn't find it. It takes a while for the garden to refresh the search index. Now you can find it by typing “insidesection” in the search box. In mkiv we use a different cloning model and as a consequence the plural setup commands are sort of redundant in which case they are aliased to the singular variant. However, the plural form is somewhat more intuitive. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
[NTG-context] Local TOC after each chapter title (was: Re: Need help)
On 2012-07-18 Shiv Shankar Dayal shivshankar.da...@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 ___
Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)
Am 18.07.2012 um 16:15 schrieb Marco: How about this: \setuphead [chapter] [after=\placecontent] When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. 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 ___
Re: [NTG-context] Local TOC after each chapter title (was: Re: Need help)
On 2012-07-18 Wolfgang Schuster schuster.wolfg...@gmail.com wrote: When you use the start/stop-commands you can use “insidesection=…” which comes after the “after” key. Nice, I didn't know that one, yet. Wikified under \setupheads. 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 ___