* Need help
@ 2012-07-18 13:41 Shiv Shankar Dayal
2012-07-18 14:15 ` Local TOC after each chapter title (was: Re: Need help) Marco
0 siblings, 1 reply; 10+ messages in thread
From: Shiv Shankar Dayal @ 2012-07-18 13:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
Mu current chapter setup is as below:
\def\HeadTitle#1#2%
{\hbox to \hsize \bgroup
\hfill
\setupframed[offset=.5em,frame=off]
\tbox{\framed[width=3cm,align=left]{#1}}%
\tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}%
\egroup}
\setuphead [chapter]
[color=green1,
textstyle=,
align=normal,
continue=no,
page=right,
style=\tfc,
before={\blank[2*big]},
after={\blank[2*big]},
command=\HeadTitle]
I want a local TOC after each chapter title. If I manually put
\placelist[section][criterium=chapter]
immediately after \chapter command then it does not work. Please help.
--
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 10+ messages in thread
* Local TOC after each chapter title (was: Re: Need help)
2012-07-18 13:41 Need help Shiv Shankar Dayal
@ 2012-07-18 14:15 ` Marco
2012-07-18 14:21 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Marco @ 2012-07-18 14:15 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Local TOC after each chapter title (was: Re: Need help)
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
0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2012-07-18 14:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Local TOC after each chapter title (was: Re: Need help)
2012-07-18 14:21 ` Wolfgang Schuster
@ 2012-07-18 14:56 ` Marco
2012-07-19 7:26 ` Steffen Wolfrum
0 siblings, 1 reply; 10+ messages in thread
From: Marco @ 2012-07-18 14:56 UTC (permalink / raw)
To: ntg-context
On 2012-07-18 Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Local TOC after each chapter title (was: Re: Need help)
2012-07-18 14:56 ` Marco
@ 2012-07-19 7:26 ` Steffen Wolfrum
2012-07-19 8:41 ` Marco
0 siblings, 1 reply; 10+ messages in thread
From: Steffen Wolfrum @ 2012-07-19 7:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 18.07.2012 um 16:56 schrieb Marco:
> On 2012-07-18 Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Local TOC after each chapter title (was: Re: Need help)
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
0 siblings, 1 reply; 10+ messages in thread
From: Marco @ 2012-07-19 8:41 UTC (permalink / raw)
To: ntg-context
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.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ 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; 10+ 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] 10+ messages in thread
* 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; 10+ 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] 10+ messages in thread
* Re: local ToC after each chapter title
2019-01-10 13:34 local ToC " Henning Hraban Ramm
@ 2019-01-10 14:21 ` Otared Kavian
2019-01-10 15:46 ` Henning Hraban Ramm
0 siblings, 1 reply; 10+ 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] 10+ 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; 10+ 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] 10+ messages in thread
end of thread, other threads:[~2019-01-10 15:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-01-10 13:34 local ToC " Henning Hraban Ramm
2019-01-10 14:21 ` Otared Kavian
2019-01-10 15:46 ` Henning Hraban Ramm
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).