Difference between revisions of "Help:Editing"

From Wiki
Jump to navigation Jump to search
(new feature! source="yes" in tag <context> yields source and result)
(new attribute in <context> tag: text="xyz" will render xyz between text and example)
Line 60: Line 60:
  
 
If you add <tt>source="yes"</tt> to the &lt;context> tag, you have the source and the result displayed. Example:
 
If you add <tt>source="yes"</tt> to the &lt;context> tag, you have the source and the result displayed. Example:
<xmlcode>&lt;context source="yes">
+
<xmlcode>&lt;context source="yes" text="produces">
 
\setupcolors [state=start]
 
\setupcolors [state=start]
 
\framed [background=color,
 
\framed [background=color,
Line 67: Line 67:
 
&lt;/context>
 
&lt;/context>
 
</xmlcode>
 
</xmlcode>
 +
The contents of the attribute <tt>text</tt> will be inserted between the text and the result.

Revision as of 23:42, 11 July 2006

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 other garden projects

Use the following syntax to create links to the other contextgarden projects:

 [[source:type-akb.tex| type-akb.tex]]
 [[manual:cont-eni.pdf| ConTeXt, the manual]] or [[magazine:0008|Magazine 8]]
 [[modules:t-bnf| bnf module]]
 [[cmd:goto|\goto]] 
 [[gardenbugs:5| bug nr. 5]]
 [[article:80|A Few Dangerous Features]]
 [[publication:1|MAPS]]

Looks like:

Or (deprecated) use the <cmd> ... </cmd> syntax for texshow-web (next section).

references to texshow-web

<cmd> ... </cmd>

this links 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.

If you add source="yes" to the <context> tag, you have the source and the result displayed. Example:

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

The contents of the attribute text will be inserted between the text and the result.