Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2025-08-27 21:12:59
Size: 1009
Comment: Initial commit
Revision 13 as of 2026-08-30 19:03:28
Size: 3708
Comment: Fix
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
== Markup == == Math Fonts ==
Line 27: Line 27:
For fractions, try:

{{{
\frac{over}{under}
}}}

For a summation, use one of:

{{{
\sum_{i=1}^{N} ...

\sum\nolimits_{i} ...
}}}

There are several sizes of parentheses, braces, and bars available. As a demonstration:

{{{
\Big( \big( (x + 1) + 1 \big) + 1 \Big)

\Big[ \big[ \left[ x + 1 \right] + 1 \big] + 1 \Big]

\Big| \big| |a| - |b| \big| - |c| \Big|
}}}

For curly letters, as in what is used for [[Statistics/SigmaAlgebraNotation|sigma algebras]]:
For curly or calligraphic letters:
Line 56: Line 32:

{{attachment:mathcal.svg}}
Line 63: Line 41:
{{attachment:mathbb.svg}}

To render a word in a 'normal' font, as for named functions (e.g., [[Calculus/Divergence|div]]), try:

{{{
\mathrm{div}
}}}

----



== Spacing ==

To insert horizontal spacing, try:
 * `\quad` for 1em
 * `\qquad` for 2em
 * `\,` for 3mu; note that 18mu = 1em
 * `\:` for 4mu
 * `\;` for 5mu

More generally, automated spacing in math mode is governed by these widths:
 * `\thinmuskip`, defaulting to 3mu
 * `\medmuskip`, defaulting to 4mu
 * `\thickmuskip`, defaulting to 5mu

----



== Markup ==

Many symbols are available by name, or some contraction of the name.

||'''Syntax''' ||'''Symbol'''||
||`\partial` ||∂ ||
||`\nabla` ||∇ ||
||`\infty` ||∞ ||
||`\varepsilon`||ε ||
||`\varphi` ||φ ||
||`\forall` ||∀ ||
||`\times` ||× ||
||`\cdot` ||⋅ ||
||`\in` ||∈ ||
||`\subset` ||⊂ ||
||`\subseteq` ||⊆ ||
||`\supset` ||⊃ ||
||`\supseteq` ||⊇ ||
||`\cap` ||∩ ||
||`\cup` ||∪ ||
||`\neq` ||≠ ||
||`\pm` ||± ||
||`\lt` ||< ||
||`\leq` ||≤ ||
||`\gt` ||> ||
||`\geq` ||≥ ||
||`\approx` ||≈ ||
||`\perp` ||⊥ ||
||`\cdots` ||⋅⋅⋅ ||
||`\ldots` ||... ||
||`\langle` ||⟨ ||
||`\rangle` ||⟩ ||

Greek letters are available by name. Note that by default the lowercase letter is returned; capitalizing the name returns the uppercase letter. For example, `\Phi` gives Φ while `\phi` gives ϕ.

Many function notations are also available.

||'''Syntax''' ||'''Appearance'''||
||`\frac{1}{2}` ||{{attachment:frac.svg}}||
||`\sum_{i=1}^{N}` ||{{attachment:sum1.svg}}||
||`\sum\nolimits_{i}` ||{{attachment:sum2.svg}}||
||`\prod_{i=1}^{N}` ||{{attachment:prod.svg}}||
||`\lim_{x\to\infty}` ||{{attachment:lim1.svg}}||
||`\lim\nolimits_{x\to\infty}`||{{attachment:lim2.svg}}||
||`\int_a^b` ||{{attachment:int1.svg}}||
||`\iint\limits_D` ||{{attachment:int2.svg}}||
||`\iiint\limits_D` ||{{attachment:int3.svg}}||
||`\oint_C` ||{{attachment:oint.svg}}||
||`f\vert_a` ||{{attachment:eval.svg}}||
||`\bigcap_{i \in s}` ||{{attachment:cap.svg}} ||
||`\bigcup_{i \in s}` ||{{attachment:cup.svg}} ||
||`\binom{n}{k}` ||{{attachment:bin.svg}} ||

There are several sizes of parentheses, braces, and bars available. As a demonstration:

{{{
\Big( \big( (x + 1) + 1 \big) + 1 \Big)

\Big[ \big[ [x + 1] + 1 \big] + 1 \Big]

\Big| \big| |a| - |b| \big| - |c| \Big|
}}}

There are also the `\left` and `\right` commands that grow parentheses or brackets as needed to fit the contents. These must always be paired.

LaTeX Math

LaTeX offers the most comprehensive math markup of any software.


Usage

There are two ways to use math markup: inline math mode and display math mode.

An example of the inline style is \(a + bx = y\), whereas an example of display style is:

\[ a + bx = y \]


Math Fonts

For curly or calligraphic letters:

\mathcal{O}

mathcal.svg

For blackboard letters, as in what is used for matrices:

\mathbb{X}

mathbb.svg

To render a word in a 'normal' font, as for named functions (e.g., div), try:

\mathrm{div}


Spacing

To insert horizontal spacing, try:

  • \quad for 1em

  • \qquad for 2em

  • \, for 3mu; note that 18mu = 1em

  • \: for 4mu

  • \; for 5mu

More generally, automated spacing in math mode is governed by these widths:

  • \thinmuskip, defaulting to 3mu

  • \medmuskip, defaulting to 4mu

  • \thickmuskip, defaulting to 5mu


Markup

Many symbols are available by name, or some contraction of the name.

Syntax

Symbol

\partial

\nabla

\infty

\varepsilon

ε

\varphi

φ

\forall

\times

×

\cdot

\in

\subset

\subseteq

\supset

\supseteq

\cap

\cup

\neq

\pm

±

\lt

<

\leq

\gt

>

\geq

\approx

\perp

\cdots

⋅⋅⋅

\ldots

...

\langle

\rangle

Greek letters are available by name. Note that by default the lowercase letter is returned; capitalizing the name returns the uppercase letter. For example, \Phi gives Φ while \phi gives ϕ.

Many function notations are also available.

Syntax

Appearance

\frac{1}{2}

frac.svg

\sum_{i=1}^{N}

sum1.svg

\sum\nolimits_{i}

sum2.svg

\prod_{i=1}^{N}

prod.svg

\lim_{x\to\infty}

lim1.svg

\lim\nolimits_{x\to\infty}

lim2.svg

\int_a^b

int1.svg

\iint\limits_D

int2.svg

\iiint\limits_D

int3.svg

\oint_C

oint.svg

f\vert_a

eval.svg

\bigcap_{i \in s}

cap.svg

\bigcup_{i \in s}

cup.svg

\binom{n}{k}

bin.svg

There are several sizes of parentheses, braces, and bars available. As a demonstration:

\Big( \big( (x + 1) + 1 \big) + 1 \Big)

\Big[ \big[ [x + 1] + 1 \big] + 1 \Big]

\Big| \big| |a| - |b| \big| - |c| \Big|

There are also the \left and \right commands that grow parentheses or brackets as needed to fit the contents. These must always be paired.


CategoryRicottone

LaTeX/Math (last edited 2026-08-30 19:03:28 by DominicRicottone)