ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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
@ 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

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