136 votes

MathJax basic tutorial and quick reference

Crossing things out Use \require{cancel} in the first formula in your post that requires cancelling; you need it only once per page. Then use: $$\require{cancel}\...
118 votes

MathJax basic tutorial and quick reference

Additional decorations $\def\demo#1#2{#1{#2}\ #1{#2#2}\ #1{#2#2#2}}$ \overline: $\demo\overline A$ \underline: $\demo\...
113 votes

MathJax basic tutorial and quick reference

Commutative diagrams AMScd diagrams must start with a "require": $\require{AMScd}$ \begin{CD} A @>a>> B\\ @V b V V= @VV c V\\ C @>>d> D \end{CD} ...
63 votes

MathJax basic tutorial and quick reference

Arbitrary operators If an operator is not available as a built-in command, use \operatorname{…}. So for things like $$\operatorname{arsinh}(x)$$ write ...
62 votes

MathJax basic tutorial and quick reference

Highlighting equation To highlight an equation, \bbox can be used. E.g, ...
54 votes

MathJax basic tutorial and quick reference

Absolute values and norms The absolute value of some expression can be denoted as \lvert x\rvert or, more generally, as ...
53 votes

MathJax basic tutorial and quick reference

Giving reasons on each line of a sequence of equations To produce this: \begin{align} v + w & = 0 &&\text{Given} \tag 1\\ -w & = -w + 0 && \text{additive identity} \tag ...
47 votes

MathJax basic tutorial and quick reference

Pack of cards If you are asking (or answering) a combinatorics question involving packs of cards you can make it look more elegant by using \spadesuit, ...
42 votes

MathJax basic tutorial and quick reference

Left and Right Implication Arrows Another way to display the arrows for right and left implication instead of using $\Rightarrow$, ...
38 votes

MathJax basic tutorial and quick reference

Degree symbol Standard Mathjax does not yet support a dedicated degree symbol, so here are some of the ways to try and emulate one : $$ \begin{array} \\ \text{45^\text{o}} & \text{renders as} &...
35 votes

MathJax basic tutorial and quick reference

Long division ...
29 votes

MathJax basic tutorial and quick reference

Displaystyle and Textstyle Many things like fractions, sums, limits, and integrals display differently when written inline versus in a displayed formula. You can switch styles back and forth with <...
27 votes

MathJax basic tutorial and quick reference

Vertical Spacing Some formulas such as $\overline a+\overline b=\overline {a\cdot b}$, $\sqrt{a}-\sqrt{b}$, do not look quite right when it comes to vertical spacing. Fortunately, there is more than ...
25 votes

MathJax basic tutorial and quick reference

Equation numbering Simple equation To give an equation a number, use the \tag{}. To refer to it later, use \label{} to label ...
17 votes

MathJax basic tutorial and quick reference

Linear programming Formulation A theoretical LPP can be typeset as ...
17 votes

MathJax basic tutorial and quick reference

Units While $\LaTeX$ has packages that format units, MathJax does not. For visual consistency, one should format units within the same string of MathJax code as the value to which it corresponds, ...
13 votes

MathJax basic tutorial and quick reference

Mixing code and MathJax formatting on lines To give an example of how this might be useful, I wanted to express an algorithm in more or less the same indentation and symbolic way it appears in a ...
11 votes

MathJax basic tutorial and quick reference

Markov Chains This is a heuristic solution for coding Markov chains in Mathjax using a combination of commutative diagrams, the encircle tool and font sizes. There are a few minor issues with this ...
9 votes

MathJax basic tutorial and quick reference

Tables W/ Sub-Variables After spending too much time searching for a way to make tables of this form (to no avail), I spent even longer searching for the pieces (of which most were found here) to ...
5 votes

MathJax basic tutorial and quick reference

Overlaying symbols (using negative spacing) To overlay the $\wedge$ \wedge and the $\bigcirc$ \bigcirc, to make the Kulkarni ...
5 votes

MathJax basic tutorial and quick reference

Is there a way to make the Greek letters displayed upright (non-italic)? Asked in comment. There is a way using unicode characters, for which one can search here: http://unicode-table.com/en. Normal ...
5 votes

MathJax basic tutorial and quick reference

Tensor indices T^{\alpha\beta}{}_{\gamma\delta} $T^{\alpha\beta}{}_{\gamma\delta}$ T^{\alpha \beta}{}_{\gamma\delta}{}^{\lambda} ...
4 votes

MathJax basic tutorial and quick reference

Alternative Ways of Writing in $\Large\LaTeX$ TYPESET FONTS As mentioned before, you can write $\mathtt{. . .}$ to generate fonts like $\mathtt{A}$, $\mathtt{B}$, $...

Only top scored, non community-wiki answers of a minimum length are eligible