Am 26.10.2011 um 05:41 schrieb Alasdair McAndrew:

> Thanks to the great expertise of folk on this mailgroup, I have my chapter 
> headings set so that each one comes out as
> 
> Chapter n
> Name of Chapter
> 
> However, I have a few more questions.  First: if I use "completecontent" to 
> display the contents, how can I have the "Contents" title display without my 
> "Chapter" line?  That is, is there a way of turning off my chapter command 
> temporarily?  (I've found that "title" doesn't work here: If I use 
> "\title{Contents} \placecontent" I still get a "Chapter" line.)
> 
> Second: I'm writing out a book of student notes, and each chapter ends with a 
> set of exercises.  I'd like these exercises to be typeset as unnumbered 
> sections ("subject"s), and appear so in the ToC.  Like:
> 
> 4.4  Second last section
> 4.5  Last section
> Exercises
> 
> What is the best way of doing this (MkII)?  I've tried
> 
> \definehead[exercise][section]
> \setuphead[exercise][number=no]
> \setuplist[exercise][headnumber=no]
> 
> but that doesn't work on its own, and when paired with 
> \definecombinedlist[content][exercise,chapter,section] wipes out the contents 
> completely.
> 
> Any advice (or even pointers to a web page) would be most welcome.

\defineheadplacement[MyChapter][vertical]{\vbox{#1\crlf#2}}

\setuplabeltext[chapter=Chapter ]

\setuphead[chapter][alternative=MyChapter]

\definehead[exercise][subject][incrementnumber=list]

\starttext

\title{Contents}

\placelist[chapter,section,exercise]

\chapter{Chapter}

\section{Section}

\exercise{Exercise}

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

Reply via email to