ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Documentation for \completecontent
@ 2010-04-18 17:42 Tom
  2010-04-18 17:49 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Tom @ 2010-04-18 17:42 UTC (permalink / raw)
  To: ntg-context

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:

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.

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.

Follows is an example of a document that illustrates 1, above:

\starttext 
\startfrontmatter

\completecontent[alternative=c]

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannume
rals]

\chapter{Preface}
\input knuth

\chapter{Introduction}
\input knuth

\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\stopfrontmatter

\startbodymatter

\chapter{Chapter One}
\input knuth

\chapter{Chapter Two}
\input knuth
\stopbodymatter

\startappendices

\page[stop]

\stopappendices

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___________________________________________________________________________________
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] 4+ messages in thread

* Re: Documentation for \completecontent
  2010-04-18 17:42 Documentation for \completecontent Tom
@ 2010-04-18 17:49 ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2010-04-18 17:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Documentation for \completecontent
       [not found] <mailman.624.1271618022.4277.ntg-context@ntg.nl>
@ 2010-04-18 22:53 ` Wolfgang Werners-Lucchini
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Werners-Lucchini @ 2010-04-18 22:53 UTC (permalink / raw)
  To: ntg-context

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


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

* Re: Documentation for \completecontent
@ 2010-04-18 17:49 Tom Benjey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Benjey @ 2010-04-18 17:49 UTC (permalink / raw)
  To: ntg-context

Whoops! I misstated what is happening. I confused myself. Item 2 is the
problem. The TOC and book order are correct. It's just that the introduction
can't have the same fancy header as the chapters without placing that same
header on the TOC, etc.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2010-04-18 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-18 17:42 Documentation for \completecontent Tom
2010-04-18 17:49 ` Wolfgang Schuster
2010-04-18 17:49 Tom Benjey
     [not found] <mailman.624.1271618022.4277.ntg-context@ntg.nl>
2010-04-18 22:53 ` Wolfgang Werners-Lucchini

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