Command/setmarking
<cd:commandgroup name="setmarking" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> <cd:shortdesc>The command \setmarking is used to create mark texts. </cd:shortdesc> <cd:variants> <cd:command category="structure" file="strc-mar.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-marking.xml" level="style" name="setmarking" variantnumber="1">
<cd:arguments> <cd:keywords ordinal="1"> <cd:keywordsdoc></cd:keywordsdoc> <cd:constant type="cd:mark">a mark class</cd:constant> </cd:keywords> <cd:keywords delimiters="braces" ordinal="2"> <cd:keywordsdoc></cd:keywordsdoc> <cd:constant type="cd:text"></cd:constant> </cd:keywords> </cd:arguments> </cd:command>
</cd:variants> <cd:description>Sets a mark for use in (for example) headers and footers.
The mark class has to be defined using \definemarking, or one of the predefined mark classes for the sectioning commands: chapter
, section
, et cetera.
</cd:description>
<cd:examples><cd:example title="">
\setuppapersize[A6,landscape] \showframe \setupheadertexts[{\getmarking[section]}] \starttext \setmarking[section]{Other Languages} \input knuth \stoptext
</cd:example></cd:examples>
<cd:notes></cd:notes> <cd:seealso> <cd:source file="strc-mar.mkiv" originator="system"></cd:source> <cd:wikipage originator="system" page="Category:Structure"></cd:wikipage> <cd:commandref name="getmarking"></cd:commandref> <cd:commandref name="definemarking"></cd:commandref></cd:seealso> </cd:commandgroup>