Changes

Jump to navigation Jump to search
1,344 bytes added ,  15:48, 4 June 2006
In this case using <tt>deeptextcommand</tt> is the correct solution for capitalizing headers. (Using <cmd>uppercase</cmd> works in this specific case, but only if you stick to Latin 1 or Anglo-Saxon characters. Other languages will suffer from lowercase accented characters, like CAFé.)
=== Truely empty pagebreak before chapters ===
Using <cmd>\setuppagenumbering[alternative=doublesided]</cmd> makes the chapters start on the right page. However, the blank page is not truely empty, it contains headers and footers. To get truely empty pages, use the following
 
<texcode>
\definepagebreak
[mychapterpagebreak]
[yes,header,right]
% [yes,header,left]
% [yes,header,footer,right]
 
\setuphead
[chapter]
[page=mychapterpagebreak]
% [page=Mychapterpagebreak,header=empty,footer=empty]
 
\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
% \setupbackgrounds[header][text][bottomframe=on]
 
\starttext
\chapter {testA} \dorecurse{10}{\input tufte }
\chapter {testB} \dorecurse{10}{\input tufte }
\chapter {testC} \dorecurse{10}{\input tufte }
\stoptext
</texcode>
 
Explaination (provided by Willi Egger on the mailing list)
 
* You define a new pagebreak rule. It has the name <cmd>mychapterpagebreak</cmd>. The options set read as: <cmd>pagebreak=yes</cmd>, placeheader, use a right page.
* You set options for the header of type chapter and use for the option page the before defined new pagebreak.
* You might want to experiment with the commented lines ans see what happens.
==Table(s) of Contents==

Navigation menu