* TOC columns
@ 2008-05-07 10:11 Paul Gideon Dann
2008-05-07 11:01 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Paul Gideon Dann @ 2008-05-07 10:11 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 10:11 TOC columns Paul Gideon Dann
@ 2008-05-07 11:01 ` Hans Hagen
2008-05-07 11:38 ` Paul Gideon Dann
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2008-05-07 11:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 11:01 ` Hans Hagen
@ 2008-05-07 11:38 ` Paul Gideon Dann
2008-05-07 11:48 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Paul Gideon Dann @ 2008-05-07 11:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1869 bytes --]
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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 11:38 ` Paul Gideon Dann
@ 2008-05-07 11:48 ` Wolfgang Schuster
2008-05-07 12:05 ` Paul Gideon Dann
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2008-05-07 11:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, May 7, 2008 at 1:38 PM, Paul Gideon Dann
<pdgiddie@googlemail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 11:48 ` Wolfgang Schuster
@ 2008-05-07 12:05 ` Paul Gideon Dann
2008-05-07 12:51 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Paul Gideon Dann @ 2008-05-07 12:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1573 bytes --]
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
> <pdgiddie@googlemail.com> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2582 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 12:05 ` Paul Gideon Dann
@ 2008-05-07 12:51 ` Wolfgang Schuster
2008-05-07 13:05 ` Paul Gideon Dann
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2008-05-07 12:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, May 7, 2008 at 2:05 PM, Paul Gideon Dann
<pdgiddie@googlemail.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: TOC columns
2008-05-07 12:51 ` Wolfgang Schuster
@ 2008-05-07 13:05 ` Paul Gideon Dann
0 siblings, 0 replies; 7+ messages in thread
From: Paul Gideon Dann @ 2008-05-07 13:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]
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
> <pdgiddie@googlemail.com> 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
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2423 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-05-07 13:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-07 10:11 TOC columns Paul Gideon Dann
2008-05-07 11:01 ` Hans Hagen
2008-05-07 11:38 ` Paul Gideon Dann
2008-05-07 11:48 ` Wolfgang Schuster
2008-05-07 12:05 ` Paul Gideon Dann
2008-05-07 12:51 ` Wolfgang Schuster
2008-05-07 13:05 ` Paul Gideon Dann
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).