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/!
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 -----------------------------------------------------------------
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
participants (3)
-
Hans Hagen
-
John Culleton
-
Pablo Rodriguez