Re: [NTG-context] Simple tocs

2015-01-26 Thread Pablo Rodriguez
On 01/25/2015 11:52 PM, John Culleton wrote:
 In this country, and perhaps elsewhere, the front
 matter in a technical book will have two tables
 of contents, one listing just major titles (e.g.,
 just chapters and titles or just parts, chapters
 and titles) followed by another one that lists
 sections also. 
 [...]
 Any suggestions? 

Hi John,

I guess that the following might achieve what you want:

\starttext
\title{Contents}\placelist[chapter]
\title{More Contents}\placelist[chapter,section]
\dorecurse{5}{\chapter{Chapter}
\dorecurse{5}{\section{Section}}}
\stoptext

BTW, why do you use makeups? They are perfect when content fits in a
single page. Otherwise, you get the following (see page 2):

\setuppapersize[A6]
\starttext
\title{Contents}\placelist[chapter]
\startmakeup
\title{More Contents}\placelist[chapter,section]
\stopmakeup
\dorecurse{5}{\chapter{Chapter}
\dorecurse{5}{\section{Section}}}
\stoptext

To avoid page numbering in your tables of contents (and not having to
remove page numbering in frontmatter):

\definesectionblock[whatcomesfirst][firstmatter]
\startsectionblockenvironment[whatcomesfirst]
\setuppagenumbering[location=]
\stopsectionblockenvironment
\setuppapersize[A6]
\starttext
\startfirstmatter
\title{Contents}\placelist[chapter]
\title{More Contents}\placelist[chapter,section]
\stopfirstmatter
\dorecurse{5}{\chapter{Chapter}
\dorecurse{5}{\section{Section}}}
\stoptext

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Simple tocs

2015-01-26 Thread Hans Hagen

On 1/25/2015 11:52 PM, John Culleton wrote:

In this country, and perhaps elsewhere, the front
matter in a technical book will have two tables
of contents, one listing just major titles (e.g.,
just chapters and titles or just parts, chapters
and titles) followed by another one that lists
sections also.

Using mkiv I came up with this:
\startmakeup
\setupcombinedlist[content][list={chapter}]
\placelist[content]
\stopmakeup
\startmakeup
\setupcombinedlist[content][list={chapter,section}]
\completecontent[content]
\stopmakeup
\startmakeup
\null
\stopmakeup

I get no results at all, just blank pages.

Any suggestions?


criterium=all

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

[NTG-context] Simple tocs

2015-01-25 Thread John Culleton
In this country, and perhaps elsewhere, the front
matter in a technical book will have two tables
of contents, one listing just major titles (e.g.,
just chapters and titles or just parts, chapters
and titles) followed by another one that lists
sections also. 

Using mkiv I came up with this:
\startmakeup
\setupcombinedlist[content][list={chapter}]
\placelist[content]
\stopmakeup
\startmakeup
\setupcombinedlist[content][list={chapter,section}]
\completecontent[content]
\stopmakeup
\startmakeup
\null
\stopmakeup

I get no results at all, just blank pages. 

Any suggestions? 
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: Create Book Covers with
Scribus 1.4.5 coming soon at
http://www.booklocker.com/!
___
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
___