Changes

Jump to navigation Jump to search
209 bytes added ,  11:56, 25 June 2012
m
→‎Displaying ConTeXt output (and source): Add mode=mkiv comment, plus explanation
=== Displaying ConTeXt output (and source) ===
This wiki allows you to type ConTeXt code to obtain a PNG of the resultant output, with extraneous whitespace cropped. This is very useful for including in-page examples. Below are two simple ones; for more, see [[Help:Context]]. When using MkIV, it is good practice to include a comment '% mode=mkiv': otherwise, the reader will have no indication that the example is compiled with MkIV instead of the usual MkII.
{| class=wikitable
| <pre>
<context source=yes mode=mkiv text="This produces:">
% mode=mkiv
The wiki also uses ConTeXt Mark IV: \crlf
\contextversionnumber
</pre>
| <context source=yes mode=mkiv text="This produces:">
% mode=mkiv
The wiki also uses ConTeXt Mark IV: \crlf
\contextversionnumber

Navigation menu