Hi there, I've got a table of contents for a document that's split into two large sections. I'm trying to display a centered heading for each section, and subsections listed in two columns underneath each section heading. Hopefully this illustrates something of what I'm trying to achieve: \midaligned{Section1} \startcolumns[n=2] Subsection1 ... \stopcolumns \midaligned{Section2} \startcolumns[n=2] Subsection1 ... \stopcolumns Does anyone know how to automate this for a table of contents? Thanks for any help :) Paul
Paul Gideon Dann wrote:
Hi there,
I've got a table of contents for a document that's split into two large sections. I'm trying to display a centered heading for each section, and subsections listed in two columns underneath each section heading. Hopefully this illustrates something of what I'm trying to achieve:
\midaligned{Section1} \startcolumns[n=2] Subsection1 .... \stopcolumns
\midaligned{Section2} \startcolumns[n=2] Subsection1 .... \stopcolumns
Does anyone know how to automate this for a table of contents?
% \setuplist % [chapter] % [after={\startcolumns\placelist[section]\stopcolumns}] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts. Paul Hans Hagen wrote:
Paul Gideon Dann wrote:
Hi there,
I've got a table of contents for a document that's split into two large sections. I'm trying to display a centered heading for each section, and subsections listed in two columns underneath each section heading. Hopefully this illustrates something of what I'm trying to achieve:
\midaligned{Section1} \startcolumns[n=2] Subsection1 .... \stopcolumns
\midaligned{Section2} \startcolumns[n=2] Subsection1 .... \stopcolumns
Does anyone know how to automate this for a table of contents?
% \setuplist % [chapter] % [after={\startcolumns\placelist[section]\stopcolumns}]
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, May 7, 2008 at 1:38 PM, Paul Gideon Dann
Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts.
The followings works for me, give us a example. \setuplist [chapter] [after={\startcolumns\placelist[section]\stopcolumns}] \starttext \placelist[chapter] \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Wolfgang
The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source: \definecombinedlist[content][chapter] \setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}] \placecontent \starttext \dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext Paul Wolfgang Schuster wrote:
On Wed, May 7, 2008 at 1:38 PM, Paul Gideon Dann
wrote: Thanks, that's genius! However, the problem I now have is that the sections from *both* chapters are displayed below each chapter heading. That is, \placelist[section] generates the same content in both contexts.
The followings works for me, give us a example.
\setuplist [chapter] [after={\startcolumns\placelist[section]\stopcolumns}]
\starttext
\placelist[chapter]
\dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}}
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, May 7, 2008 at 2:05 PM, Paul Gideon Dann
The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source:
\definecombinedlist[content][chapter]
\setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}]
\placecontent
\starttext
\dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext
Hi Paul, I could reproduce the problem also with a recent ConTeXt, replace \placecontent with \placelist[chapter] and it works, I found no way to get the same result with combinedlist. Wolfgang
Thanks Wolfgang. It's unfortunate that I can't use combinedlist, but I think I'll be OK without. Thanks again for your time, and I'll get in touch if I have any more difficulties :) Paul Wolfgang Schuster wrote:
On Wed, May 7, 2008 at 2:05 PM, Paul Gideon Dann
wrote: The same example produces the problem for me. Maybe I have an older version? I got MacTex pretty recently (two weeks ago), but the version is: 2007.01.12 15:56. Here's the exact source:
\definecombinedlist[content][chapter]
\setuplist[chapter][after={\startcolumns\placelist[section]\stopcolumns}]
\placecontent
\starttext
\dorecurse{3} {\chapter{Chapter} \dorecurse{4}{\section{Section}}} \stoptext
Hi Paul,
I could reproduce the problem also with a recent ConTeXt, replace \placecontent with \placelist[chapter] and it works, I found no way to get the same result with combinedlist.
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Paul Gideon Dann
-
Wolfgang Schuster