ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setuplabeltext[chapter=Chapter ] (or mkiv document structure/TOC)
@ 2010-01-20 18:45 Alan BRASLAU
  0 siblings, 0 replies; only message in thread
From: Alan BRASLAU @ 2010-01-20 18:45 UTC (permalink / raw)
  To: ntg-context

In a large project, a book with parts, chapters, appendices, etc. I have set 
the table of contents to display the label "Chapter" yielding:

Part I
Chapter 1
Chapter 2
Chapter 3
Part II
Chapter 4
...

Through the following (mkiv):

%
% section headings
%
\definestructureresetset [default] [0,0] [1] % do not reset parts and chapters
\setuphead [part] [sectionresetset=default,
                   placehead=yes,
                   conversion=Romannumerals]
\setuphead [chapter,section,subsection] [placehead=yes,sectionsegments=2:100]
%
% table of contents
%
\setuplabeltext [chapter=Chapter ] % with trailing space; blank by default
\setuplist [chapter] [label=yes,width=5em]
\setuplist [part,chapter,section,subsection,subsubsection]
           [interaction=all,alternative=c] % number – title – dots – 
pagenumber

\starttext
\startfrontmatter
\stopfrontmatter

\startbodymatter
\stopbodymatter

\startappendices
\stopappendices

\startbackmatter
\stopbackmatter

\stoptext



In the above use, the appendices A,B,... get listed as

  Chapter A
  Chapter B

and the Bibliography, Name Index, Subject Index, List of Figures, List of 
Tables all get listed as

  Chapter Bibliography
  Chapter Name Index
  ...


Adding
  \setuplabeltext [chapter=Appendix ] % with trailing space; blank by default
after \startappendices doesn't work, nor does
  \setuplabeltext [chapter=] % reset to blank
after \startbackmatter.

(of course, these labels should be predefined according to the language, and 
some switch,
  \setuplist [chapter] [label=no]
after \startbackmatter, maybe by default, should take care of it.)

Any suggestions?

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-20 18:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-20 18:45 \setuplabeltext[chapter=Chapter ] (or mkiv document structure/TOC) Alan BRASLAU

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