Changes

Jump to navigation Jump to search
639 bytes added ,  16:08, 12 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupheader</syntax>
== [[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 allows the text to lap into removes the footer area as wellleaving 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