Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 19:42, schrieb Tom:

http://wiki.contextgarden.net/Category:Reference/en includes no references
for \completecontent or \placecontent. Context the Manual discusses the
commands a bit but does not define them. Given that \completecontent is
listed in group 2 of the Top Ten Context commands that a beginner might
focus his or her attention on in the introduction to Context the Manual,
one might expect a bit more documentation of the command.

I have two problems related to the table of contents that I can't resolve
from my understanding of the documentation:
   

- http://wiki.contextgarden.net/Reference/en/definecombinedlist
- http://wiki.contextgarden.net/Reference/en/completecombinedlist
- http://wiki.contextgarden.net/Reference/en/setupcombinedlist

1. The table of contents is printed out of order in the PDF. It seems that
\completecontent must appear before the preface or foreword if they are to
be listed in the TOC. However, the Chicago Manual of Style calls for them to
be placed before the TOC in the book.
   

\completecontent[criterium=all]

2. The introduction is placed in the frontmatter because placing it in the
bodymatter causes it to be treated as chapter 1. This location results in
the introduction having the same first page header as front matter. That
means that the introduction cannot be given a fancy first page similar to
the numbered chapters without giving it to the TOC, etc.
   

\definehead[mycontenttitle][chapter]

\setuphead[mycontenttitle][number=no,...] % fancy setup for the toc header

...

\starttext

\mycontenttitle{Content} % the header for the toc

\placecontent % place the toc *without* a header

...

\stoptext

Wolfgang

___
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
___


Re: [NTG-context] Documentation for \completecontent

2010-04-18 Thread Wolfgang Werners-Lucchini
 Follows is an example of a document that illustrates 1, above:
 
 \starttext 
 \startfrontmatter
 
 \completecontent[alternative=c]
 
 \setuppagenumbering[state=start,alternative=doublesided,conversion=r
 omannume
 rals]
 
 \chapter{Preface}
 \input knuth
 
 \chapter{Introduction}
 \input knuth
 
 \setuppagenumbering[state=start,alternative=doublesided,conversion=n
 umbers]
 \setuppagenumber[state=start,number=1]
 
 \stopfrontmatter
 
 \startbodymatter
 
 \chapter{Chapter One}
 \input knuth
 
 \chapter{Chapter Two}
 \input knuth
 \stopbodymatter
 
 \startappendices
 
 \page[stop]
 
 \stopappendices
 
 \stoptext

This example doesn't produce roman numerals with

ConTeXt  ver: 2010.04.16 00:11 MKIV  fmt: 2010.4.16  int: 
english/english

With mkii they are ok.

Wolfgang
___
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
___