Changes

Jump to navigation Jump to search
524 bytes added ,  20:10, 23 September 2019
m
== [[Help:Reference|Syntax]] ==
 
<syntax>setupheader</syntax>
 
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
== Description ==
The first argument is assumed to be "text" when it is left out. Text sets the position of the header and/or footer directly over or under the pagebody. Margin places the content in the margin of the document.
The different <tt>state</tt>s and their effects:
Note that when setting the state, before or after each applies to all parts of the page and it is therefore best to set these by themselves as the first example below shows. For this reason state=high also affects the footer in that it removes the footer leaving no whitespace.
== Example Examples ==
<texcode>\setupheader[state=empty]</texcode>
<texcode>\setupheader[strut=yes,style=bold]</texcode>
<texcode>\setupheader[text][after=\vskip 4pt \hrule]</texcode>
 
=== Header with thin line below ===
 
This is how to define header with thin line below, which does not appear on empty/blank page:
 
<context mode=mkiv source=yes>
\setupheader
[text]
[before={\startframed[frame=off,bottomframe=on,framecolor=blue,]},
after={\stopframed},
]
\setupheadertexts[Text left][Text right]
\starttext
Page 1
\page[empty,blank]
Page 2
\stoptext
</context>
== See also ==
<!-- something like {{cmd|goto}} -->
* {{cmd|setuplayouttext}}* {{cmd|setupheadertexts}}* {{cmd|setupfooter}}* {{cmd|setupfootertexts}}
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Layout|setupheader]]

Navigation menu