Changes

Jump to navigation Jump to search
272 bytes added ,  17:56, 28 May 2020
no edit summary
''This page is about editing pages on this wiki in general. For editing command reference pages, also see [[Help:Command reference]].''
 
{{todo|Warning: explain here the use of ToDo category.}}
== General ==
=== 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 {{code|1=% 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>
The wiki's default is using ConTeXt Mark IIIV: \crlf
\contextversionnumber
</context>
</pre>
| <context>
The wiki's default is using ConTeXt Mark IIIV: \crlf
\contextversionnumber
</context>
|- style="vertical-align: top"
| <pre>
<context source=yes mode=mkiv text="This produces:">% mode=mkivThe wiki also still uses ConTeXt Mark IV: \crlf
\contextversionnumber
</context>
</pre>
| <context source=yes mode=mkiv text="This produces:">% mode=mkivThe wiki also still uses ConTeXt Mark IV: \crlf
\contextversionnumber
</context>
|}
 
 
=== Displaying a ConTeXt command syntax ===
If you want to show the calling convention(s) of a ConTeXt command, you can use <code><nowiki><syntax> ... </syntax></nowiki></code>. This is particularly useful in a "Command" page.
 
{| class=wikitable
! scope=col width=300 style="text-align: left"| You type
! scope=col width=300 style="text-align: left"| You see
|- style="vertical-align: top"
| <pre>
<syntax>page</syntax>
</pre>
| <syntax>page</syntax>
|}
 
=== Displaying TeX or ConTeXt code alone ===

Navigation menu