Log in Help page Discussion History Go to the site toolbox


From BluWiki

Revision as of 15:29, 21 March 2008 by (Talk)

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.


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.


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


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