Changes

Jump to navigation Jump to search
544 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>
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