Open main menu

Changes

557 bytes added ,  19:21, 25 July 2020
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.
The <nowiki><syntax></nowiki> tag accepts two attributes:
* you can add <code>type="environment"</code> to get the syntax for a ConTeXt environment like <code>itemize</code>.
* if you want only a specific variant of a command or an environment, you can add <code>variant=</code>.
{| class=wikitable
! scope=col width=300 style="text-align: left"| You type
</pre>
| <syntax>page</syntax>
|-
| <pre>
<syntax type="environment">itemize</syntax>
</pre>
| <syntax type="environment">itemize</syntax>
|-
| <pre>
<syntax variant='direct'>cite</syntax>
</pre>
| <syntax variant='direct'>cite</syntax>
 
|-
| <pre>
<syntax>cite</syntax>
</pre>
| <syntax>cite</syntax>
 
|}
 
=== Displaying TeX or ConTeXt code alone ===