< [[Basics]] |
= Headers with centered content =
The following file gives a way to achieve marginal and centered headings for doublesided documents. Experiment to achieve other effects!
<texcodecontext source="yes">
% output=pdf interface=en
\stoptext
</texcodecontext>
= Skipping headers or footers =
title marking list bookmark
</texcode>
= Examples =
== Nice classic design ==
<context source="yes">
\startsetups [footer:leftpage]
\prefixedpagenumber
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\labeltext{chapter} \getmarking[chapternumber]
\stopsetups
\startsetups [footer:rightpage]
\getmarking[chapter]
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\prefixedpagenumber
\stopsetups
\setuplabeltext
[en]
[chapter=Chapter]
\setuphead
[chapter]
[bodypartlabel=]
\setupfootertexts
[] [\directsetup{footer:rightpage}]
[\directsetup{footer:leftpage}] []
\setuppagenumbering
[alternative=doublesided]
\starttext
\startchapter [title=First chapter]
\dorecurse{10}{\input knuth}
\stopchapter
\startchapter [title=Second chapter]
\dorecurse{10}{\input knuth}
\stopchapter
\stoptext
</context>
= Further reading =
* [[Page numbering in words]]
{{Getting started navbox}}[[Category:Basics]]