I want to typeset a book with chapters and sections, but with no numbering, either on the chapter heading itself or in the TOC. I do want both chapters and sections in the TOC. I prefer the dotleader layout (alternative=c). I have spent two days now chasing down blind alleys. What is the shortest way to achieve this goal? -- John Culleton Able Typesetters and Indexers
On Wed, 18 Jun 2003 13:44:04 -0400
John Culleton
I want to typeset a book with chapters and sections, but with no numbering, either on the chapter heading itself or in the TOC. I do want both chapters and sections in the TOC. I prefer the dotleader layout (alternative=c).
You can use alternative=none and supply your own formatting macro. In conjunction with multiple toc lists, this is quite flexible. There is an example at: http://home.salamander.com/~wmcclain/context-help.html, in the section "Table of contents with different sections". Bringhurst on dot leaders: "unenlightening rows of dots that force the eye to walk the width of the page like a prisoner being escorted back to its cell." But I bet you can use them within your own formatting macro. -Bill -- Sattre Press Pagan Papers http://sattre-press.com/ by Kenneth Grahame info@sattre-press.com http://pp.sattre-press.com/
Hi John, John Culleton wrote:
I want to typeset a book with chapters and sections, but with no numbering, either on the chapter heading itself or in the TOC. I do want both chapters and sections in the TOC. I prefer the dotleader layout (alternative=c).
I fought over this also for my journal. Here is what I came up with (including some extraneous, journal-specific stuff). Note that you can use <title> and <subject> instead of <chapter> and <section>, since the former is generally unnumbered anyway: ========================== \setuphead[chapter][numberstyle=normal, style=\scb, alternative=middle, page=right, number=no, ownnumber=no, incrementnumber=yes, continue=no, header=high, text=high, footer=empty] \setuphead[section][numberstyle=normal, textstyle=\sc, continue=no, number=no, incrementnumber=no, placehead=yes, alternative=middle, before={\blank[big]}, after={\blank[medium]}] \setupcombinedlist[content][alternative=c] \starttext \noheaderandfooterlines \placecontent \chapter{First} \section{first} \chapter{Second} \section{second} \chapter{Third} \section{third} \stoptext ======================= You can look at some samples of what ConTeXt can to with a toc here: http://gsp-online.org/journals/journaldocs/shi/vol1no1.pdf Some more samples can be found from here: http://gsp-online.org/journals/shi.htm Best wishes Idris
On Wednesday 18 June 2003 02:25 pm, Idris S Hamid wrote:
Hi John,
John Culleton wrote:
I want to typeset a book with chapters and sections, but with no numbering, either on the chapter heading itself or in the TOC. I do want both chapters and sections in the TOC. I prefer the dotleader layout (alternative=c).
I fought over this also for my journal. Here is what I came up with (including some extraneous, journal-specific stuff). Note that you can use <title> and <subject> instead of <chapter> and <section>, since the former is generally unnumbered anyway:
Best wishes Idris
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Thaniks Idris. The problem with Title and Subject is that they don't appear in the TOC in any case. That was a half day of screwing around. But it is in the manual somewhere. I will gut your code and try it. -- John Culleton Able Typesetters and Indexers
I fought over this also for my journal. Here is what I came up with (including some extraneous, journal-specific stuff). Note that you can use <title> and <subject> instead of <chapter> and <section>, since the former is generally unnumbered anyway:
Best wishes Idris
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Thaniks Idris. The problem with Title and Subject is that they don't appear in the TOC in any case. That was a half day of screwing around.
Ah, yes. But in the final analysis, you can setup title to behave exactly as chapter and vice versa. What I did was setup <title> to appear in the toc, then when I changed <title> in the setup to <chapter> I noticed that both behaved identically! The sample I sent you originally used <title>; all I did was change it to <chapter>. Have fun Idris
I fought over this also for my journal. Here is what I came up with (including some extraneous, journal-specific stuff). Note that you can use <title> and <subject> instead of <chapter> and <section>, since the former is generally unnumbered anyway:
Best wishes Idris
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Thaniks Idris. The problem with Title and Subject is that they don't appear in the TOC in any case. That was a half day of screwing around.
Ah, yes. But in the final analysis, you can setup title to behave exactly as chapter and vice versa. What I did was setup <title> to appear in the toc, then when I changed <title> in the setup to <chapter> I noticed that both behaved identically! The sample I sent you originally used <title>; all I did was change it to <chapter>.
Have fun Idris AHA! I was trying to use chapters in the frontmatter and that (silently) killed the TOC. So I used your macros, changed all frontmatter chapters to
On Wednesday 18 June 2003 04:13 pm, Idris S Hamid wrote: titles, and the TOC appeared like magic. Next I will try to define title as you have defined chapter. If that works, fine. Otherwise I will just move the frontmatter boundary back to earlier in the file. Thanks for your help! And Bill also, of course. -- John Culleton Able Typesetters and Indexers
On Wednesday 18 June 2003 08:30 pm, John Culleton wrote:
On Wednesday 18 June 2003 04:13 pm, Idris S Hamid wrote:
I fought over this also for my journal. Here is what I came up with (including some extraneous, journal-specific stuff). Note that you can use <title> and <subject> instead of <chapter> and <section>, since the former is generally unnumbered anyway:
Best wishes Idris
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Thaniks Idris. The problem with Title and Subject is that they don't appear in the TOC in any case. That was a half day of screwing around.
Ah, yes. But in the final analysis, you can setup title to behave exactly as chapter and vice versa.
Further on this issue. If I put a \chapter before the TOC then the contents of the TOC disapear silently. If I put a \title before the TOC that works but the title of course doesn't appear in theTOC. If I change the definition of \title to match the one you gave me for \chapter then again the contents of the TOC disappear silently. If instead of changing the def of title I use the \writebetweenlist....\writetolist commands then the title will appear in the TOC but the pagenumber will be wrong. Here is what my customer want:s: 1. A TOC 2. No chapter or section numbers anywhere. 3. Certain blocks of text which occur before the TOC to be listed in the TOC with the correct page number. Any suggestions, anyone? John Culleton Able Typesetters and Indexers
Here is what my customer want:s: 1. A TOC 2. No chapter or section numbers anywhere.
Ok, I think we've solved this part.
3. Certain blocks of text which occur before the TOC to be listed in the TOC with the correct page number.
This I don't understand. Could you explain a bit more?:-) In general, creative use of \setuphead, \writetolist, \writebetweenlist, and \definecombinedlist will solve virtually any of this type of problem. I just don't understand 3. Best wishes Idris
participants (3)
-
Idris S Hamid
-
John Culleton
-
wmcclain@salamander.com