Changes

Jump to navigation Jump to search
93 bytes added ,  11:42, 3 December 2020
m
Typo
\enablemode[foo]
</texcode>
the contents of the mode environment are not execited executed because <code>foo</code> is not enabled when <code>\startmode</code> is encountered.
</texcode>
checks if both <code>mode1</code> and <code>mode2</code> are enabled.
 
= System modes =
| Enabled when running [[MkIV]]
|}
 
Perhaps the most useful system modes are <code>*mkii</code> and <code>*mkiv</code> which
You may want to use different images for XML [Export]. The <code>*export</code> mode is useful in such cases.
 
{|cellpadding="5" style="border-collapse: collapse;border-width: 1px; border-style: solid;"
| Enabled inside the corresponding section head.
|}
 
Sometimes you want a macro to behave differently if it is part of a section head, a section number, a list, a marking, or a register. For section heads, you can check for modes <code>*chapter</code>, <code>*section</code>, <code>*subsection</code>, etc. Similarly, <code>*list</code> is enabled inside a list, <code>*marking</code> is enabled inside a marking, and <code>*register</code> is enabled inside a register.
|'''*grid'''
| Enabled when grid typesetting is enabled
|-
|'''*singlesided'''
| Enabled when singlesided layout is enabled
|-
|'''*doublesided'''
| Enabled when doublesided layout is enabled
|}
 
{|cellpadding="5" style="border-collapse: collapse;border-width: 1px; border-style: solid;"
</texcode>
{{Getting started navbox}} [[Category:ConTeXt programmingTools]]
93

edits

Navigation menu