We use cookies to enhance your experience on our website. By continuing to use our website, you are agreeing to our use of cookies. You can change your cookie settings at any time. Find out more

LaTeX examples_Standard WordPress editor

Inline mode

An inline expression occurs in the middle of the text, it employs the following syntax:

n.b.

  • Adjust the size of an inline equation using ‘displaystyle’ or using ‘large, Large, LARGE’ commands:
    • This is a larger inline equation: \( \displaystyle E = mc^2 \).
    • This is a larger inline equation: \(\Large E = mc^2 \).
  • If using the ‘Divi builder’ the LaTeX equation needs to be pasted in along with the surrounding sentence or the equation corrupts.

Examples:

According to Einstein’s theory of relativity, the equation \( E = mc^2 \) expresses the relationship between energy (E), mass (m), and the speed of light (c)

Another inline example \( \frac{2 \sqrt{15} \times 2 \sqrt{5}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{2 \sqrt{75}}{\sqrt{3}}=2 \sqrt{\frac{75}{3}}=2 \sqrt{25}=2 \times 5=10 \) showing a large inline equation.

Block mode

If you want your equation to be horizontally centred of the page, on it’s own row your equation may be written as follows:

$$
\frac{2 \sqrt{15} \times 2 \sqrt{5}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{2 \sqrt{75}}{\sqrt{3}}=2 \sqrt{\frac{75}{3}}=2 \sqrt{25}=2 \times 5=10
$$

\begin{equation}
\frac{2 \sqrt{15} \times 2 \sqrt{5}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{4 \sqrt{75}}{2 \sqrt{3}}=\frac{2 \sqrt{75}}{\sqrt{3}}=2 \sqrt{\frac{75}{3}}=2 \sqrt{25}=2 \times 5=10
\end{equation}

Loading...