Changes

Jump to navigation Jump to search
81 bytes added ,  08:26, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
\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 =
Besides allowing user-definable modes, ConTeXt provides some system
modes. These modes start with a <code>*</code> character. Here
only the more commonly used system modes are explained; see the ConTeXt [http://pragma-ade.comnl/general/manuals/mmodes.pdf modes manual]
for a complete list.
| 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;"
\executesystemcommand{some_external_program ...}
% convert PS into PDF
\executesystemcommand{texmfstart pstopdf fig-1.ps}
\stopmode
</texcode>
{{Getting started navbox}} [[Category:ConTeXt programmingTools]]

Navigation menu