Changes

Jump to navigation Jump to search
make multi page example work again
<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">
\contextbanner
</context>
</xmlcode>
| <context source="yes " force="yes"> \contextbanner
</context>
|- style="vertical-align: top"
| <xmlcode>
<context mode="mkiv " source="yes " force="yes">% mode=mkiv
\contextbanner
</context>
</xmlcode>
|<context mode="mkiv " source="yes " force="yes">
% mode=mkiv
\contextbanner
</context>
|}
=== Displaying multiple pages ===
<context source="yes">\setuppapersize[A10, landscape][A8, landscape]
\setuppaper[nx=2, ny=2] % arrange pages 2 by 2 (must come before \setuparranging[XY])
\showframe[edge] % Draw line around each page. Prevents overzealous cropping
\starttextone \page[yes]two \page[yes]three \page[yes]
four
\stoptext
</context>

Navigation menu