latex-syntax
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| latex-syntax [February 18, 2026 at 09:43] – yanevskiv | latex-syntax [May 14, 2026 at 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # LaTeX syntax | ||
| + | |||
| + | For addition, you use the `+` symbol e.g. `a + b = c`: | ||
| + | $$ a + b = c$$ | ||
| + | |||
| + | For subtraction, | ||
| + | $$ a - b = c$$ | ||
| + | |||
| + | For multiplication, | ||
| + | Using `a * b` doesn' | ||
| + | $$a\cdot b = c$$ | ||
| + | |||
| + | For fractions, you use `\frac{a}{b}` or `{a \over b}`. | ||
| + | You can use `a / b` if you don't want to make a fraction $a / b$. | ||
| + | $${a \over b} = c$$ | ||
| + | |||
| + | For modulo, you can use `a \% b` if it's. The percent symbol is comment `% ... comment ...`. | ||
| + | Usually in mathematics, | ||
| + | $$ a = b \pmod{N}$$ | ||
| + | |||
| + | For exponentiation, | ||
| + | When it's a single variable in the exponent, omitting braces is fine e.g. `e^\phi` or `e^{\phi}` are both fine. | ||
| + | $$e^{i\phi} = \cos(\phi) + i\sin(\phi)$$ | ||
| + | |||
| + | For logarithm, you use `\ln`. | ||
| + | $$\ln(1 + x) = 1 + x + $$ | ||
| + | |||
| + | For integrals, you use `\int`, `\iint`, `\iiint`, `\oint`, `\oiint`, `\oiiint`. | ||
| + | $$\int \iint \iiint \oint \oiint \oiiint$$ | ||
| + | |||
