[NTG-context] Unnumbered chapters before the ToC

Zhichu Chen zhichu.chen at gmail.com
Thu Jan 16 02:17:13 CET 2014


Hi Robert,


On Thu, Jan 16, 2014 at 5:51 AM, Robert Blackstone <
blackstone.robert at gmail.com> wrote:

>
> On 15 Jan 2014, at 21:54 , Wolfgang Schuster <schuster.wolfgang at gmail.com>
>  wrote:
>
> Am 15.01.2014 um 15:36 schrieb Robert Blackstone <
> blackstone.robert at gmail.com>:
>
> Dear all,
>
> Is there, in a book-project, a way to place unnumbered chapters, in casu
> Acknowledgements and Abstract, in the FrontMatter before the ToC, but still
> mentioned in the ToC?
>
>
> \definehead[prechapter][chapter]
> \setuphead [prechapter][number=no,incrementnumber=list]
>
> \starttext
>
> \prechapter{Unnumbered chapter}
>
> \title{Contents}
>
> \placelist[prechapter,chapter]
>
> \chapter{Numbered chapter}
>
> \stoptext
>
> Wolfgang
>
>
> Thank you Wolfgang. This works and it will very likely also work for my
> project.
> I'm afrraid though that I left out an important detail, namely that the
> ToC itself must be mentioned in the ToC.
> What I'm expected to emulate is the following: (with real pagenumbers of
> course)
>
> *CONTENTS*
>
> *Acknowledgements* i
> *Abstract* ii
> *Contents* iii
> *List of Illusttratiions* iv
> *List of Tables* v
> *Abbreviations and Library sigla* vi
> *Preface* vii
>
> Chapter 1 8
> Chapter 2 etc.
>
> So my real question should have been: Is there a way to place the ToC in
> an unnumbered chapter, which should not be at the very beginning of the
> book?
> But you have suggested the answer already: Changing \title{Contents} to
> \prechapter{Contents} does just that. Clean solution for an, imho,  odd
> request.
>
Please use:
\completecontent[criterium=all]
to generate the ToC, and set
\setupcombinedlist
  [content]
  [list={title,chapter,section,subsection}]
to include the entries you want.

>
> Best regards,
> Robert Blackstone
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>



-- 
Best Regards
Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140116/33ab15da/attachment-0001.html>


More information about the ntg-context mailing list