Changes

Jump to navigation Jump to search
4,440 bytes added ,  16:31, 4 November 2006
merged with Help:Editing, reorganized
If you are uncertain how a special markup looks like or if you want to try out things, go to the [http://sandbox.contextgarden.net/ sandbox].
 
== General ==
First page is protected to avoid spammers. However, you can still edit it (let's hope for stupid spammers). Type '''Template:Main Page''' after contextgarden.net/ and edit that template.
=== Most important How do I sign when posting a comment? === * <code><nowiki>~~~</nowiki></code> will expand into <nowiki>[[User:Yourusername|Yournickname]]</nowiki>, so basically your <b>nickname</b> will be shown* <code><nowiki>~~~~</nowiki></code> will also add a <b>timestamp</b> next to your nickname So you will usually write <code><nowiki>--~~~</nowiki></code> or <code><nowiki>--~~~~</nowiki></code> === What are the other commands to edit this wiki markup commands ? ===
{{todo| The markup used in this page duplicates wiki is a general MediaWiki markup and is described in the [[http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide MediaWiki User Guide] (esp. http://meta.wikimedia.org/wiki/Help:Editing]]; perhaps they should be merged}}).
* <code><nowiki>'''Bold text'''</nowiki></code> - '''Bold text'''* <code><nowiki>''Italic text''</nowiki></code> - ''Italic text''* <code><nowiki><context></nowiki></code>Rendered by \ConTeXt<code><nowiki></context></nowiki></code> - <context>Rendered by \ConTeXt</context>* <code><nowiki><texcode></nowiki></code>Highlighted text (used Most of the following markup on this help page is specific for \TeX)<code><nowiki></texcode></nowiki></code> - <texcode>Highlighted text (used for \TeX)</texcode>contextgarden. So, read on!
{{todo|Add more commands}}
==Pretty printing = How do I sign when posting = * <code><nowiki>'''Bold text'''</nowiki></code> -- '''Bold text'''* <code><nowiki>''Italic text''</nowiki></code> -- ''Italic text''* <code><nowiki>----</nowiki></code> draws a commenthorizonal rule === In-line elements ===----'''<code><nowiki><code></nowiki></code>''' For in-line markup of code, commands, parameters, etc. in the running text use <code><nowiki><code> ... </code></nowiki></code>. ''wiki markup'' <xmlcode>In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.</xmlcode> ''wiki display'' In the following examples we use <code>\framed</code> command with the parameters <code>background=color</code> and <code>offset=1cm</code>.---- === Block elements ===----'''<code><nowiki><pre></nowiki></code>''' To dispay verabtim text use <code><nowiki><pre> ... </pre></nowiki></code>. ''wiki markup'' <xmlcode><pre>This is an announcement from the mailing list with some code. \unprotect\def\!test{alfa} \protect </pre></xmlcode> ''wiki display'' <pre>This is an announcement from the mailing list with some code. \unprotect\def\!test{alfa} \protect </pre> ----'''<code><nowiki><texcode></nowiki></code>''' For displaying TeX an ConTeXt source use <code><nowiki><texcode> ... </texcode></nowiki></code>. ''wiki markup'' <xmlcode><texcode>\def\person#1#2{{\em #1 (#2)}} \setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</texcode></xmlcode> ''wiki display'' <texcode>\def\person#1#2{{\em #1 (#2)}} \setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</texcode>---- '''<code><nowiki><xmlcode></nowiki></code>''' For presenting XML source use <code><nowiki><xmlcode> ... </xmlcode></nowiki></code>. ''wiki markup'' <xmlcode>&lt;xmlcode><? xml version="1.0"?><TeXML> <env name="text"> Hello World </env></TeXML>&lt;/xmlcode></xmlcode> ''wiki display'' <xmlcode><?xml version="1.0"?><TeXML> <env name="text"> Hello World </env></TeXML></xmlcode> ---- '''<code><nowiki><context></nowiki></code>''' Nice local feature of contextgarden allows you to run ConTeXt on the fly and the wiki page will include the result of the eneterd code in the page. See also http://live.contextgarden.net/ for an online ConTeXt. ''wiki markup'' <xmlcode><context>\setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</context></xmlcode> ''wiki display'' <context>\setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</context>---- '''<code>source="yes"</code>''' If you add <code>source="yes"</code> to the <code><nowiki><context></nowiki></code> tag, you have the source and the result displayed. The contents of the attribute <code>text</code> will be inserted between the text and the result. ''wiki markup'' <xmlcode><context source="yes" text="produces">\setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</context></xmlcode> ''wiki display'' <context source="yes" text="produces">\setupcolors [state=start]\framed [background=color, backgroundcolor=green, offset=1cm ]{hello world!}</context>---- ==Links == You can use references to other garden projects. Use the following syntax to create links to the other contextgarden projects: <pre><nowiki> [[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]]</nowiki></pre>
Looks like:* [[source:type-akb.tex| type-akb.tex]] -- source files of ConTeXt* <code><nowiki>~~~<[[manual:cont-eni.pdf| ConTeXt, the manual]] or [[magazine:0008|Magazine 8]] -- manuals on http:/nowiki></code> will expand into <nowiki>www.pragma-ade.com* [[Usermodules:Yourusernamet-bnf|Yournicknamebnf module]]<-- [http:/nowiki>, so basically your <b>nickname</b> will be showntexshow.contextgarden.net third party modules]* [[cmd:goto|\goto]] -- links to the definition of the command in [http://texshow.contextgarden.net texshow-web] command reference (deprecated way: <code><nowiki>~~~~<cmd>about</cmd></nowiki></code> will also add a gives <bcmd>timestampabout</bcmd> next to your nickname)* [[gardenbugs:5| bug nr. 5]] -- bugs* [[article:80|A Few Dangerous Features]] * [[publication:1|MAPS]] -- MAPS articles
So you will usually write <code><nowiki>--~~~</nowiki></code> or <code><nowiki>--~~~~</nowiki></code>
== Tables ==
=== How to add a template? ===
 
{{todo|This page still needs quite some work}}
138

edits

Navigation menu