ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Does Bill McClain's TOC work?
@ 2003-09-16 14:05 Steffen Wolfrum
  2003-09-16 15:15 ` Bill McClain
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2003-09-16 14:05 UTC (permalink / raw)


Working on my first TOC I was looking at Bill McClain's
"ConTeXt and pdfTeX Beginners Help Page", and its example on TOCs 
with different entries.

I copied and pasted his example, but what should be like this:


>           Contents
>
>  Introduction to the Annotated Edition * 5
>
>  Preface * 12
>
>  1 * The Windows of Absolute Night * 15


is in fact:


>           Contents
>
>  Introduction to the Annotated Edition * 5
>
>  Preface * 12
>
>  3 * The Windows of Absolute Night * 15     <- "3" !

(the unnumbered headings *are* numbered)



So I tried something different:

\definehead[LevelOneEmpty][chapter]
\setuphead[LevelOneEmpty][number=no]

\definehead[LevelOne[chapter]
\setuphead[LevelOne][number=yes]

\definehead[LevelTwo][section]

\definehead[LevelThree][subsection]

\starttext


\definecombinedlist
[content]
[LevelOneEmpty,LevelOne,LevelTwo, LevelThree]

\setupcombinedlist
[content][alternative=b,aligntitle=no,width=2.5em]

\completecontent[way=bytext]

\LevelOneEmpty{Introduction}
...
\LevelOne{First real Chapter}


But the result is the same:

>           Contents
>
>  Introduction...
>
>  2 First real Chapter


A last try with the following changed:

\definehead[LevelOneEmpty][title]

was even worse: "Introduction" doesn't appear at all in the TOC.


So what is the right way?


I'd be happy for any hint.

Steffen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-16 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 14:05 Does Bill McClain's TOC work? Steffen Wolfrum
2003-09-16 15:15 ` Bill McClain
2003-09-16 15:57   ` Bill McClain

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).