Stijlgids: verschil tussen versies

Uit Wina Examenwiki
Naar navigatie springen Naar zoeken springen
Tias (overleg | bijdragen)
wiskundige formules erbij, sub/superscript uit algemeen
Vincent (overleg | bijdragen)
Geen bewerkingssamenvatting
 
(13 tussenliggende versies door 9 gebruikers niet weergegeven)
Regel 1: Regel 1:
== Indeling van paginas ==
== Indeling van paginas ==
Een pagina is opgedeeld in verschillende secties, die elk weer opgedeeld zijn in subsecties en die mogelijk nog eens in sub-subsecties. Respecteer altijd de opdeling van een pagina die je aanpast.


Maak een subpagina indien hetgeen je wil toevoegen maar half relevant is met de huidige inhoud, of indien het heel groot is. Subpagina's moeten beginnen met de vaknaam en een schuine streep en zien er dus als volgt uit: <vaknaam>/<subpagina naam>


== Meest gebruikte tags ==
== Meest gebruikte tags ==
Bovenaan het edit form staan enkele knoppen die de tags voor jou invullen, heel handig !
Bovenaan het edit form staan enkele knoppen die de tags voor jou invullen, heel handig ! Voor meer informatie verwijzen we u door naar [[help:syntax|de syntax pagina]] en voor gedetailleerde informatie naar [[WinaExamens:Help|de help pagina]].


=== Indeling tags ===
=== Indeling tags ===
Regel 15: Regel 17:


=== Layout tags ===
=== Layout tags ===
:* <nowiki>:</nowiki> Indenteren !
* <nowiki>'''Bold text'''</nowiki> '''Vet'''
* <nowiki>'''Bold text'''</nowiki> '''Vet'''
* <nowiki>''Italic text''</nowiki> ''Cursief''
* <nowiki>''Italic text''</nowiki> ''Cursief''
Regel 20: Regel 23:
* <nowiki><nowiki></nowiki></nowiki> Geen wiki markup hierin, handig voor code enzo
* <nowiki><nowiki></nowiki></nowiki> Geen wiki markup hierin, handig voor code enzo


== The wiki markup ==
=== Tabellen tags ===
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
* <nowiki>{|</nowiki> begin tabel
* <nowiki>|}</nowiki> einde tabel
* <nowiki>|-</nowiki> nieuwe rij
* <nowiki>#</nowiki> header cell
* <nowiki>|</nowiki> gewone cell


You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the [[Sandbox]].
=== Link tags ===
 
* <nowiki>[[link]]</nowiki> Interne link
=== Sections, paragraphs, lists and lines ===
* <nowiki>[[link|de titel]]</nowiki> Interne link met titel
<table border="1" cellpadding="2" cellspacing="0">
* <nowiki>[http://link]</nowiki> Externe link
<tr>
* <nowiki>[http://link de titel]</nowiki> Externe link met titel
<th>What it looks like</th>
<th>What you type</th>
</tr>
<tr>
<td>
Start your sections with header lines:
 
<!-- This is the original
== New section ==
=== Subsection ===
==== Sub-subsection ====
-->
 
<!-- next set
<h2> New section </h2>
<h3> Subsection </h3>
<h4> Sub-subsection </h4>
-->
 
<!-- This code prevents confusion in the section editing feature-->
<b><font style="font-size:120%"> New section </font></b>
 
<b><font style="font-size:110%"> Subsection</font></b>
 
<b><font style="font-size:100%"> Sub-subsection</font></b>
 
</td>
<td><pre><nowiki>
 
== New section ==
 
=== Subsection ===
 
==== Sub-subsection ====
</nowiki></pre>
</td>
</tr>
<tr>
<td>
[[en:newline|Newline]]:
 
A single
newline
has no
effect on the
layout.
 
But an empty line
starts a new paragraph.
 
(<nowiki><p></nowiki> disables this paragraphing until <nowiki></p></nowiki> or the end  of the section)
 
(in Cologne Blue two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines)
 
</td>
<td>
<pre><nowiki>
 
A single
newline
has no
effect on the
layout.
 
But an empty line
starts a new paragraph.</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>You can break lines<br>
without starting a new paragraph.<p>
Sufficient as wikitext code is &lt;br&gt;, the XHTML code &lt;br /&gt; is not needed, the system produces this code.</p></td>
<td><pre><nowiki>You can break lines<br>
without starting a new paragraph.</nowiki></pre>
</td>
</tr>
<tr>
<td>
* Lists are easy to do:
** start every line with a star
*** more stars means deeper levels
*A newline
*in a list 
marks the end of the list.
*Of course
*you can
*start again.
 
</td>
<td><pre><nowiki>* Lists are easy to do:
** start every line with a star
*** more stars means deeper levels
*A newline
*in a list 
marks the end of the list.
*Of course
*you can
*start again.
 
</nowiki></pre>
</td>
</tr>
<tr>
<td>
# Numbered lists are also good
## very organized
## easy to follow
#A newline
#in a list 
marks the end of the list.
#New numbering starts
#with 1.
 
</td>
<td><pre><nowiki># Numbered lists are also good
## very organized
## easy to follow
#A newline
#in a list 
marks the end of the list.
#New numbering starts
#with 1.
</nowiki></pre>
</td>
</tr>
<tr>
<td>
* You can even do mixed lists
*# and nest them
*#* like this<br>or have newlines<br>inside lists
</td>
<td><pre><nowiki>* You can even do mixed lists
*# and nest them
*#* like this<br>or have newlines<br>inside lists</nowiki></pre>
</td>
</tr>
<tr>
<td>
* You can also
**break lines<br>inside lists<br>like this
</td>
<td><pre><nowiki>* You can also
**break lines<br>inside lists<br>like this</nowiki></pre>
</td>
<tr>
<td>
; Definition list : list of definitions
; item : the item's definition
</td>
<td><pre><nowiki>; Definition list : list
of definitions
; item : the item's definition</nowiki></pre>
</td>
</tr>
<tr>
<td>
:A colon indents a line or paragraph.
A manual newline starts a new paragraph.
* This is primarily for displayed material, but is also used for discussion on [[Help:Talk page|Talk page]]s.
</td>
<td><pre><nowiki>: A colon indents a line or paragraph.
A manual newline starts a new paragraph.
</nowiki></pre>
</td>
</tr>
<tr valign=top>
<td>
<pre><nowiki>IF a line of plain text starts with a space THEN
  it will be formatted exactly
    as typed;
  in a fixed-width font;
  lines won't wrap;
ENDIF
this is useful for:
  * pasting preformatted text;
  * algorithm descriptions;
  * program source code
  * ASCII art;
  * chemical structures;</nowiki></pre>
 
WARNING If you make it wide,
you [[en:page widening|force the whole page to be wide]] and
hence less readable. Never start ordinary lines with spaces.<br>
<center>(see also below)</center>
</td>
<td><pre><nowiki> IF a line of plain text starts with a space THEN
  it will be formatted exactly
    as typed;
  in a fixed-width font;
  lines won't wrap;
ENDIF
this is useful for:
  * pasting preformatted text;
  * algorithm descriptions;
  * program source code
  * ASCII art;
  * chemical structures;</nowiki></pre></td>
</tr>
<tr valign="top"><td><center>Centered text.</center>
</td>
<td><pre><nowiki><center>Centered text.</center></nowiki></pre>
</td>
</tr>
<tr>
<td>A [[en:horizontal dividing line|horizontal dividing line]]: above
----
 
and below.
 
Mainly useful for separating threads on Talk pages.
</td>
<td><pre><nowiki>A horizontal dividing line: above
----
and below. </nowiki></pre>
</td>
</tr>
</table>
 
Summarizing the effect of a single newline: no effect in general, but it ends a list item or indented part; thus changing some text into a list item, or indenting it, is more cumbersome if it contains newlines, they have to be removed; see also [[w:Wikipedia:Don't use line breaks]].
 
=== Links, URLs ===
 
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<th>What it looks like</th>
<th>What you type</th>
</tr>
<tr valign="top"><td>Sue is reading the [[video policy]].
*First letter of target is automatically capitalized.
*Internally spaces are automatically represented as underscores (typing an underscore has the same effect as typing a space, but is not recommended).
Thus the [[link]] above is to <nowiki>http://meta.wikipedia.org/wiki/Video_policy</nowiki>, which is the page with the name "Video policy".
</td>
<td><pre><nowiki>Sue is reading the [[video policy]].</nowiki></pre>
</td>
</tr>
<tr><td>
Link to a section on a page, e.g.
[[List_of_cities_by_country#Morocco]]; when section editing does not work the link is treated as link to the page, i.e. to the top; this applies for:
*links to non-existent sections
*links in redirects
*interwiki links</td><td>
<pre><nowiki>[[List_of_cities_by_country#Morocco]].</nowiki></pre></td>
</tr>
<tr valign="top"><td>Link target and link label are different: [[User:Larry Sanger|answers]].
 
(This is called a [[piped link]]).
</td>
<td><pre><nowiki>Same target, different name:
[[User:Larry Sanger|answers]]</nowiki></pre>
</td>
</tr>
<tr valign="top">
<td>Endings are blended into the link: [[official position]]s, [[gene]]s</td>
<td>
<pre><nowiki>Endings are blended
into the link: [[official position]]s, [[gene]]s</nowiki></pre>
</td>
</tr>
<tr valign="top">
<td>
Automatically hide stuff in parentheses: [[kingdom (biology)|kingdom]].
<p>Automatically hide namespace: [[Wikipedia:Village pump|Village pump]].</p>
<p>The server fills in the part after the | when you save the page. Next time you open the edit box you will see the expanded piped link. A preview interprets the abbreviated form correctly, but does not expand it yet in the edit box. Press Save and again Edit, and you will see the expanded version. The same applies for the following feature.</p>
</td>
<td>
<pre><nowiki>Automatically hide stuff in parentheses:
[[kingdom (biology)|]]. </nowiki></pre>
<pre><nowiki>Automatically hide namespace:
[[Wikipedia:Village pump|]].</nowiki></pre>
</td></tr>
<tr>
<td>When adding a comment to a Talk page,
you should sign it. You can do this by
adding three tildes for your user name:
: [[User:Karl Wick|Karl Wick]]
or four for user name plus date/time:
: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
</td>
<td><pre><nowiki>When adding a comment to a Talk page,
you should sign it. You can do this by
adding three tildes for your user name:
: ~~~
or four for user name plus date/time:
: ~~~~</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>[[The weather in London]] is a page that doesn't exist yet.
*You can create it by clicking on the link.
*To create a new page:
*#Create a link to it on some other page.
*#Save that page.
*#Click on the link you just made. The new page will open for editing.
*Have a look at [[MediaWiki User's Guide: Starting a new page|how to start a page]] guide and the naming conventions page for your project.
</td>
<td><pre><nowiki>[[The weather in London]] is a page
that doesn't exist yet.</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>
[[MediaWiki User's Guide: Using redirects|Redirect]] one article title to another by putting text like this in its first line.
</td>
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>
A link to the page on the same subject in another language or, more generally, to a page on another wiki:
[[fr:Wikipédia:Aide]].
For more info see [[MediaWiki User's Guide: Interwiki linking]].
</td>
<td><pre><nowiki>[[fr:Wikipédia:Aide]], [[:fr:Wikipédia:Aide]]</nowiki></pre></td>
</tr>
<tr>
<td>"What links here" and "Related changes" can be linked as:<br/>
[[Special:Whatlinkshere/Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/Wikipedia:How to edit a page]]
</td>
<td><pre><nowiki>
[[Special:Whatlinkshere/
Wikipedia:How to edit a page]] and
[[Special:Recentchangeslinked/
Wikipedia:How to edit a page]]</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>External links: [http://www.nupedia.com Nupedia], [http://www.nupedia.com]
</td>
<td><pre><nowiki>External links:
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com.
*In the [[en:URL|URL]] all symbols must be among: A-Z a-z 0-9 ._\/~%-+&amp;#?!=()@ \x80-\xFF. If a URL contains a different character it should be converted; for example, ^ has to be written %5E (to be looked up in [[en:ASCII|ASCII]]). A blank space can also be converted into an underscore.
</td>
<td><pre><nowiki>Or just give the URL:
http://www.nupedia.com.</nowiki></pre>
</td>
</tr>
<tr>
<td>
To link to books, you can use [[en:ISBN|ISBN]] links.
ISBN 0123456789X See [[Help:ISBN links]]
</td>
<td>
<pre><nowiki>ISBN 0123456789X</nowiki></pre>
</td>
<tr>
<td>
Link to [[w:Request for Comments|Request for Comments]]: RFC 123 (URL specified in [[mediawiki:Rfcurl]])
</td>
<td>
<pre><nowiki>RFC 123</nowiki></pre>
</td>
<tr>
<td>
To include links to non-image uploads such as sounds, use a "media" link.
<br/>[[media:Sg_mrob.ogg|Sound]]
</td>
<td>
<pre>
<nowiki>
[[media:Sg_mrob.ogg|Sound]]
</nowiki></pre>
</td>
</tr>
<tr valign=top>
<td>Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.
</td>
<td><pre><nowiki>[[July 20]], [[1969]] , [[20 July]] [[1969]]
and [[1969]]-[[07-20]]
</nowiki></pre>will all appear as [[20 July]] [[1969]] if you set your date display preference to 1 January 2001.
</td>
</tr>
</table>
 
=== Images ===
 
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<th>What it looks like</th>
<th>What you type</th>
</tr>
<tr valign="top"><td>A picture: [[Image:Wiki.png|Wikipedia - The Free Encyclopedia]]
* For many projects, only images that have been uploaded to the same project can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]
</td>
<td><pre><nowiki>
A picture: [[Image:Wiki.png]]</nowiki></pre>
or, with alternate text (''strongly'' encouraged) <!-- actually required in HTML4 -->
<pre><nowiki>[[Image:Wiki.png|Wikipedia
- The Free Encyclopedia]] </nowiki>
</pre>
[[en:Web browser|Web browser]]s render alternate text when not displaying an image -- for example, when the image isn't loaded, or in a text-only browser, or when spoken aloud. See [[en:Wikipedia:Alternate text for images|Alternate text for images]] for help on choosing alternate text.  See [[en:Wikipedia:Extended_image_syntax|Extended image syntax]] for more options.
</td>
</tr>
<tr>
<td>
Clicking on an uploaded image displays a description page, which you can also link directly to: [[:Image:Wiki.png]]
</td>
<td><pre><nowiki>
[[:Image:Wiki.png]]
</nowiki></pre>
</td>
</tr>
 
<tr>
<td>
To include links to images shown as links instead of drawn on the page, use a "media" link.
<br/>[[media:Tornado.jpg|Image of a Tornado]]
</td>
<td>
<pre>
<nowiki>
[[media:Tornado.jpg|Image of a Tornado]]
</nowiki></pre>
</td>
</tr>
 
</table>
 
=== Character formatting ===
 
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<th>What it looks like</th>
<th>What you type</th>
</tr>
<tr valign="top"><td>
''Emphasize'', '''strongly''', '''''very strongly'''''.
*These are double and triple apostrophes, not double quotes.
</td>
<td>
<pre><nowiki>''Emphasize'', '''strongly''',
'''''very strongly'''''.</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>
You can also write <i>italic</i> and <b>bold</b>
if the desired effect is a specific font style
rather than emphasis, as in mathematical formulae:
:<b>F</b> = <i>m</i><b>a</b>
*However, the difference between these two methods is not very important for graphical browsers, and many people choose to ignore it.
</td>
<td>
<pre><nowiki>You can also write <i>italic</i>
and <b>bold</b> if the desired effect is a
specific font style rather than emphasis, as
in mathematical formulas:
:<b>F</b> = <i>m</i><b>a</b></nowiki></pre><!-- that's not a mathematical formula, though -- sure it is, just because it's being applied to physics doesn't make it stop being mathematics -->
</td>
</tr>
<tr valign=top>
<td>A typewriter font for <tt>technical terms</tt>.
</td>
<td><pre><nowiki>A typewriter font for
<tt>technical terms</tt>.</nowiki></pre>
</td><!-- tt is really 'teletype', not 'technical term' -->
</tr>
<tr valign=top>
<td>You can use <small>small text</small> for captions.
</td>
<td><pre><nowiki>You can use <small>small text</small>
for captions.</nowiki></pre>
</td>
</tr>
<tr valign="top"><td>You can <strike>strike out deleted material</strike>
and <u>underline new material</u>.
</td>
<td><pre><nowiki>You can <strike>strike out deleted material</strike>
and <u>underline new material</u>.</nowiki></pre>
</td>
</tr>
<tr valign=top>
<td>
'''Punctuation:'''<br/>
&iquest; &iexcl; &laquo; &raquo; &sect; &para;<br/>
&dagger; &Dagger; &bull; &mdash;
</td>
<td><pre><nowiki>
&amp;iquest; &amp;iexcl; &amp;laquo; &amp;raquo; &amp;sect; &amp;para;
&amp;dagger; &amp;Dagger; &amp;bull; &amp;mdash;</nowiki></pre></td>
</tr>
<tr valign="top">
<td>
'''Commercial symbols:'''<br/>
&trade; &copy; &reg; &cent; &euro; &yen; <br/>
&pound; &curren;</td>
<td><pre><nowiki>
&amp;trade; &amp;copy; &amp;reg; &amp;cent; &amp;euro; &amp;yen;
&amp;pound; &amp;curren;
</nowiki></pre></td>
</tr>
<tr valign="top" id="subscript"><td>Subscript: x<sub>2</sub><br/>
Superscript: x<sup>2</sup> or x&sup2;
*To space things out, use non-breaking spaces - <tt>&amp;nbsp;</tt>.
*<tt>&amp;nbsp;</tt> also prevents line breaks in the middle of text, this is useful in formulas.
</td>
<td><pre><nowiki>
<i>x</i><sup>2</sup>&amp;nbsp;&amp;nbsp;&amp;ge;&amp;nbsp;&amp;nbsp;0 true.
</nowiki></pre></td>
</tr>
<tr>
<td>
'''For comparison for the following examples:'''
 
arrow      &rarr;
 
''italics''
[[link]]
</td>
<td valign="bottom">
<pre><nowiki>arrow      &amp;rarr;
 
''italics''
[[link]]</nowiki></pre>
</td>
</tr>
<tr>
<td>
'''Use &lt;nowiki> to suppress interpretation of wiki markup, but interpret character references and remove newlines and multiple spaces:'''
 
<nowiki>arrow      &rarr;
 
''italics''
[[link]]
</nowiki>
</td>
<td valign="bottom">
<pre><nowiki><nowiki>arrow      &amp;rarr;
 
''italics''
[[link]]</nowiki></nowiki></pre>
 
</td>
</tr>
<tr>
<td>
'''Use &lt;pre> to suppress interpretation of wiki markup and keep newlines and multiple spaces, and get typewriter font, but interpret character references:'''
 
<pre>arrow      &rarr;
 
''italics''
[[link]]
</pre>
</td>
<td valign="bottom">
<pre><nowiki><pre>arrow      &amp;rarr;
 
''italics''
[[link]]</pre></nowiki></pre>
</td>
</tr>
<tr>
<td>
'''Use leading space on each line to keep newlines and multiple spaces, and get typewriter font:
arrow      &rarr;
 
''italics''
[[link]]
</pre>
</td>
<td valign="bottom">
<pre> <nowiki>arrow      &amp;rarr;
 
''italics''
[[link]]</nowiki></pre>
</td>
</tr>
<tr>
<td>
'''Use typewriter font:'''
 
<tt>arrow      &rarr;</tt>
 
<tt>''italics''</tt>
<tt>[[link]]</tt>
 
</td>
<td valign="bottom">
<pre><nowiki><tt>arrow      &amp;rarr;</tt>
 
<tt>''italics''</tt>
<tt>[[link]]</nowiki></tt></pre>
</td>
</tr>
<tr>
<td>
'''Show character references:'''
 
&amp;rarr;
</td>
<td valign="bottom">
&amp;amp;rarr;</pre>
</td>
</tr>
<tr>
<td>
'''Commenting page source:'''<br/>
''not shown in page''
* Used to leave comments in a page for future editors.
</td>
<td>
<pre><nowiki><!-- comment here --></nowiki></pre>
</td>
</tr>
</table>
 
=== HTML Tables ===
 
[[en:HTML|HTML]] tables can be quite useful as well. For details on how to use them and discussion about when they are appropriate, see [[m:Help:Table]].
 
== Wiskundige Formules ==
 
[[MediaWiki]] uses '''[[en:TeX|TeX]] markup''' for mathematical formulae. It generates either [[en:PNG|PNG]] images or simple [[en:HTML|HTML]] markup, depending on [[Help:Preferences#Rendering_math|user preferences]] and the complexity of the expression. In the future, as more browsers are smarter, it will be able to generate enhanced HTML or even [[en:MathML|MathML]] in many cases.
 
Math markup goes inside ''<nowiki><math> ... </math></nowiki>''. The [[help:edit toolbar|edit toolbar]] has a button for this.
 
The PNG images are black on white (not transparent). These colors, as well as font sizes and types, are independent of browser settings or css. Font sizes and types will often deviate from what HTML renders. The [[Help:User_style#Css_selectors|css selector]] of the images is img.tex.
 
In the case of a non-white page background, the white background of the formula effectively highlights it, which can be an advantage or a disadvantage.
 
One may want to avoid using TeX markup as part of a line of regular text, as the formulae don't align properly and the font size, as said, usually does not match.
 
The alt attribute of the TeX images (the text that shows up in the hover box) is the wikitext that produced them, excluding the <nowiki><math> and </math></nowiki>.
 
Discussion, bug reports and feature requests should go to the [[Mailing_list#Wikitech|Wikitech-l mailing list]].  These can also be filed on [http://bugzilla.wikipedia.org Mediazilla] under ''MediaWiki extensions''.
 
===General===
 
Spaces and newlines are ignored. Apart from function and operator names, as is customary in mathematics for variables, letters are in italics; digits are not. For other text, to avoid being rendered in italics like variables, use <code>\mbox</code>: <code><nowiki><math>\mbox{abc}</math></nowiki></code> gives <math>\mbox{abc}</math>
 
Line breaks help keep the wikitext clear, for instance, a line break after each term or matrix row.
 
=== Functions, symbols, special characters ===
 
For producing special characters without math tags, see [[Help:Special characters]].
 
Comparison:
*<tt>&amp;alpha;</tt> gives &alpha;, <tt><nowiki><math>\alpha</math></nowiki></tt> gives <math>\alpha</math> ("<tt>&amp;</tt>" and "<tt>;</tt>" vs. "<tt>\</tt>", in this case the same code word "<tt>alpha</tt>"
*<tt>&amp;radic;2</tt> gives &radic;2, <tt><nowiki><math>\sqrt{2}</math></nowiki></tt> gives <math>\sqrt{2}</math> (the same difference as above, but also another code word, "<tt>radic</tt>" vs. "<tt>sqrt</tt>"; in TeX braces)
*<tt>&amp;radic;(1-<nowiki>''e''</nowiki>&amp;sup2;)</tt> gives &radic;(1-''e''&sup2;), <tt><nowiki><math>\sqrt{1-e^2}</math></nowiki></tt> gives <math>\sqrt{1-e^2}</math> (parentheses vs. braces, "<tt><nowiki>''e''</nowiki></tt>" vs. "<tt>e</tt>", "<tt>&amp;sup2;</tt>" vs. "<tt>^2</tt>")
 
{| border="1"
|-
! Feature
! Syntax
! How it looks [[w:Rendering (computer graphics)|render]]ed
|-
| Accents/Diacritics
| \acute{a} \quad \grave{a} \quad \breve{a} \quad \check{a} \quad \tilde{a}
| <math>\acute{a} \quad \grave{a} \quad \breve{a} \quad \check{a} \quad \tilde{a}</math>
|-
| Std. functions (good)
| \sin x + \ln y +\operatorname{sgn} z<br/>
\sin a \ \cos b \ \tan c \ \cot d \ \sec e \ \csc f<br/>
\sinh g \ \cosh h \ \tanh i \ \coth j<br/>
\arcsin k \ \arccos l \ \arctan m<br/>
\lim n \ \limsup o \ \liminf p<br/>
\min q \ \max r \ \inf s \ \sup t<br/>
\exp u \ \lg v \ \log w<br/>
\ker x \ \deg x \gcd x \Pr x \ \det x \hom x \ \arg x \dim x
| <math>\sin x + \ln y +\operatorname{sgn} z</math><br/>
<math>\sin a \ \cos b \ \tan c \ \cot d \ \sec e \ \csc f</math><br/>
<math>\sinh g \ \cosh h \ \tanh i \ \coth j</math><br/>
<math>\arcsin k \ \arccos l \ \arctan m</math><br/>
<math>\lim n \ \limsup o \ \liminf p</math><br/>
<math>\min q \ \max r \ \inf s \ \sup t</math><br/>
<math>\exp u \ \lg v \ \log w</math><br/>
<math>\ker x \ \deg x \gcd x \Pr x \ \det x \hom x \ \arg x \dim x</math>
|-
| Std. functions (wrong)
| sin x + ln y + sgn z
| <math>sin x + ln y + sgn z\,\!</math>
|-
| Modular arithmetic
| s_k \equiv 0 \pmod{m}<br/>
a \bmod b
| <math>s_k \equiv 0 \pmod{m}</math><br/>
<math>a \bmod b\,\!</math>
|-
| Derivatives
| \nabla \; \partial x \; dx \; \dot x \; \ddot y
| <math>\nabla \; \partial x \; dx \; \dot x \; \ddot y</math>
|-
| rowspan="2" | Sets<br/>
(Square symbols may not work for some wikis)
| \forall \; \exists \; \empty \; \emptyset \; \varnothing \in \ni \not\in \notin<br/>
\subset \subseteq \supset \supseteq \cap \bigcap \cup \bigcup \biguplus
| <math>\forall \; \exists \; \empty \; \emptyset \; \varnothing \in \ni \not\in \notin</math><br/>
<math>\subset \subseteq \supset \supseteq \cap \bigcap \cup \bigcup \biguplus</math>
|-
| \sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup
| <math>\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup</math>
|-
| Logic
| p \land \wedge \; \bigwedge \; \bar{q} \to p\ lor \vee \; \bigvee \; \lnot \; \neg q \; \setminus \; \smallsetminus
| <math>p \land \wedge \; \bigwedge \; \bar{q} \to p \lor \vee \; \bigvee \; \lnot \; \neg q \; \setminus \; \smallsetminus</math>
|-
| rowspan="2" | Root
| \sqrt{2}\approx 1.4
| <math>\sqrt{2}\approx 1.4</math>
|-
| \sqrt[n]{x}
| <math>\sqrt[n]{x}</math>
|-
| Relations
| \sim \; \approx \; \simeq \; \cong \; \le \; < \; \ge \; > \; \equiv \; \not\equiv \; \ne \; \propto \; \pm \; \mp
| <math>\sim \; \approx \; \simeq \; \cong \; \le \; < \; \ge \; > \; \equiv \; \not\equiv \; \ne \; \propto \; \pm \; \mp</math>
|-
| Geometric
| \Diamond \; \Box \; \triangle \; \angle \; \perp \; \mid \; \nmid \; <nowiki>\|</nowiki> \; 45^\circ
| <math>\Diamond \; \Box \; \triangle \; \angle \; \perp \; \mid \; \nmid \; \| \; 45^\circ</math>
|-
| rowspan="3" | Arrows<br/>
(Harpoons may not work for some wikis)
| \leftarrow \; \gets \; \rightarrow \; \to \; \leftrightarrow<br/>
\longleftarrow \; \longrightarrow<br/>
\mapsto \; \longmapsto \; \hookrightarrow \; \hookleftarrow<br/>
\nearrow \; \searrow \; \swarrow \; \nwarrow<br/>
\uparrow \; \downarrow \; \updownarrow
| <math>\leftarrow \; \gets \; \rightarrow \; \to \; \leftrightarrow</math><br/>
<math>\longleftarrow \; \longrightarrow</math><br/>
<math>\mapsto \; \longmapsto \; \hookrightarrow \; \hookleftarrow</math><br/>
<math>\nearrow \; \searrow \; \swarrow \; \nwarrow</math><br/>
<math>\uparrow \; \downarrow \; \updownarrow</math>
|-
| \rightharpoonup \; \rightharpoondown \; \leftharpoonup \; \leftharpoondown \; \upharpoonleft \; \upharpoonright \; \downharpoonleft \; \downharpoonright
| <math>\rightharpoonup \; \rightharpoondown \; \leftharpoonup \; \leftharpoondown \; \upharpoonleft \; \upharpoonright \; \downharpoonleft \; \downharpoonright</math>
|-
| \Leftarrow \; \Rightarrow \; \Leftrightarrow<br/>
\Longleftarrow \; \Longrightarrow \; \Longleftrightarrow (or \iff)<br/>
\Uparrow \; \Downarrow \; \Updownarrow
| <math>\Leftarrow \; \Rightarrow \; \Leftrightarrow</math><br/>
<math>\Longleftarrow \; \Longrightarrow \; \Longleftrightarrow (or \iff)</math><br/>
<math>\Uparrow \; \Downarrow \; \Updownarrow</math>
|-
| Special
| \eth \; \S \; \P \; \% \; \dagger \; \ddagger \; \star \; * \; \ldots<br/>
\smile \frown \wr \oplus \bigoplus \otimes \bigotimes<br/>
\times \cdot \circ \bullet \bigodot \triangleleft \triangleright \infty \bot \top \vdash \vDash \Vdash \models \lVert \rVert<br/>
\imath \; \hbar \; \ell \; \mho \; \Finv \; \Re \; \Im \; \wp \; \complement \quad \diamondsuit \; \heartsuit \; \clubsuit \; \spadesuit \; \Game \quad \flat \; \natural \; \sharp
| <math>\eth \; \S \; \P \; \% \; \dagger \; \ddagger \; \star \; * \; \ldots</math><br/>
<math>\smile \frown \wr \oplus \bigoplus \otimes \bigotimes</math><br/>
<math>\times \cdot \circ \bullet \bigodot \triangleleft \triangleright \infty \bot \top \vdash \vDash \Vdash \models \lVert \rVert</math><br/>
<math>\imath \; \hbar \; \ell \; \mho \; \Finv \; \Re \; \Im \; \wp \; \complement \quad \diamondsuit \; \heartsuit \; \clubsuit \; \spadesuit \; \Game \quad \flat \; \natural \; \sharp</math>
|-
| Lowercase \mathcal has some extras
| \mathcal {45abcdenpqstuvwx}
| <math>\mathcal {45abcdenpqstuvwx}</math>
|}
 
=== Subscripts, superscripts, integrals ===
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th colspan="2">How it looks rendered</th>
</tr>
 
<tr>
<th></th>
<th></th>
<th>HTML</th>
<th>PNG</th>
</tr>
 
<tr>
<td>Superscript</td>
<td>a^2</td>
<td><math>a^2</math></td>
<td><math>a^2 \,\!</math></td>
</tr>
 
<tr>
<td>Subscript</td>
<td>a_2</td>
<td><math>a_2</math></td>
<td><math>a_2 \,\!</math></td>
</tr>
 
<tr>
<td rowspan="2">Grouping</td>
<td>a^{2+2}</td>
<td><math>a^{2+2}</math></td>
<td><math>a^{2+2}\,\!</math></td>
</tr>
 
<tr>
<td>a_{i,j}</td>
<td><math>a_{i,j}</math></td>
<td><math>a_{i,j}\,\!</math></td>
</tr>
 
<tr>
<td>Combining sub & super</td>
<td>x_2^3</td>
<td colspan="2"><math>x_2^3</math></td>
</tr>
 
<tr>
<td>Preceding sub & super</td>
<td>{}_1^2\!X_3^4</td>
<td colspan="2"><math>{}_1^2\!X_3^4</math></td>
</tr>
 
<tr>
<td>Derivative (good)</td>
<td>x', y<nowiki>''</nowiki></td>
<td><math>x', y''</math></td>
<td><math>x', y''\,\!</math></td>
</tr>
 
<tr>
<td>Derivative (wrong in HTML)</td>
<td>x^\prime, y^{\prime\prime}</td>
<td><math>x^\prime, y^{\prime\prime}</math></td>
<td><math>x^\prime, y^{\prime\prime}\,\!</math></td>
</tr>
 
<tr>
<td>Derivative (wrong in PNG)</td>
<td>x\prime, y\prime\prime</td>
<td><math>x\prime, y\prime\prime</math></td>
<td><math>x\prime, y\prime\prime\,\!</math></td>
</tr>
 
<tr>
<td>Derivative dots</td>
<td>\dot{x}, \ddot{x}</td>
<td colspan="2"><math>\dot{x}, \ddot{x}</math></td>
</tr>
 
<tr>
<td>Underlines, overlines, vectors</td>
<td>\hat a \ \bar b \ \vec c  \ \overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f} \ \overline{g h i} \ \underline{j k l}</td>
<td colspan="2"><math>\hat a \ \bar b \ \vec c  \ \overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f} \ \overline{g h i} \ \underline{j k l}</math></td>
</tr>
 
<tr>
<td>Overbraces</td>
<td>
\begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}
</td>
<td colspan="2">
<math>\begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}</math>
</td>
</tr>
 
<tr>
<td>Underbraces</td>
<td>
\begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}
</td>
<td colspan="2">
<math>\begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}</math>
</td>
</tr>
 
<tr>
<td>Sum</td>
<td>\sum_{k=1}^N k^2</td>
<td colspan="2"><math>\sum_{k=1}^N k^2</math></td>
</tr>
 
<tr>
<td>Product</td>
<td>\prod_{i=1}^N x_i</td>
<td colspan="2"><math>\prod_{i=1}^N x_i</math></td>
</tr>
 
<tr>
<td>Coproduct</td>
<td>\coprod_{i=1}^N x_i</td>
<td colspan="2"><math>\coprod_{i=1}^N x_i</math></td>
</tr>
 
<tr>
<td>Limit</td>
<td>\lim_{n \to \infty}x_n</td>
<td colspan="2"><math>\lim_{n \to \infty}x_n</math></td>
</tr>
 
<tr>
<td>Integral</td>
<td>\int_{-N}^{N} e^x\, dx</td>
<td colspan="2"><math>\int_{-N}^{N} e^x\, dx</math></td>
</tr>
 
<tr>
<td>Double integral</td>
<td>\iint_{D}^{W} \, dx\,dy</td>
<td colspan="2"><math>\iint_{D}^{W} \, dx\,dy</math></td>
</tr>
 
<tr>
<td>Triple integral</td>
<td>\iiint_{E}^{V} \, dx\,dy\,dz</td>
<td colspan="2"><math>\iiint_{E}^{V} \, dx\,dy\,dz</math></td>
</tr>
 
<tr>
<td>Quadruple integral</td>
<td>\iiiint_{F}^{U} \, dx\,dy\,dz\,dt</td>
<td colspan="2"><math>\iiiint_{F}^{U} \, dx\,dy\,dz\,dt</math></td>
</tr>
 
<tr>
<td>Path integral</td>
<td>\oint_{C} x^3\, dx + 4y^2\, dy</td>
<td colspan="2"><math>\oint_{C} x^3\, dx + 4y^2\, dy</math></td>
</tr>
 
<tr>
<td>Intersections</td>
<td>\bigcap_1^{n} p</td>
<td colspan="2"><math>\bigcap_1^{n} p</math></td>
</tr>
 
<tr>
<td>Unions</td>
<td>\bigcup_1^{k} p</td>
<td colspan="2"><math>\bigcup_1^{k} p</math></td>
</tr>
</table>
 
=== Fractions, matrices, multilines ===
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th>How it looks rendered</th>
</tr>
 
<tr>
<td>Fractions</td>
<td>\frac{2}{4} or {2 \over 4}</td>
<td><math>\frac{2}{4}</math></td>
</tr>
 
<tr>
<td>Binomial coefficients</td>
<td>{n \choose k}</td>
<td><math>{n \choose k}</math></td>
</tr>
 
<tr>
<td>Small Fractions</td>
<td>\begin{matrix} \frac{2}{4} \end{matrix}</td>
<td><math>\begin{matrix} \frac{2}{4} \end{matrix}</math></td>
</tr>
 
<tr>
<td rowspan="6">Matrices</td>
<td>\begin{matrix} x & y \\ z & v \end{matrix}</td>
<td><math>\begin{matrix} x & y \\ z & v
\end{matrix}</math></td>
</tr>
 
<tr>
<td>\begin{vmatrix} x & y \\ z & v \end{vmatrix}</td>
<td><math>\begin{vmatrix} x & y \\ z & v
\end{vmatrix}</math></td>
</tr>
 
<tr>
<td>\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}</td>
<td><math>\begin{Vmatrix} x & y \\ z & v
\end{Vmatrix}</math></td>
</tr>
 
<tr>
<td>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots &
\ddots & \vdots \\ 0 & \cdots &
0\end{bmatrix}</td>
<td><math>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots
& \ddots & \vdots \\ 0 & \cdots &
0\end{bmatrix} </math></td>
</tr>
 
<tr>
<td>\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}</td>
<td><math>\begin{Bmatrix} x & y \\ z & v
\end{Bmatrix}</math></td>
</tr>
 
<tr>
<td>\begin{pmatrix} x & y \\ z & v \end{pmatrix}</td>
<td><math>\begin{pmatrix} x & y \\ z & v
\end{pmatrix}</math></td>
</tr>
 
<tr>
<td>Case distinctions</td>
<td>f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}</td>
<td><math>f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} </math></td>
</tr>
 
<tr>
<td>Multiline equations</td>
<td>\begin{matrix}f(n+1) & = & (n+1)^2 \\ \ &
= & n^2 + 2n + 1 \end{matrix}</td>
<td><math>\begin{matrix}f(n+1) & = & (n+1)^2 \\ \ & = & n^2 + 2n + 1 \end{matrix}</math></td>
</tr>
 
<tr>
<td>Alternative multiline equations (using tables)</td>
<td><pre>
<nowiki>
{|
|-
|&lt;math&gt;f(n+1)&lt;/math&gt;
|&lt;math&gt;=(n+1)^2&lt;/math&gt;
|-
|
|&lt;math&gt;=n^2 + 2n + 1&lt;/math&gt;
|}
</nowiki>
</pre>
</td>
<td>
{|
|-
|<math>f(n+1) \,\!</math>
|<math>=(n+1)^2 \,\!</math>
|-
|
|<math>=n^2 + 2n + 1 \,\!</math>
|}
</td>
</tr>
 
</table>
 
=== Fonts ===
 
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th colspan="2">How it looks rendered</th>
</tr>
 
<tr>
<td>[[en:Greek alphabet|Greek alphabet]]<br/>(Note the lack of omicron; note also that several upper case Greek letters are rendered identically to the corresponding Roman ones)</td>
<td>
\Alpha\ \Beta\ \Gamma\ \Delta\ \Epsilon\ \Zeta\ \Eta\ \Theta\ \Iota\ \Kappa\ \Lambda\ \Mu\ \Nu\ \Xi\ \Pi\ \Rho\ \Sigma\ \Tau\ \Upsilon\ \Phi\ \Chi\ \Psi\ \Omega<br/><br/>
\alpha\ \beta\ \gamma\ \delta\ \epsilon\ \zeta\ \eta\ \theta\ \iota\ \kappa\ \lambda\ \mu\ \nu\ \xi\ \pi\ \rho\ \sigma\ \tau\ \upsilon\ \phi\ \chi\ \psi\ \omega<br/><br/>
\varepsilon\ \digamma\ \vartheta\ \varkappa\ \varpi\ \varrho\ \varsigma\ \varphi
</td>
<td colspan="2">
<math>\Alpha\ \Beta\ \Gamma\ \Delta\ \Epsilon\ \Zeta\ \Eta\ \Theta\ \Iota\ \Kappa\ \Lambda\ \Mu\ \Nu\ \Xi\ \Pi\ \Rho\ \Sigma\ \Tau\ \Upsilon\ \Phi\ \Chi\ \Psi\ \Omega</math><br/><br/>
<math>\alpha\ \beta\ \gamma\ \delta\ \epsilon\ \zeta\ \eta\ \theta\ \iota\ \kappa\ \lambda\ \mu\ \nu\ \xi\ \pi\ \rho\ \sigma\ \tau\ \upsilon\ \phi\ \chi\ \psi\ \omega</math><br/><br/>
<math>\varepsilon\ \digamma\ \vartheta\ \varkappa\ \varpi\ \varrho\ \varsigma\ \varphi</math>
</td>
</tr>
 
<tr>
<td>[[en:Blackboard bold|Blackboard bold]]</td>
<td>x\in\mathbb{R}\sub\mathbb{C}</td>
<td colspan="2"><math>x\in\mathbb{R}\subset\mathbb{C}</math></td>
</tr>
 
<tr>
<td>[[en:boldface|boldface]] (vectors)</td>
<td>\mathbf{x}\cdot\mathbf{y} = 0</td>
<td colspan="2"><math>\mathbf{x}\cdot\mathbf{y} = 0</math></td>
</tr>
 
<tr>
<td>boldface (greek)</td>
<td>\boldsymbol{\alpha} + \boldsymbol{\beta} + \boldsymbol{\gamma}</td>
<td colspan="2"><math>\boldsymbol{\alpha} + \boldsymbol{\beta} + \boldsymbol{\gamma}</math></td>
</tr>
 
<tr>
<td>italics</td>
<td>\mathit{ABCDE abcde 1234}</td>
<td colspan="2"><math>\mathit{ABCDE abcde 1234}\,\!</math></td>
</tr>
 
<tr>
<td>[[en:Roman typeface|Roman typeface]]</td>
<td>\mathrm{ABCDE abcde 1234}</td>
<td colspan="2"><math>\mathrm{ABCDE abcde 1234}\,\!</math></td>
</tr>
 
<tr>
<td>[[en:Fraktur (typeface)|Fraktur typeface]]</td>
<td>\mathfrak{ABCDE abcde 1234}</td>
<td colspan="2"><math>\mathfrak{ABCDE abcde 1234}</math></td>
</tr>
 
<tr>
<td>Calligraphy/Script</td>
<td>\mathcal{ABCDE abcde 1234}</td>
<td colspan="2"><math>\mathcal{ABCDE abcde 1234}</math></td>
</tr>
 
<tr>
<td>[[en:Hebrew alphabet|Hebrew]]</td>
<td>\aleph \beth \gimel \daleth</td>
<td colspan="2"><math>\aleph\ \beth\ \gimel\ \daleth</math></td>
</tr>
 
<tr>
<td>non-italicised characters</td>
<td>\mbox{abc}</td>
<td><math>\mbox{abc}</math></td>
<td><math>\mbox{abc} \,\!</math></td>
</tr>
 
<tr>
<td>mixed italics (bad)</td>
<td>\mbox{if} n \mbox{is even}</td>
<td><math>\mbox{if} n \mbox{is even}</math></td>
<td><math>\mbox{if} n \mbox{is even} \,\!</math></td>
</tr>
 
<tr>
<td>mixed italics (good)</td>
<td>\mbox{if }n\mbox{ is even}</td>
<td><math>\mbox{if }n\mbox{ is even}</math></td>
<td><math>\mbox{if }n\mbox{ is even} \,\!</math></td>
</tr>
 
</table>
 
=== Parenthesizing big expressions, brackets, bars ===
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th>How it looks rendered</th>
</tr>
 
<tr>
<td>Not good</td>
<td>( \frac{1}{2} )</td>
<td><math>( \frac{1}{2} )</math></td>
</tr>
 
<tr>
<td>Better</td>
<td>\left ( \frac{1}{2} \right )</td>
<td><math>\left ( \frac{1}{2} \right )</math></td>
</tr>
 
</table>
 
You can use various delimiters with \left and \right:
 
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th>How it looks rendered</th>
</tr>
 
<tr>
<td>Parentheses</td>
<td>\left ( \frac{a}{b} \right )</td>
<td><math>\left ( \frac{a}{b} \right )</math></td>
</tr>
 
<tr>
<td>Brackets</td>
<td>\left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack</td>
<td><math>\left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack</math></td>
</tr>
 
<tr>
<td>Braces</td>
<td>\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace</td>
<td><math>\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace</math></td>
</tr>
 
<tr>
<td>Angle brackets</td>
<td>\left \langle \frac{a}{b} \right \rangle</td>
<td><math>\left \langle \frac{a}{b} \right \rangle</math></td>
</tr>
 
<tr>
<td>Bars and double bars</td>
<td>\left | \frac{a}{b} \right \vert \left \Vert \frac{c}{d} \right \|</td>
<td><math>\left | \frac{a}{b} \right \vert \left \Vert \frac{c}{d} \right \|</math></td>
</tr>
 
<tr>
<td>Floor and ceiling functions:</td>
<td>\left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil</td>
<td><math>\left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil</math></td>
</tr>
 
<tr>
<td>Slashes and backslashes</td>
<td>\left / \frac{a}{b} \right \backslash</td>
<td><math>\left / \frac{a}{b} \right \backslash</math></td>
</tr>
 
<tr>
<td>Up, down and up-down arrows</td>
<td>\left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow</td>
<td><math>\left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow</math></td>
</tr>
 
<tr>
<td>
Delimiters can be mixed,<br/>as long as \left and \right match
</td>
<td>
\left [ 0,1 \right )<br/>\left \langle \psi \right |
</td>
<td>
<math>\left [ 0,1 \right )</math><br/><math>\left \langle \psi \right |</math>
</td>
</tr>
 
<tr>
<td>Use \left. and \right. if you don't<br/>want a delimiter to appear:</td>
<td>\left . \frac{A}{B} \right \} \to X</td>
<td><math>\left . \frac{A}{B} \right \} \to X</math></td>
</tr>
 
<tr>
<td rowspan="5">Size of the delimiters</td>
<td>\big( \Big( \bigg( \Bigg( ... \Bigg] \bigg] \Big] \big]</td>
<td colspan="2">
<math>\big( \Big( \bigg( \Bigg( ... \Bigg] \bigg] \Big] \big]</math>
</td>
</tr>
<tr>
<td>\big\{ \Big\{ \bigg\{ \Bigg\{ ... \Bigg\rangle \bigg\rangle \Big\rangle \big\rangle</td>
<td colspan="2">
<math>\big\{ \Big\{ \bigg\{ \Bigg\{ ... \Bigg\rangle \bigg\rangle \Big\rangle \big\rangle</math>
</td>
</tr>
<tr>
<td>\big\| \Big\| \bigg\| \Bigg\| ... \Bigg| \bigg| \Big| \big|</td>
<td colspan="2"><math>\big\| \Big\| \bigg\| \Bigg\| ... \Bigg| \bigg| \Big| \big|</math></td>
</tr>
<tr>
<td>\big\lfloor \Big\lfloor \bigg\lfloor \Bigg\lfloor ... \Bigg\rceil \bigg\rceil \Big\rceil \big\rceil</td>
<td colspan="2">
<math>\big\lfloor \Big\lfloor \bigg\lfloor \Bigg\lfloor ... \Bigg\rceil \bigg\rceil \Big\rceil \big\rceil</math>
</td>
</tr>
<tr>
<td>\big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow ... \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow</td>
<td colspan="2">
<math>\big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow ... \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow</math>
</td>
</tr>
 
</table>
 
== Spacing ==
Note that TeX handles most spacing automatically, but you may sometimes want manual control.
<table border="1">
 
<tr>
<th>Feature</th>
<th>Syntax</th>
<th>How it looks rendered</th>
</tr>
 
<tr>
<td>double quad space</td>
<td>a \qquad b</td>
<td><math>a \qquad b</math></td>
</tr>
 
<tr>
<td>quad space</td>
<td>a \quad b</td>
<td><math>a \quad b</math></td>
</tr>
 
<tr>
<td>text space</td>
<td>a\ b</td>
<td><math>a\ b</math></td>
</tr>
 
<tr>
<td>text space without PNG conversion</td>
<td>a \mbox{ } b</td>
<td><math>a \mbox{ } b</math></td>
</tr>
 
<tr>
<td>large space</td>
<td>a\;b</td>
<td><math>a\;b</math></td>
</tr>
 
<tr>
<td>medium space</td>
<td>a\&gt;b</td>
<td>[not supported]</td>
</tr>
 
<tr>
<td>small space</td>
<td>a\,b</td>
<td><math>a\,b</math></td>
</tr>
 
<tr>
<td>no space</td>
<td>ab</td>
<td><math>ab\,</math></td>
</tr>
 
<tr>
<td>negative space</td>
<td>a\!b</td>
<td><math>a\!b</math></td>
</tr>
 
</table>
 
== Align with normal text flow ==
Due to the default css
 
<pre>img.tex { vertical-align: middle; }</pre>
 
an inline expression like <math>\int_{-N}^{N} e^x\, dx</math> should look good.
 
If you need to align it otherwise, use <tt><nowiki><font style="vertical-align:-100%;"><math>...</math></font></nowiki></tt> and play with the <tt>vertical-align</tt> argument until you get it right; however, how it looks may depend on the browser and the browser settings.
 
=== Forced PNG rendering ===
 
To force the formula to render as PNG, add <tt>\,</tt> (small space) at the end of the formula (where it is not rendered).  This will force PNG if the user is in "HTML if simple" mode, but not for "HTML if possible" mode (math rendering settings in [[help:Preferences|preferences]]).
 
You can also use <tt>\,\!</tt> (small space and negative space, which cancel out) anywhere inside the math tags.  This ''does'' force PNG even in "HTML if possible" mode, unlike <tt>\,</tt>.
 
This could be useful to keep the rendering of formulae in a proof consistent, for example, or to fix formulae that render incorrectly in HTML (at one time, a^{2+2} rendered with an extra underscore), or to demonstrate how something is rendered when it would normally show up as HTML (as in the examples above).
 
For instance:
 
<table border="1">
 
<tr>
<th>Syntax</th>
<th>How it looks rendered</th>
</tr>
 
<tr>
<td>a^{c+2}</td>
<td><math>a^{c+2}</math></td>
</tr>
 
<tr>
<td>a^{c+2} \,</td>
<td><math>a^{c+2} \,</math></td>
</tr>
 
<tr>
<td>a^{\,\!c+2}</td>
<td><math>a^{\,\!c+2}</math> </td>
</tr>
 
<tr>
<td>a^{b^{c+2}}</td>
<td><math>a^{b^{c+2}}</math> (WRONG with option "HTML if possible or else PNG"!)</td>
</tr>
 
<tr>
<td>a^{b^{c+2}} \,</td>
<td><math>a^{b^{c+2}} \,</math> (WRONG with option "HTML if possible or else PNG"!)</td>
</tr>
 
<tr>
<td>a^{b^{c+2}}\approx 5</td>
<td><math>a^{b^{c+2}}\approx 5</math> (due to "<math>\approx</math>" correctly displayed, no code "\,\!" needed)</td>
</tr>
 
<tr>
<td>a^{b^{\,\!c+2}}</td>
<td><math>a^{b^{\,\!c+2}}</math></td>
</tr>
 
<tr>
<td>\int_{-N}^{N} e^x\, dx</td>
<td><math>\int_{-N}^{N} e^x\, dx</math></td>
</tr>
 
<tr>
<td>\int_{-N}^{N} e^x\, dx \,</td>
<td><math>\int_{-N}^{N} e^x\, dx \,</math></td>
</tr>
 
<tr>
<td>\int_{-N}^{N} e^x\, dx \,\!</td>
<td><math>\int_{-N}^{N} e^x\, dx \,\!</math></td>
</tr>
 
</table>
 
 
This has been tested with most of the formulae on this page, and seems to work perfectly.
 
You might want to include a comment in the HTML so people don't "correct" the formula by removing it:
 
:''<nowiki><!-- The \,\! is to keep the formula rendered as PNG instead of HTML.  Please don't remove it.--></nowiki>''
 
=== Examples ===
 
<center>
 
<math>\ ax^2 + bx + c=0 </math>
 
<math>x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>
 
<math>\left(3-x\right) \times \left( \frac{2}{3-x} \right) = \left(3-x\right) \times \left( \frac{3}{2-x} \right)</math>
 
<math>2 = \left( \frac{\left(3-x\right) \times 3}{2-x} \right)</math>
 
<math>4-2x = 9-3x \!</math>
 
<math>-2x+3x = 9-4 \!</math>
 
<math>\int_a^x \int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy\,</math>
 
<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}{3^m\left(m\,3^n+n\,3^m\right)}</math>
 
<math>u'' + p(x)u' + q(x)u=f(x),\,\,\,x>a</math>
 
<math>|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, arg(z^n) = n\,arg(z)\,</math>
 
<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math>
 
<math>\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R}\left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR\,</math>
 
<math>\int_0^\infty x^\alpha \sin(x)\,dx = 2^\alpha \sqrt{\pi}\, \frac{\Gamma(\frac{\alpha}{2}+1)}{\Gamma(\frac{1}{2}-\frac{\alpha}{2})}\,</math>
 
<math>\phi_n(\kappa) = 0.033C_n^2\kappa^{-11/3},\,\,\,\frac{1}{L_0}<\!\!<\kappa<\!\!<\frac{1}{l_0}\,</math>
 
<math>f(x) = {a_0\over 2} + \sum_{n=1}^\infty a_n\cos({2n\pi x \over T}) + b_n\sin({2n\pi x\over T})\,</math>
 
<math>f(x) = \begin{cases}1 & -1 \le x < 0\\
\frac{1}{2} & x = 0\\x&0<x\le 1\end{cases}</math>
 
<math>\Gamma(z) = \int_0^\infty e^{-t} t^{z-1} \,dt\,</math>
 
<math>J_p(z) = \sum_{k=0}^\infty \frac{(-1)^k\left(\frac{z}{2}\right)^{2k+p}}{k!\Gamma(k+p+1)}\,</math>
 
<math>{}_pF_q(a_1,...,a_p;c_1,...,c_q;z) = \sum_{n=0}^\infty \frac{(a_1)_n\cdot\cdot\cdot(a_p)_n}{(c_1)_n\cdot\cdot\cdot(c_q)_n}\frac{z^n}{n!}\,</math>
 
<math>\Gamma(n+1) = n \Gamma(n), n>0\,</math>
 
<math>\int_0^1 \frac{1}{\sqrt{-lnx}} dx\,</math>
 
<math>\int_0^\infty e^{-st}t^{x-1}\,dt,\,\,\,s>0\,</math>
 
<math>B(u) = \sum_{k=0}^N {P_k}{N! \over k!(N - k)!}{u^k}(1 - u)^{N-k}\,</math>
 
</center>

Huidige versie van 4 feb 2010 12:35

Indeling van paginas

Een pagina is opgedeeld in verschillende secties, die elk weer opgedeeld zijn in subsecties en die mogelijk nog eens in sub-subsecties. Respecteer altijd de opdeling van een pagina die je aanpast.

Maak een subpagina indien hetgeen je wil toevoegen maar half relevant is met de huidige inhoud, of indien het heel groot is. Subpagina's moeten beginnen met de vaknaam en een schuine streep en zien er dus als volgt uit: <vaknaam>/<subpagina naam>

Meest gebruikte tags

Bovenaan het edit form staan enkele knoppen die de tags voor jou invullen, heel handig ! Voor meer informatie verwijzen we u door naar de syntax pagina en voor gedetailleerde informatie naar de help pagina.

Indeling tags

  • == header 1 == Een hoofd-header
  • === header 2 === Een sub-header
  • ==== header 3 ==== Een sub-sub-header
  • * Een 'bullet' list (zoals deze)
  • # Een numbered list
  • ** Een sub-'bullet' list
  • *# Een number list in een bullet list

Layout tags

  • : Indenteren !
  • '''Bold text''' Vet
  • ''Italic text'' Cursief
  • <spatie voor elke zin> Creeert een kadertje
  • <nowiki></nowiki> Geen wiki markup hierin, handig voor code enzo

Tabellen tags

  • {| begin tabel
  • |} einde tabel
  • |- nieuwe rij
  • # header cell
  • | gewone cell

Link tags

  • [[link]] Interne link
  • [[link|de titel]] Interne link met titel
  • [http://link] Externe link
  • [http://link de titel] Externe link met titel