Difference between revisions of "Help:Editing"

From Wiki
Jump to navigation Jump to search
m (new structure)
m (pretty printing)
Line 13: Line 13:
 
== prettyprinting ==
 
== prettyprinting ==
 
<tt><nowiki><texcode> ... </texcode></nowiki></tt>  prettyprinting TeX source. Use like
 
<tt><nowiki><texcode> ... </texcode></nowiki></tt>  prettyprinting TeX source. Use like
<pre><nowiki><texcode>
+
<xmlcode>
 +
&lt;texcode>
 
  ...
 
  ...
</texcode></nowiki></pre>
+
&lt;/texcode>
 +
</xmlcode>
  
 
same with &lt;xmlcode>
 
same with &lt;xmlcode>
  
 
== inline ConTeXt ==
 
== inline ConTeXt ==
<pre><nowiki><context>
+
<xmlcode>&lt;context>
 
\setupcolors [state=start]
 
\setupcolors [state=start]
 
\framed [background=color,
 
\framed [background=color,
 
         backgroundcolor=green,
 
         backgroundcolor=green,
 
         offset=1cm ]{hello world!}
 
         offset=1cm ]{hello world!}
</context>
+
&lt;/context>
</nowiki></pre> runs ConTeXt on the fly. See also http://live.contextgarden.net/ for an online ConTeXt.
+
</xmlcode> runs ConTeXt on the fly. See also http://live.contextgarden.net/ for an online ConTeXt.

Revision as of 09:46, 10 September 2004

If you are uncertain how a special markup looks like or if you want to try out things, go to the sandbox.

general wiki markup

The markup used in this wiki is described in the MediaWiki User Guide (esp. http://meta.wikimedia.org/wiki/Help:Editing )

local addons

references to texshow-web

<cmd> ... </cmd>
and
<api> ... </api>: those link to the definition of the command in texshow-web. Example: <cmd>about</cmd> gives \about

prettyprinting

<texcode> ... </texcode> prettyprinting TeX source. Use like

<texcode>
 ...
</texcode>

same with <xmlcode>

inline ConTeXt

<context>
\setupcolors [state=start]
\framed [background=color,
         backgroundcolor=green,
         offset=1cm ]{hello world!}
</context>

runs ConTeXt on the fly. See also http://live.contextgarden.net/ for an online ConTeXt.