Help:LaTeX Editing

From ProofWiki
Jump to: navigation, search
This page is about technical instructions. For stylistic remarks on $\LaTeX$ editing, see Help:Editing/House Style/Mathematical Symbols

$\LaTeX$ Editing

In general, contributors are assumed to be up to speed with some form of $\LaTeX$; a web search should be sufficient to find ample reference on how to get started with it, should you still need to.

The "External references" section below may also be consulted.


The $\LaTeX$ interpreter used on this site is brought to you by MathJax.

This produces an experience different from that produced by the MediaWiki interpreter which is (at time of writing) the one used by Wikipedia and other places.

It also has a subtly different syntax in places. Specific instances will be detailed where relevant.


$\LaTeX$ delimiters

To display an equation in line with some text, the equation should be enclosed in single dollar signs: $ ... $

Note that \( ... \) also works, but takes more effort to type and so is less recommended.

There may (but we hope not) still be some pages with <math> ... </math> in them. This is a holdover from when MediaWiki was the interpreter used for $\LaTeX$ commands. It still works in MathJax after a fashion but on transcluded pages, such enclosed $\LaTeX$ will not be converted to mathematical symbols.

If you see any, then feel free to change them to $ signs, as they should not be there.


No longer supported

The following $\LaTeX$ commands are not supported in MathJax, but may still be present in some pages. When found they need to be replaced.

For $\lor$: \or to be replaced by \lor
For $\land$: \and to be replaced by \land
For $\R$: \reals to be replaced by \R
For $\varnothing$: \O to be replaced by \varnothing
For $\exists$: \exist to be replaced by \exists
For $\operatorname{sgn}$: \sgn to be replaced by \operatorname{sgn}


For producing fixed width text in math mode: \texttt needs to be replaced by \mathtt.

If you find any more examples, add them here.


New commands

New commands can be requested and discussed at Symbols:LaTeX Commands/ProofWiki Specific. This is a relatively new feature. How this works precisely has yet to be determined.


Aligned Equations

To include aligned equations, a set of templates has been written: begin-eqn, eqn and end-eqn.

For more explanation, see Template:eqn.


Known issues

See Problem with Eqn template.


Specific Topics

Commutative diagrams

See Help:Commutative Diagrams


External references and manuals

It may not be exactly the same version of $\LaTeX$, but I always find this page helpful as a first, quick overview:

This is also a good reference page, pertaining to MediaWiki $\LaTeX$:

but be aware that not all commands are supported.

This is a link of all the currently supported commands available: