![](https://secure.gravatar.com/avatar/b6bb720c28219294cf31d0693ed47388.jpg?s=120&d=mm&r=g)
I'm trying to set up a chapter heading which looks like this: Chapter 4 This is the fourth chapter That is, there are two lines, one of which says "Chapter" followed by its number, and the next which is the chapter title. What is the easiest way to do this? I've tried \def\chap#1#2{Chapter #1\crlf #2} \setuphead[chapter][ command=\chap, style=bfc, after={\blank[1cm]}, ] But this doesn't work (and nor do many other variations in the "chap" command). I'm a bit stymied here - and I'd welcome some advice. Thanks, Alasdair
![](https://secure.gravatar.com/avatar/b6bb720c28219294cf31d0693ed47388.jpg?s=120&d=mm&r=g)
Thanks very much! (I'm embarrassed - I should have been able to work that
one out for myself...)
-Alasdair
On Tue, Oct 25, 2011 at 5:55 PM, Peter Münster
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
-- Peter
___________________________________________________________________________________ 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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 25.10.2011 um 08:55 schrieb Peter Münster:
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
Use uppercase or camelcase for self defined command and the chapter string can be set with label texts. \define[2]\ChapterCommand {\vbox{#1\crlf#2}} \setuplabeltext[chapter=Chapter ] \setuphead[chapter][command=\ChapterCommand] Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 25-10-2011 08:55, Peter Münster wrote:
On Tue, Oct 25 2011, Alasdair McAndrew wrote:
\def\chap#1#2{Chapter #1\crlf #2}
\def\chap#1#2{\vbox{Chapter #1\crlf #2}}
or: \defineheadplacement[MyHead][vertical]#1#2% {\vbox{Chapter #1\crlf #2}} which helps the calling code to make some decisions Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Alasdair McAndrew
-
Hans Hagen
-
pmlists@free.fr
-
Wolfgang Schuster