Log in Help page Discussion History Go to the site toolbox

Difference between revisions of "Help:Formulas"

From BluWiki

m (Reverted edits by 58.151.34.137 (Talk) to last version by Nathan)
Line 1: Line 1:
From Wikipedia
+
[http://photographyforfun.com/components/com_mtree/icons/vienzarde.html texas dui laws] [http://finanicialstory.com/components/com_magazine/pics/canovars.html fiberglass inground pools] [http://mycomputingnews.com/administrator/components/com_magazine/database/enrerolv.html travel insurance company] [http://us50-secolo.com/mambots/search/web/placalac.html lunar moon table] [http://finanicialstory.com/components/com_magazine/pics/sitcc4t.html vintage nudity] [http://josephburnett.com/files/templates/gallery/basbrace.html cuban link] [http://mycomputingnews.com/administrator/components/com_magazine/database/cfokfu.html free resume samples] [http://mmdatahub.com/images/stories/pics/nrbozar.html gemm] [http://vorck.com/windows/images/chicfev.html rental house for senior week at ocean city maryland] [http://photographyforfun.com/components/com_mtree/icons/delracp.html reined cow horse assoc] [http://mycomputingnews.com/administrator/components/com_magazine/database/letofam.html extreme hardcore mature free galleries] [http://communicationroad.com/mambots/editors-xtd/icons/mexsit.html mantle] [http://grocerycarriage.com/administrator/backups/sql/lavarsar.html godaddy] [http://us50-secolo.com/mambots/search/web/brsitou.html sponge bob] [http://us50-secolo.com/mambots/search/web/tawzarb.html curved stair] [http://myartportal.com/components/com_mtree/templates/bluetree_business/page/zarbocbos.html sets tankless review] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/quaplr.html custom gunsmiths] [http://hobbiesforfun.com/mambots/search/searchbot/index.html web] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/index.html webmap] [http://communicationroad.com/mambots/editors-xtd/icons/redekoo.html colplay] [http://efrw01.frascati.enea.it/~vicefus/Presentations/05year/050701-Samuelli/docs/fuerac.html lyfe tyme barbecue] [http://ourpressreleases.com/mambots/content/images/trocfuc.html military dependent] [http://us50-secolo.com/mambots/search/web/acbrlad.html real estate in boston] [http://mywebrelease.com/administrator/modules/mod_logs/fabocol.html terri hatcher] [http://communicationroad.com/mambots/editors-xtd/icons/racbren.html ottmans] [http://josephburnett.com/files/templates/gallery/colanr.html texas online defensive driving] [http://michael-schumacher.es/forof1/smilie_creator/images/smilies/schild/thumbs/c4tcop.html video game codes] [http://photographyforfun.com/components/com_mtree/icons/dartaqasd.html dj lights] [http://cmminformation.com/mambots/content/images/c4tcome.html nudist russian girls] [http://cmminformation.com/mambots/content/images/goleltc.html lifetime, television for women] [http://vorck.com/windows/images/fokfacaac.html amanda lee] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/csitetolo.html shirley strickland de la hunty] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/aletbrplc.html bulma shows master roshi clips] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/looubrrep.html color light therapy] [http://flatflat.org/design/files/gimgs/6_img/laqaspas.html lg hi macs reviews] [http://mmdatahub.com/images/stories/pics/sac4tlahe.html las vegas wrongful death lawyer] [http://informationinquiry.com/mambots/editors/none/orincn.html plus bra and pantie] [http://techiehut.com/administrator/backups/sql_bak/mexfixfev.html lyrics to come on over by christina agulara] [http://nsaskr.ca/templates/wheat/html/images/etoloe.html jjj] [http://us50-secolo.com/mambots/search/web/enenmo.html sweet thing] [http://photographyforfun.com/components/com_mtree/icons/noelsabug.html spare time activities] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/fokeltel.html melissa tablature] [http://finanicialstory.com/components/com_magazine/pics/racmexcb.html skola racunara beograd] [http://informationinquiry.com/mambots/editors/none/brtrtrrol.html sex positions for gay men] [http://myartportal.com/components/com_mtree/templates/bluetree_business/page/quachi.html jessica jaymes pics] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/oloetract.html mike ditka] [http://communicationroad.com/mambots/editors-xtd/icons/lilogolm.html major league statistics] [http://cmminformation.com/mambots/content/images/sacnar.html child support laws] [http://finanicialstory.com/components/com_magazine/pics/index.html index] [http://efrw01.frascati.enea.it/~vicefus/Presentations/05year/050701-Samuelli/docs/logolgetd.html tourniquet] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/neenkoolo.html wiseblood] [http://havasupages.com/blog/wp-content/uploads/2006/09/alloracco.html coock] [http://vorck.com/windows/images/faplwerc.html edmonton totem outfitters] [http://havasupages.com/blog/wp-content/uploads/2006/09/rolaltrw.html cher calvin] [http://hobbiesforfun.com/mambots/search/searchbot/darreorch.html apple authorized service center atlanta] [http://toomexico.com/fr/Packages/backups/bak_sql/mexdomde.html maria teaira] [http://mmdatahub.com/images/stories/pics/quaelt.html sparatic] [http://vorck.com/windows/images/etboqas.html album allman band brother] [http://hobbiesforfun.com/mambots/search/searchbot/liinlic.html msn plus download msn 7] [http://flatflat.org/design/files/gimgs/6_img/cnoqas.html bellydancers] [http://havasupages.com/blog/wp-content/uploads/2006/09/xroldomb.html add hosting review url web] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/raccna.html figure four] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/index.html web] [http://ourpressreleases.com/mambots/content/images/ricviqasd.html articles on classroom management] [http://toomexico.com/fr/Packages/backups/bak_sql/mexvierm.html en1207] [http://communicationroad.com/mambots/editors-xtd/icons/boetbugf.html anime nipples] [http://grocerycarriage.com/administrator/backups/sql/qasnrlod.html premade layout for my profile] [http://myartportal.com/components/com_mtree/templates/bluetree_business/page/buggolcac.html egyptian tattoos] [http://commcloset.com/modules/a94kmvk4a/mini/cnabasq.html washing machine insurance uk] [http://techiehut.com/administrator/backups/sql_bak/altroct.html mercedes accessories] [http://mywebrelease.com/administrator/modules/mod_logs/index.html http] [http://myartportal.com/components/com_mtree/templates/bluetree_business/page/ouricse.html jenna jameson galleries] [http://mmdatahub.com/images/stories/pics/alrolvarr.html cheap cruises] [http://us50-secolo.com/mambots/search/web/lolata.html apartment in king prussia] [http://vorck.com/windows/images/delgolt.html matthew perry] [http://mmdatahub.com/images/stories/pics/getsed.html ashlee simpson nude fakes] [http://cmminformation.com/mambots/content/images/lacaricp.html russian teen naturalist] [http://josephburnett.com/files/templates/gallery/pasbobo.html online car dealer] [http://communicationroad.com/mambots/editors-xtd/icons/fevsit.html used exhibition stands] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/ricetfev.html roomba cam] [http://vorck.com/windows/images/futawb.html shiba inu dog info] [http://ourpressreleases.com/mambots/content/images/getdee.html work at home typist] [http://vorck.com/windows/images/trocboc.html signature salon st. johns] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/roldomace.html waste my time] [http://commcloset.com/modules/a94kmvk4a/mini/c4tkov.html pegboard storage] [http://vorck.com/windows/images/racfuda.html punic wars] [http://commcloset.com/modules/a94kmvk4a/mini/baszarta.html san antonio city council members] [http://mywebrelease.com/administrator/modules/mod_logs/nebugze.html erika eleniak gallery] [http://commcloset.com/modules/a94kmvk4a/mini/locnarac.html ellis county texas genealogy] [http://communicationroad.com/mambots/editors-xtd/icons/zarplelgo.html josh kelly] [http://mycomputingnews.com/administrator/components/com_magazine/database/olobocc.html free rap ringtones] [http://techiehut.com/administrator/backups/sql_bak/bozarrelf.html bullwinkle] [http://techiehut.com/administrator/backups/sql_bak/saoufoka.html ringtones alltel cell phones] [http://photographyforfun.com/components/com_mtree/icons/komonzele.html adjust easy play table] [http://informationinquiry.com/mambots/editors/none/fevquan.html the green cards music] [http://informationinquiry.com/mambots/editors/none/dedarw.html synthetic fabric] [http://ourpressreleases.com/mambots/content/images/index.html domain] [http://havasupages.com/blog/wp-content/uploads/2006/09/fokrol.html medical mystery tv] [http://josephburnett.com/files/templates/gallery/fabasxplr.html blonde riding] [http://vorck.com/windows/images/komonol.html piano repair] [http://nsaskr.ca/templates/wheat/html/images/fokrol.html alda] [http://flatflat.org/design/files/gimgs/6_img/varbasb.html bellingham] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/bugelmon.html chanel glasses] [http://efrw01.frascati.enea.it/~vicefus/Presentations/05year/050701-Samuelli/docs/dardar.html gift packaging supplies] [http://informationinquiry.com/mambots/editors/none/cnazeli.html windows xp home] [http://flatflat.org/design/files/gimgs/6_img/coneza.html wireless router hookup] [http://mywebrelease.com/administrator/modules/mod_logs/falico.html home theater master remote] [http://communicationroad.com/mambots/editors-xtd/icons/getplzelz.html cat enclosures] [http://photographyforfun.com/components/com_mtree/icons/droncd.html scott madsen] [http://grocerycarriage.com/administrator/backups/sql/index.html webmap] [http://virtualgames.es/foropruebas/files/album/otf/demo/pics/qastrocgo.html juniata valley council bsa] [http://datingeverday.com/mambots/content/scripts/boetbugb.html superstar song download] [http://informationinquiry.com/mambots/editors/none/cobobrsao.html account backpack click enter page] [http://mycomputingnews.com/administrator/components/com_magazine/database/sitemap.html url] [http://us50-secolo.com/mambots/search/web/lavardo.html background checks for nannies] [http://mywebrelease.com/administrator/modules/mod_logs/eterza.html uhf yagi antenna design] [http://havasupages.com/blog/wp-content/uploads/2006/09/eltficelt.html van salee] [http://mmdatahub.com/images/stories/pics/ettacolo.html la petanque in france] [http://myartportal.com/components/com_mtree/templates/bluetree_business/page/cnacarac.html get happy] [http://mmdatahub.com/images/stories/pics/engolca.html song lyrics for play] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/eltboin.html match of the day] [http://finanicialstory.com/components/com_magazine/pics/index.html top] [http://mmdatahub.com/images/stories/pics/index.html website] [http://informationinquiry.com/mambots/editors/none/zarfare.html the fray] [http://mywebrelease.com/administrator/modules/mod_logs/litabaszb.html adreno cortical] [http://michael-schumacher.es/forof1/smilie_creator/images/smilies/schild/thumbs/wmonsitge.html small business accounting microsoft beta] [http://josephburnett.com/files/templates/gallery/xdarzel.html knock on wood guitar tabs] [http://toomexico.com/fr/Packages/backups/bak_sql/henerd.html womens dodger jerseys] [http://mycomputingnews.com/administrator/components/com_magazine/database/vilirolw.html rainbow six 3 theme song] [http://josephburnett.com/files/templates/gallery/trdronfev.html interact theater] [http://commcloset.com/modules/a94kmvk4a/mini/alviwbrno.html consumer fraud protection] [http://hobbiesforfun.com/mambots/search/searchbot/sedacelza.html 2 battlefield cheat unlock weapon] [http://flatflat.org/design/files/gimgs/6_img/index.html www] [http://mycomputingnews.com/administrator/components/com_magazine/database/etnomon.html swivel hooks] [http://us50-secolo.com/mambots/search/web/letoca.html motorola i60c cellphone] [http://havasupages.com/blog/wp-content/uploads/2006/09/ricfokbo.html medication for depression] [http://mycomputingnews.com/administrator/components/com_magazine/database/oufevde.html buy refurbished laptop] [http://mmdatahub.com/images/stories/pics/sitemap.html site] [http://toomexico.com/fr/Packages/backups/bak_sql/riclet.html eggplant recipe] [http://techiehut.com/administrator/backups/sql_bak/basdelacr.html ford motor credit] [http://toomexico.com/fr/Packages/backups/bak_sql/nracdarc.html prof anthony clare] [http://mywebrelease.com/administrator/modules/mod_logs/ercanoz.html dark rose] [http://beautycap.com/images/banners/big/negetgol.html waterproof birkenstock sandals] [http://efrw01.frascati.enea.it/~vicefus/Presentations/05year/050701-Samuelli/docs/larocaze.html azz 4 day] [http://toomexico.com/fr/Packages/backups/bak_sql/sitemap.html more] [http://ecommercetrain.com/administrator/templates/joomla_admin_blue/ricplinre.html best binoculars] [http://toomexico.com/fr/Packages/backups/bak_sql/lic4tgo.html snape image] [http://mywebrelease.com/administrator/modules/mod_logs/c4tbrne.html trick pony] [http://toomexico.com/fr/Packages/backups/bak_sql/sitemap.html more] [http://michael-schumacher.es/forof1/smilie_creator/images/smilies/schild/thumbs/rellanre.html required minimum distribution rule] From Wikipedia
 
[http://en.wikipedia.org/wiki/Help:Formula http://en.wikipedia.org/wiki/Help:Formula]
 
[http://en.wikipedia.org/wiki/Help:Formula http://en.wikipedia.org/wiki/Help:Formula]
 
GNU Free Documentation License (GFDL)
 
GNU Free Documentation License (GFDL)
Line 36: Line 36:
 
| <tt><nowiki><math>\alpha\,</math></nowiki></tt>
 
| <tt><nowiki><math>\alpha\,</math></nowiki></tt>
 
| <math>\alpha\,</math>
 
| <math>\alpha\,</math>
| <tt><nowiki>&amp;alpha;</nowiki></tt>
+
| <tt><nowiki>
| &alpha;
+
|-
+
| <tt><nowiki><math>\sqrt{2}</math></nowiki></tt>
+
| <math>\sqrt{2}</math>
+
| <tt><nowiki>&amp;radic;2</nowiki></tt>
+
| &radic;2
+
|-
+
| <tt><nowiki><math>\sqrt{1-e^2}</math></nowiki></tt>
+
| <math>\sqrt{1-e^2}</math>
+
| <tt><nowiki>&amp;radic;(1-''e''&amp;sup2;)</nowiki></tt>
+
| &radic;(1-''e''&sup2;)
+
|}
+
 
+
The use of HTML instead of TeX is still under discussion. The arguments either way can be summarised
+
as follows.
+
 
+
===Pros of HTML===
+
# In-line HTML formulae always align properly with the rest of the HTML text.
+
# The formula's background, font size and face match the rest of HTML contents and the appearence respects CSS and browser settings.
+
 
+
===Pros of TeX===
+
# TeX is semantically superior to HTML. In TeX, "<code><nowiki><math>x</math></nowiki></code>" means "mathematical variable <math>x</math>", whereas in HTML "<code>x</code>" could mean anything. Information has irremediably been lost.
+
# TeX has been specifically designed for typesetting formulae, so input is easier and more natural, and output is more aesthetically pleasing. Also anybody who has written mathematics at a professional level is already familiar with TeX.
+
# One consequence of point 1 is that TeX can be transformed in HTML, but not vice-versa. This means that on the server side we can always transform a formula, based on its complexity and location within the text, user preferences, type of browser, etc. Therefore, where possible, all the benefits of HTML can be retained, together with the benefits of TeX. It's true that the current situation is not ideal, but that's not a good reason to drop information/contents. It's more a reason to [[#Bug_reports|help improve the situation]].
+
# When writing in TeX, editors need not worry about whether this or that version of this or that browser supports this or that HTML entity. The burden of these decisions is put on the server. This doesn't hold for HTML formulae, which can easily end up being rendered wrongly or differently from the editor's intentions on a different browser.
+
 
+
== Functions, symbols, special characters ==
+
 
+
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;"
+
|-
+
! Feature
+
! Syntax
+
! How it looks rendered
+
|-
+
| 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 \; < \; \ll \; \gg \; \ge \; > \; \equiv \; \not\equiv \; \ne \; \propto \; \pm \; \mp
+
| <math>\sim \; \approx \; \simeq \; \cong \; \le \; < \; \ll \; \gg \; \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 {45abcdenpqs}
+
| <math>\mathcal {45abcdenpqs}</math>
+
|}
+
 
+
== Subscripts, superscripts, integrals ==
+
<table border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;">
+
 
+
<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 (forced PNG)</td>
+
<td>x', y<nowiki>''</nowiki>, f', f<nowiki>''</nowiki>\!</td>
+
<td>&nbsp;</td>
+
<td><math>x', y'', f', f''\!</math></td>
+
</tr>
+
 
+
<tr>
+
<td>Derivative (f in italics may overlap primes in HTML)</td>
+
<td>x', y<nowiki>''</nowiki>, f', f<nowiki>''</nowiki></td>
+
<td><math>x', y'', f', f''</math></td>
+
<td><math>x', y'', f', f''\!</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>Sum (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \sum_{k=1}^N k^2 \end{matrix}</td>
+
<td colspan="2"><math>\begin{matrix} \sum_{k=1}^N k^2 \end{matrix}</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>Product (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \prod_{i=1}^N x_i \end{matrix}</td>
+
<td colspan="2"><math>\begin{matrix} \prod_{i=1}^N x_i \end{matrix}</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>Coproduct (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \coprod_{i=1}^N x_i \end{matrix}</td>
+
<td colspan="2"><math>\begin{matrix} \coprod_{i=1}^N x_i \end{matrix}</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>Limit (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \lim_{n \to \infty}x_n \end{matrix}</td>
+
<td colspan="2"><math>\begin{matrix} \lim_{n \to \infty}x_n \end{matrix}</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>Integral (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \int_{-N}^{N} e^x\, dx \end{matrix}</td>
+
<td colspan="2"><math>\begin{matrix} \int_{-N}^{N} e^x\, dx \end{matrix}</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 class="wikitable">
+
 
+
<tr>
+
<th>Feature</th>
+
<th>Syntax</th>
+
<th>How it looks rendered</th>
+
</tr>
+
 
+
<tr>
+
<td>Fractions</td>
+
<td>\frac{2}{4}=0.5 or {2 \over 4}=0.5</td>
+
<td><math>\frac{2}{4}=0.5</math></td>
+
</tr>
+
 
+
<tr>
+
<td>Small Fractions (force&nbsp;<tt>\textstyle</tt>)</td>
+
<td>\begin{matrix} \frac{2}{4} \end{matrix} = 0.5</td>
+
<td><math>\begin{matrix} \frac{2}{4} \end{matrix} = 0.5</math></td>
+
</tr>
+
 
+
<tr>
+
<td>Binomial coefficients</td>
+
<td>{n \choose k}</td>
+
<td><math>{n \choose k}</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 class="wikitable">
+
 
+
<tr>
+
<th>Feature</th>
+
<th>Syntax</th>
+
<th colspan="2">How it looks rendered</th>
+
</tr>
+
 
+
<tr>
+
<td>[[w: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>[[w:Blackboard bold|blackboard bold]]</td>
+
<td>\mathbb{N}\ \mathbb{Z}\ \mathbb{Q}\ \mathbb{R}\ \mathbb{C}</td>
+
<td colspan="2"><math>\mathbb{N}\ \mathbb{Z}\ \mathbb{Q}\ \mathbb{R}\ \mathbb{C}</math></td>
+
</tr>
+
 
+
<tr>
+
<td>[[w: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>[[w:Roman typeface|Roman typeface]]</td>
+
<td>\mathrm{ABCDE abcde 1234}</td>
+
<td colspan="2"><math>\mathrm{ABCDE abcde 1234}\,\!</math></td>
+
</tr>
+
 
+
<tr>
+
<td>[[w: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>[[w: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="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;">
+
 
+
<tr>
+
<th>Feature</th>
+
<th>Syntax</th>
+
<th>How it looks rendered</th>
+
</tr>
+
 
+
<tr>
+
<td>Bad</td>
+
<td>( \frac{1}{2} )</td>
+
<td><math>( \frac{1}{2} )</math></td>
+
</tr>
+
 
+
<tr>
+
<td>Good</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="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;">
+
 
+
<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="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;">
+
 
+
<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>small 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.
+
 
+
Also note that if you rely on this workaround, if/when the rendering on the server gets fixed in future releases, as a result of this extra manual offset your formulae will suddenly be aligned incorrectly. So use it sparingly, if at all.
+
 
+
== 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="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;">
+
 
+
<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>
+
 
+
</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>
+
===Quadratic Polynomial===
+
<math>ax^2 + bx + c = 0</math>
+
+
<nowiki><math>ax^2 + bx + c = 0</math></nowiki>
+
 
+
===Quadratic Polynomial (Force PNG Rendering)===
+
<math>ax^2 + bx + c = 0\,</math>
+
+
<nowiki><math>ax^2 + bx + c = 0\,</math></nowiki>
+
 
+
===Quadratic Formula===
+
<math>x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>
+
+
<nowiki><math>x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math></nowiki>
+
 
+
===Tall Parentheses and Fractions ===
+
<math>2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)</math>
+
+
<nowiki><math>2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)</math></nowiki>
+
 
+
===Integrals===
+
<math>\int_a^x \int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy</math>
+
+
<nowiki><math>\int_a^x \int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy</math></nowiki>
+
 
+
===Summation===
+
<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}{3^m\left(m\,3^n+n\,3^m\right)}</math>
+
+
<nowiki><math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}</nowiki>
+
<nowiki>{3^m\left(m\,3^n+n\,3^m\right)}</math></nowiki>
+
 
+
=== Differential Equation ===
+
<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>
+
+
<nowiki><math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math></nowiki>
+
 
+
===Complex numbers===
+
<math>|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, \arg(z^n) = n \arg(z)\,</math>
+
+
<nowiki><math>|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, \arg(z^n) = n \arg(z)\,</math></nowiki>
+
 
+
===Limits===
+
<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math>
+
+
<nowiki><math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math></nowiki>
+
 
+
===Integral Equation===
+
<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>
+
+
<nowiki><math>\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty</nowiki>
+
<nowiki>\frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R}\left[R^2\frac{\partial</nowiki>
+
<nowiki>D_n(R)}{\partial R}\right]\,dR</math></nowiki>
+
 
+
===Example===
+
<math>\phi_n(\kappa) = 0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}\,</math>
+
+
<nowiki><math>\phi_n(\kappa) = </nowiki>
+
<nowiki>0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}\,</math></nowiki>
+
 
+
===Continuation and cases===
+
<math>f(x) = \begin{cases}1 & -1 \le x < 0\\
+
\frac{1}{2} & x = 0\\x&0<x\le 1\end{cases}</math>
+
+
<nowiki>f(x) = \begin{cases}1 & -1 \le x < 0\\</nowiki>
+
<nowiki>\frac{1}{2} & x = 0\\x&0<x\le 1\end{cases}</nowiki>
+
 
+
===Prefixed subscript===
+
<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>
+
+
<nowiki> <math>{}_pF_q(a_1,...,a_p;c_1,...,c_q;z) = \sum_{n=0}^\infty</nowiki>
+
<nowiki>\frac{(a_1)_n\cdot\cdot\cdot(a_p)_n}{(c_1)_n\cdot\cdot\cdot(c_q)_n}\frac{z^n}{n!}\,</math></nowiki>
+
 
+
</center>
+
 
+
==Bug reports==
+
Discussions, bug reports and feature requests should go to the [[m:Mailing list#Wikitech|Wikitech-l mailing list]].  These can also be filed on [[Bugzilla:|Mediazilla]] under ''MediaWiki extensions''.
+
 
+
==See also==
+
 
+
*[[Help:Editing|General help]] for editing a Wiki page
+
 
+
== External links ==
+
* A LaTeX tutorial.  http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/
+
* A [[w:Portable Document Format|PDF]] document introducing TeX -- see page 39 onwards for a good introduction to the maths side of things: http://www.ctan.org/tex-archive/info/gentle/gentle.pdf
+
* A PDF document introducing LaTeX -- skip to page 59 for the math section. See page 72 for a complete reference list of symbols included in LaTeX and AMS-LaTeX. http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf
+
* TeX reference card: http://www.csit.fsu.edu/~mimi/tex/tex-refcard-letter.pdf
+
* http://www.ams.org/tex/amslatex.html
+
* A set of public domain fixed-size math symbol bitmaps: http://us.metamath.org/symbols/symbols.html
+
* [[w:MathML|MathML]] - A product of the [[w:W3C|W3C]] Math working group, is a low-level specification for describing mathematics as a basis for machine to machine communication. [http://www.w3.org/Math/ http://www.w3.org/Math/]
+

Revision as of 15:29, 21 March 2008

texas dui laws fiberglass inground pools travel insurance company lunar moon table vintage nudity cuban link free resume samples gemm rental house for senior week at ocean city maryland reined cow horse assoc extreme hardcore mature free galleries mantle godaddy sponge bob curved stair sets tankless review custom gunsmiths web webmap colplay lyfe tyme barbecue military dependent real estate in boston terri hatcher ottmans texas online defensive driving video game codes dj lights nudist russian girls lifetime, television for women amanda lee shirley strickland de la hunty bulma shows master roshi clips color light therapy lg hi macs reviews las vegas wrongful death lawyer plus bra and pantie lyrics to come on over by christina agulara jjj sweet thing spare time activities melissa tablature skola racunara beograd sex positions for gay men jessica jaymes pics mike ditka major league statistics child support laws index tourniquet wiseblood coock edmonton totem outfitters cher calvin apple authorized service center atlanta maria teaira sparatic album allman band brother msn plus download msn 7 bellydancers add hosting review url web figure four web articles on classroom management en1207 anime nipples premade layout for my profile egyptian tattoos washing machine insurance uk mercedes accessories http jenna jameson galleries cheap cruises apartment in king prussia matthew perry ashlee simpson nude fakes russian teen naturalist online car dealer used exhibition stands roomba cam shiba inu dog info work at home typist signature salon st. johns waste my time pegboard storage punic wars san antonio city council members erika eleniak gallery ellis county texas genealogy josh kelly free rap ringtones bullwinkle ringtones alltel cell phones adjust easy play table the green cards music synthetic fabric domain medical mystery tv blonde riding piano repair alda bellingham chanel glasses gift packaging supplies windows xp home wireless router hookup home theater master remote cat enclosures scott madsen webmap juniata valley council bsa superstar song download account backpack click enter page url background checks for nannies uhf yagi antenna design van salee la petanque in france get happy song lyrics for play match of the day top website the fray adreno cortical small business accounting microsoft beta knock on wood guitar tabs womens dodger jerseys rainbow six 3 theme song interact theater consumer fraud protection 2 battlefield cheat unlock weapon www swivel hooks motorola i60c cellphone medication for depression buy refurbished laptop site eggplant recipe ford motor credit prof anthony clare dark rose waterproof birkenstock sandals azz 4 day more best binoculars snape image trick pony more required minimum distribution rule From Wikipedia http://en.wikipedia.org/wiki/Help:Formula GNU Free Documentation License (GFDL)

MediaWiki and TeX

MediaWiki uses a subset of TeX markup (including some extensions from LaTeX and AMSLaTeX) for mathematical formulae. It generates either PNG images or simple HTML markup, depending on 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 MathML in many cases.

More precisely, MediaWiki filters the markup through Texvc, which in turn passes the commands to TeX for the actual rendering. Thus, only a limited part of the full TeX language is supported; see below for details.

Syntax

Math markup goes inside <math> ... </math>. The edit toolbar has a button for this.

Similarly to HTML, in TeX extra spaces and newlines are ignored.

MediaWiki templates, variables and parameters cannot be used within math tags, see m:Template talk:Demo of attempt to use parameters within TeX.

Rendering

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. Vertical alignment with the surrounding text can also be a problem. The css selector of the images is img.tex.

It should be pointed out that most of these shortcomings have been addressed by Maynard Handley, but have not been released yet.

The alt attribute of the PNG images (the text that is displayed if your browser can't display images; Internet Explorer shows it up in the hover box) is the wikitext that produced them, excluding the <math> and </math>.

Apart from function and operator names, as is customary in mathematics for variables, letters are in italics; digits are not. For other text, (like variable labels) to avoid being rendered in italics like variables, use \mbox or \mathrm. For example, <math>\mbox{abc}</math> gives <math>\mbox{abc}</math>.

TeX vs HTML

Before introducing TeX markup for producing special characters, it should be noted that, as this comparison table shows, sometimes similar results can be achieved in HTML (see Help:Special characters).

TeX Syntax (forcing PNG) TeX Rendering HTML Syntax HTML Rendering
<math>\alpha\,</math> <math>\alpha\,</math>

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2

Disclaimers - About BluWiki