title, subject & table of contents
Hi all, When I use: ----------------------------------------------------------- \setuplist [chapter] [before=\blank, after=\blank, style=bold] \setuplist [section] [alternative=c] \starttext \placelist[chapter,section][alternative=c] \chapter{One} \section{One A} Blahblah \section{One B} Blahblah \chapter{Two} \section{Two A} Blahblah \section{Two B} Blahblah \stoptext -------------------------------------------------------------------- I got TOC perfectly. But if I replace \chapter by \title; \section by \subject, I can not have a TOC at all. This is the code: ------------------------------------------------------------------ \setuplist [title] [before=\blank, after=\blank, style=bold] \setuplist [subject] [alternative=c] \starttext \placelist[title,subject][alternative=c] \title{One} \subject{One A} Blahblah \subject{One B} Blahblah \title{Two} \subject{Two A} Blahblah \subject{Two B} Blahblah \stoptext ----------------------------------------------------------------------- Any ideas for help me ? Thank you in advance, Quy NGUYEN-DAI
Hi, I had a similar problem some weeks ago. Here's what Hans wrote in November 2004:
\title never ends up in the toc, unless configured
however, you can add section structure (bodypart, appendix, etc) and within such a part, a \chapter command will act as \title (toc entry, but no number)
Hans
HTH Thomas On Feb 11, 2005, at 10:22 PM, VnPenguin wrote:
Hi all, When I use: ----------------------------------------------------------- \setuplist [chapter] [before=\blank, after=\blank, style=bold] \setuplist [section] [alternative=c]
\starttext
\placelist[chapter,section][alternative=c]
\chapter{One} \section{One A} Blahblah \section{One B} Blahblah
\chapter{Two} \section{Two A} Blahblah \section{Two B} Blahblah
\stoptext -------------------------------------------------------------------- I got TOC perfectly. But if I replace \chapter by \title; \section by \subject, I can not have a TOC at all. This is the code: ------------------------------------------------------------------ \setuplist [title] [before=\blank, after=\blank, style=bold] \setuplist [subject] [alternative=c]
\starttext
\placelist[title,subject][alternative=c]
\title{One} \subject{One A} Blahblah \subject{One B} Blahblah
\title{Two} \subject{Two A} Blahblah \subject{Two B} Blahblah
\stoptext ----------------------------------------------------------------------- Any ideas for help me ? Thank you in advance,
Quy NGUYEN-DAI _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
On Sat, 12 Feb 2005 21:00:22 +0100, Thomas A. Schmitz
Hi,
I had a similar problem some weeks ago. Here's what Hans wrote in November 2004:
\title never ends up in the toc, unless configured
however, you can add section structure (bodypart, appendix, etc) and within such a part, a \chapter command will act as \title (toc entry, but no number)
Thank you. I try : ---------------------------- \setuphead [chapter] [number=no] ------------------------------------ and use \chapter instead of \title. So I can obtain the TOC. But I dont why there is no clickable link in the TOC at all :( Any ideas ?
VnPenguin
---------------------------- \setuphead [chapter] [number=no] ------------------------------------ and use \chapter instead of \title. So I can obtain the TOC. But I dont why there is no clickable link in the TOC at all :(
\setuplist[chapter,section][interaction=all] ?
VnPenguin wrote:
But if I replace \chapter by \title; \section by \subject, I can not have a TOC at all. This is the code:
that's because those are not written to the list; \startfrontmatter \charter{xxx} \stopfrontmatter gives you unnumbered entries but written to the list; (it is possible to configure section handlers to number, write to list etc, but this is the easiest way) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (4)
-
cormullion
-
h h extern
-
Thomas A.Schmitz
-
VnPenguin