ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* local ToC after each chapter title
@ 2019-01-10 13:34 Henning Hraban Ramm
  2019-01-10 14:21 ` Otared Kavian
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2019-01-10 13:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: local ToC after each chapter title
  2019-01-10 13:34 local ToC after each chapter title Henning Hraban Ramm
@ 2019-01-10 14:21 ` Otared Kavian
  2019-01-10 15:46   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2019-01-10 14:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <texml@fiee.net> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: local ToC after each chapter title
  2019-01-10 14:21 ` Otared Kavian
@ 2019-01-10 15:46   ` Henning Hraban Ramm
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2019-01-10 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2019-01-10 um 15:21 schrieb Otared Kavian <otared@gmail.com>:

> 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…

AAAARGHLLL, 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Local TOC after each chapter title
  2012-07-19  8:41         ` Marco
@ 2012-07-19  9:53           ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2012-07-19  9:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Marco

On 19-7-2012 10:41, Marco wrote:
> On 2012-07-19 Steffen Wolfrum <context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-10 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 13:34 local ToC after each chapter title Henning Hraban Ramm
2019-01-10 14:21 ` Otared Kavian
2019-01-10 15:46   ` Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2012-07-18 13:41 Need help Shiv Shankar Dayal
2012-07-18 14:15 ` Local TOC after each chapter title (was: Re: Need help) Marco
2012-07-18 14:21   ` 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

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).