Changes

Jump to navigation Jump to search
65 bytes added ,  12:37, 28 October 2021
* <code>text="some text"</code> places 'some text' between the source and the output.
* <code>mode="mkiv"</code> forces [[Mark IV]] instead of the default [[LMTX]] (should not be needed except to demonstrate a documented difference)
* <code>force="yes"</code> forces regeneration of the PNG image each time the page is loaded. This is expensive, so please only use it on special occasions (like in the example below where we are showing the {{cmd|contextversionnumbercontextbanner}}.
Quotation marks around attribute strings are only required if the attribute contains non-alphabetic characters.
<texcode>
\setuppapersize[A5][A5]
\setupexternalfigures[location={local,default}]
\setupbodyfont[8pt]
\setupcolors[state=start]
<texcode>
\setuppapersize[A5][A5]
\setupexternalfigures[location={local,default}]
\setupbodyfont[8pt]
\setupcolors[state=start]
|}
=== source="yes " ===
{| class=wikitable
|}
=== mode="mkiv " and mode="lmtx " ===By default, the wiki compiles examples using [[LMTX]]. You can specify that you want to use MkIV by adding the option <tt>mode="mkiv"</tt> to the tag. Because MkIV examples are visually indistinguishable from LMTX examples, it is good practice to start MkIV examples with a comment <code>% mode=mkiv</code>.
{| class=wikitable
|- style="vertical-align: top"
| <xmlcode>
<context source="yes " force="yes">Version: \contextversionnumbercontextbanner
</context>
</xmlcode>
| <context source="yes " force="yes">Version: \contextversionnumber contextbanner
</context>
|- style="vertical-align: top"
| <xmlcode>
<context mode="mkiv " source="yes " force="yes">Version: % mode=mkiv\contextversionnumbercontextbanner
</context>
</xmlcode>
|<context mode="mkiv " source="yes " force="yes">
% mode=mkiv
Version is: \contextversionnumbercontextbanner
</context>
|}
=== Displaying multiple pages ===
<context source="yes">
\setuppapersize[A10, landscape][A8, landscape]

Navigation menu