Paypal donations to donate@lawiki.org

Law Wiki | Law student Wiki:Community portal | Law Wiki

From Law Wiki | Law student Wiki | Legal Wiki | Law Wiki

Jump to:navigation, search

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

Contents

[edit] General

[edit] May I edit pages without signing in?

Yes, you may (mainly because we are still glad if the users who hate signing in can nevertheless contribute), but you are highly discouraged to do so. Please, sign in before contributing if possible. Even if you use a username/nickname with no resemblance to your real name, this is still better than not signing in at all.

[edit] How do I edit the first page?

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.

[edit] How do I sign when posting a comment?

So you will usually write --~~~ or --~~~~

[edit] What are the other commands to edit this wiki?

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

Most of the following markup on this help page is specific for contextgarden. So, read on!


[edit] Pretty printing

[edit] In-line elements


<code>

For in-line markup of code, commands, parameters, etc. in the running text use <code> ... </code>.

wiki markup

<xmlcode> In the following examples we use \framed command with the parameters background=color and offset=1cm. </xmlcode>

wiki display

In the following examples we use \framed command with the parameters background=color and offset=1cm.


[edit] Block elements


<pre>

To dispay verabtim text use <pre> ... </pre>.

wiki markup

<xmlcode>

This is an announcement from the mailing list with some code.

\unprotect
\def\!test{alfa} 
\protect 

</xmlcode>

wiki display

This is an announcement from the mailing list with some code.

\unprotect
\def\!test{alfa} 
\protect 

<texcode>

For displaying TeX an ConTeXt source use <texcode> ... </texcode>.

wiki markup

<xmlcode> <texcode> \def\person#1#2Template:\em

\setupcolors [state=start] \framed [background=color,

        backgroundcolor=green,
        offset=1cm ]{hello world!}

</texcode> </xmlcode>

wiki display

<texcode> \def\person#1#2Template:\em

\setupcolors [state=start] \framed [background=color,

        backgroundcolor=green,
        offset=1cm ]{hello world!}

</texcode>


<xmlcode>

For presenting XML source use <xmlcode> ... </xmlcode>.

wiki markup

<xmlcode> <xmlcode> <?xml version="1.0"?> <TeXML>

 <env name="text">
   Hello World
 </env>

</TeXML> </xmlcode> </xmlcode>

wiki display

<xmlcode> <?xml version="1.0"?> <TeXML>

 <env name="text">
   Hello World
 </env>

</TeXML> </xmlcode>


<context>

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>


source="yes"

If you add source="yes" to the <context> tag, you have the source and the result displayed. The contents of the attribute text 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>


[edit] Links

You can use 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]]

Contributors

Mike

Log in









Create an account
Law Subjects
Navigation
Toolbox Law Wiki