Changes

Jump to navigation Jump to search
704 bytes added ,  14:47, 4 June 2011
no edit summary
Number is in margin, not at text edge.
</context>
 
===Chapter titles in new line===
To have the chapter title simply in a new line a new command needs to be defined that takes care of this. It needs to be wrapped in <cmd>framed</cmd>.
 
<texcode>
\setuplabeltext [en] [chapter=Chapter~]
% Does not work, not wrapped in \framed
% \def\MyChapter#1#2{#1\blank#2}
\define[2]\MyChapter
{\framed[frame=off,width=broad,align=flushleft]{#1\\#2}}
\setuphead [chapter] [command=\MyChapter]
\startchapter [title=Foo Bar]
\stopchapter
</texcode>
 
This looks like
 
<context>
\setuplabeltext [en] [chapter=Chapter~]
\define[2]\MyChapter
{\framed[frame=off,width=broad,align=flushleft]{#1\\#2}}
\setuphead [chapter] [command=\MyChapter]
\chapter{Foo Bar}
</context>
69

edits

Navigation menu