Quantcast
Channel: MathJax basic tutorial and quick reference - Mathematics Meta Stack Exchange
Browsing latest articles
Browse All 40 View Live

Answer by Gabriel Staples for MathJax basic tutorial and quick reference

How to draw a stretched vertical bar to indicate the bounds (upper and lower limits) after taking the anti-derivative of a definite integralI'd like to also expound upon bullet 6 in the question, about...

View Article



Answer by Antoni Parellada for MathJax basic tutorial and quick reference

Evaluated at (integrals):To get a vertical bar to the right of an expression with the limits of integration, expressions such as $\Big |$$\Big |$ result in one-size-fits-all outputs.\left....

View Article

Answer by user803596 for MathJax basic tutorial and quick reference

Overlaying symbols(using negative spacing)To overlay the $\wedge$\wedge and the $\bigcirc$\bigcirc, to make the Kulkarni Nomizu Product:$$\mathbin{\rlap{\,\wedge}\bigcirc}$$Which is...

View Article

Answer by Dávid Laczkó for 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 use...

View Article

Answer by Jam for MathJax basic tutorial and quick reference

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

View Article


Answer by Antoni Parellada for MathJax basic tutorial and quick reference

Tensor indicesT^{\alpha\beta}{}_{\gamma\delta}$T^{\alpha\beta}{}_{\gamma\delta}$T^{\alpha \beta}{}_{\gamma\delta}{}^{\lambda}$T^{\alpha \beta}{}_{\gamma\delta}{}^{\lambda}$So for instance, a...

View Article

Answer by Landon for MathJax basic tutorial and quick reference

TablesW/ Sub-VariablesAfter 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...

View Article

Answer by Mr Pie for MathJax basic tutorial and quick reference

Alternative Ways of Writing in $\Large\LaTeX$TYPESET FONTSAs mentioned before, you can write $\mathtt{. . .}$ to generate fonts like $\mathtt{A}$, $\mathtt{B}$, $\mathtt{C}$ and etc.You can also...

View Article


Answer by jdhao for MathJax basic tutorial and quick reference

Equation numberingSimple equationTo give an equation a number, use the \tag{}. To refer to it later, use \label{} to label this equation. When you want to refer to it, use \eqref{}. For...

View Article


Answer by GNUSupporter 8964民主女神地下教會 for MathJax basic tutorial and quick...

Linear programmingFormulationA theoretical LPP can be typeset as\begin{array}{ll}\text{maximize} & c^T x \\\text{subject to}& d^T x = \alpha \\&0 \le x \le...

View Article

Answer by gen-ℤ ready to perish for MathJax basic tutorial and quick reference

UnitsWhile $\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,...

View Article

Answer by hardmath for MathJax basic tutorial and quick reference

Mixing code and MathJax formatting on linesTo 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...

View Article

Answer by Alexis Olson for MathJax basic tutorial and quick reference

Displaystyle and TextstyleMany 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...

View Article


Answer by Workaholic for MathJax basic tutorial and quick reference

Vertical SpacingSome 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 one...

View Article

Answer by David for MathJax basic tutorial and quick reference

Pack of cardsIf you are asking (or answering) a combinatorics question involving packs of cards you can make it look more elegant by using \spadesuit, \heartsuit, \diamondsuit, \clubsuit in math...

View Article


Answer by webbertiger for MathJax basic tutorial and quick reference

Highlighting equationTo highlight an equation, \bbox can be used. E.g,$$ \bbox[yellow]{e^x=\lim_{n\to\infty} \left( 1+\frac{x}{n} \right)^n\qquad (1)}$$produces$$ \bbox[yellow]{e^x=\lim_{n\to\infty}...

View Article

Answer by David K for MathJax basic tutorial and quick reference

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

View Article


Answer by David K for MathJax basic tutorial and quick reference

Long division$$\require{enclose}\begin{array}{r} 13 \\[-3pt]4 \enclose{longdiv}{52} \\[-3pt] \underline{4}\phantom{2} \\[-3pt] 12 \\[-3pt] \underline{12}\end{array}$$$$\require{enclose}\begin{array}{r}...

View Article

Answer by MvG for MathJax basic tutorial and quick reference

Degree symbolStandard 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} &...

View Article

Answer by Lehs for MathJax basic tutorial and quick reference

Commutative diagrams(For more examples, see this meta question.)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}to...

View Article

Image may be NSFW.
Clik here to view.

Answer by MvG for MathJax basic tutorial and quick reference

Absolute values and normsThe absolute value of some expression can be denoted as \lvert x\rvert or, more generally, as \left\lvert … \right\rvert. It renders as $\lvert x\rvert$.The norm of a vector...

View Article


Answer by MvG for MathJax basic tutorial and quick reference

Arbitrary operatorsIf an operator is not available as a built-in command, use \operatorname{…}. So for things like $$\operatorname{arsinh}(x)$$ write \operatorname{arsinh}(x) since \arsinh(x) will give...

View Article


Answer by homegrown for MathJax basic tutorial and quick reference

Left and Right Implication ArrowsAnother way to display the arrows for right and left implication instead of using$\Rightarrow$, $\Leftarrow$ and $\Leftrightarrow$which produces $\Rightarrow$,...

View Article

Answer by MJD for MathJax basic tutorial and quick reference

Crossing things outUse \require{cancel} in the first formula in your post that requires cancelling; you need it only once per page. Then use:$$\require{cancel}\begin{array}{rl}\verb|y+\cancel{x}| &...

View Article

Answer by Américo Tavares for 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\underline B$\widetilde: $\demo\widetilde C$\widehat: $\demo\widehat D$\fbox:...

View Article


Answer by Anonymous Computer for MathJax basic tutorial and quick reference

LimitsTo make a limit (like $\lim \limits_{x \to 1} \frac{x^2-1}{x-1}$), use this syntax:First, start off with $\lim. This renders as $\lim$. The backslash is there to prevent things like $lim$, where...

View Article

Answer by Abramo for MathJax basic tutorial and quick reference

Using \newcommandI would like to remark that it is possible to define LaTeX commands as you do in your TeX files. I felt so happy when I first discovered it! It's enough to insert something like$...

View Article

Answer by Tobias Kienzler for MathJax basic tutorial and quick reference

Tags & ReferencesFor longer calculations (or referring to other post's results) it is convenient to use the tagging/labelling/referencing system. To tag an equation use \tag{yourtag}, and if you...

View Article

Answer by E.P. for MathJax basic tutorial and quick reference

Big bracesUse \left and \right to make braces - (round), [square] and {curly} - scale up to be the size of their arguments. Thus$$f\left( \left[ \frac{ 1+\left\{x,y\right\} }{ \left(...

View Article



Image may be NSFW.
Clik here to view.

Answer by user93957 for MathJax basic tutorial and quick reference

SymbolsIn general, you have to search in long tables about a specific symbol you're looking for, things like $\Psi$, $\delta$, $\zeta$, $\ge$, $\subseteq$ ... And it turns out that this operation can...

View Article

Answer by Vlad K. for MathJax basic tutorial and quick reference

ColorsNamed colors are browser-dependent; if a browser doesn't know a particular color name, it may render the text as black. The following colors are standard in HTML4 and CSS2 and should be...

View Article

Answer by leonbloy for MathJax basic tutorial and quick reference

\implies ($\implies$) is a marginally preferable alternative to \Rightarrow ($\Rightarrow$) for implication.There's also \iff $\iff$ and \impliedby $\impliedby$.\to ($\to$) is preferable to \rightarrow...

View Article

Answer by Américo Tavares for MathJax basic tutorial and quick reference

System of equationsUse \begin{array}…\end{array} and \left\{…\right.. For example, you get this:$$\left\{ \begin{array}{c}a_1x+b_1y+c_1z=d_1 \\ a_2x+b_2y+c_2z=d_2 \\...

View Article


Answer by MJD for MathJax basic tutorial and quick reference

Continued fractionsTo make a continued fraction, use \cfrac, which works just like \frac but typesets the results differently: $$ x = a_0 + \cfrac{1^2}{a_1+ \cfrac{2^2}{a_2+ \cfrac{3^2}{a_3 +...

View Article

Answer by MJD for MathJax basic tutorial and quick reference

Fussy spacing issuesThese are issues that won't affect the correctness of formulas, but might make them look significantly better or worse. Beginners should feel free to ignore this advice; someone...

View Article

Answer by axblount for MathJax basic tutorial and quick reference

ArraysIt is often easier to read tables formatted in MathJax rather than plain text or a fixed width font. Arrays and tables are created with the array environment. Just after \begin{array} the format...

View Article


Answer by MJD for MathJax basic tutorial and quick reference

Definitions by cases (piecewise functions)Warning: If you make certain kinds of errors while entering code using this environment, you can easily screw-up live update, and your only recourse is to...

View Article


Answer by MJD for MathJax basic tutorial and quick reference

Aligned equationsOften people want a series of equations where the equals signs are aligned. To get this, use \begin{align}…\end{align}. Each line should end with \\, and should contain an ampersand at...

View Article

Answer by MJD for MathJax basic tutorial and quick reference

MatricesUse $$\begin{matrix}…\end{matrix}$$ In between the \begin and \end, put the matrix elements. End each matrix row with \\, and separate matrix elements with &. For example,$$\begin{matrix}1...

View Article

MathJax basic tutorial and quick reference

(Deutsch: MathJax: LaTeX Basic Tutorial und Referenz)To see how any formula was written in any question or answer, including this one, right-click on the expression and choose "Show Math As > TeX...

View Article
Browsing latest articles
Browse All 40 View Live




Latest Images