Changes

Jump to navigation Jump to search
1,586 bytes added ,  12:54, 19 November 2021
Created page with "Documentation for \setmarking"
<cd:commandgroup name="setmarking" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\setmarking</tt> 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 {{cmd||definemarking}}, or one of the predefined mark classes for the sectioning commands: <code>chapter</code>, <code>section</code>, et cetera.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A6,landscape]
\showframe
\setupheadertexts[{\getmarking[section]}]

\starttext

\setmarking[section]{Other Languages}

\input knuth

\stoptext
</context></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>

Navigation menu