How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Marco
Am 04.06.2011 um 16:24 schrieb Marco:
How can I get the chapter name in a new line, like:
Chapter 1 Foo Bar
The following yields to “Chapter1Foo Bar”.
\setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2}
\define[2]\MyChapter {\framed[frame=off,width=broad,align=flushleft]{#1\\#2}} Wolfgang
On Sat, Jun 4, 2011 at 4:24 PM, Marco
How can I get the chapter name in a new line, like:
Chapter 1 Foo Bar
The following yields to “Chapter1Foo Bar”.
\setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter] [command=\MyChapter]
\starttext \chapter{Foo Bar} \stoptext
Marco If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter]
\starttext \chapter{Foo Bar} \stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- luigi
participants (3)
-
luigi scarso
-
Marco
-
Wolfgang Schuster