Changes

Jump to navigation Jump to search
m
activate example
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupheadertexts</syntax>
== [[Help:Reference|Syntax]] ==
</table>
or
 
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\setupheadertexts<span class="first" style="color:red;">[...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td><strong>text</strong> in the middle of the header</td>
</tr>
</table>
 
Note that these can be combined, so if you want a header with text on the left, middle, and right of the page you can use:
 
<texcode>
\setupheadertexts[middle text]
\setupheadertexts[on the left][on the right]
</texcode>
 
There are predefined keywords for popular values, like <code>chapter</code> and <code>pagenumber</code>,
 
eg:
 
<texcode>
\setupheadertexts[chapter]
\setupheadertexts[][pagenumber][pagenumber][]
</texcode>
== Description ==
Place headers and footers with the commands \setupheadertexts and [[{{cmd:setupfootertexts|\setupfootertexts]]}}.
These commands take 4 arguments. The first is for the left handed side on odd pages, the second for the right handed side on odd pages, the third for the right handed side on even pages, and the fourth for the left handed side on even pages.
'''Note:''' '''\setuppagenumbering[location=]''' supresses the default output (i.e. centered in header) of the page number on every page.
 
=== Multiline header ===
 
<context source="yes">
\setuppapersize[A7,landscape]
\startsetups[headertext]
\startframed[frame=off,align=flushleft,width=fit]
abc\\
def\\
ghi\\
jkl
\stopframed
\stopsetups
 
\setupheadertexts[\directsetup{headertext}]
 
\starttext
\showframe
aaa
\stoptext
</context>
== See also ==
<!-- something like [[{{cmd:goto|\goto]] }} --> *{{cmd|setupfootertexts}}*{{cmd|setupheader}}
[[cmd== Help from ConTeXt-Mailinglist/Forum ==All issues with:setupheader{{Forum|\setupheader]]{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Texts|setupheadertexts]]

Navigation menu