Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

LaTeX's math mode makes it simple to write arithmetic in plain text. To enter math mode in LaTeX, you must use one of several commands:

For example:

"$$ E = mc2 $$"

The LaTeX Math macro handles this for you. You only need to enter the math; the equation is rendered automatically.

Info

For more information, see

...

https://en.wikibooks.org/wiki/LaTeX/Mathematics

...

, https://www.overleaf.com/learn .

To help you started, here are a few LaTeX math examples.

LaTeX

...

Mathinline
hostConfluence:2327133328
bodyE=mc^2

...

Here are a few examples of math in LaTeX to get you started. For a much more thorough guide, seeĀ https://en.wikibooks.org/wiki/LaTeX/Mathematics.

LaTeXOutput

Output

Code Block
E = mc^2

Mathinline
hostConfluence:2327133328
bodyE = mc^2

Code Block
\pi = \frac c d

Mathinline
hostConfluence:2327133328
body\pi = \frac c d

Code Block
\frac{a + b}{2}

Mathinline
hostConfluence:2327133328
body\frac{a + b}{2}

Code Block
e = \lim_{x\to\infty} \left(1+\dfrac{1}{n}\right)^n

Mathinline
hostConfluence:2327133328
bodye = \lim_{x\to\infty} \left(1+\dfrac{1}{n}\right)^n

Code Block
\begin{matrix}
a & b & c \\
d & e & f \\
g & h & i
\end{matrix}

Mathinline
hostConfluence:2327133328
body \begin{matrix} a & b & c \\ d & e & f \\ g & h & i \end{matrix}

Code Block
\begin{align*}
 f(x) &= (x+a)(x+b) \\
      &= x^2 + (a+b)x + ab
\end{align*}

Mathinline
hostConfluence:2327133328
body\begin{align*} f(x) &= (x+a)(x+b) \\ &= x^2 + (a+b)x + ab \end{align*}

Filter by label (Content by label)
showLabelsfalse
max5
spacesDOC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "latexmath" , "rendering" ) and type = "page" and space = "DOC"
labelslatexmath rendering

...

hiddentrue

...