Math support

LaTeX-style math reference for MarkStudio Pro.

Use these source examples in MarkStudio Pro for inline math, display equations, symbols, matrices, calculus, sets, and logic.

Inline and display math

MarkStudio Pro uses standard dollar-sign delimiters:

  • Inline math — wrap with single $: $E = mc^2$ renders as $E = mc^2$.
  • Display math — wrap with double $$ on their own lines:
$$
\int_0^1 x^2\,dx = \frac{1}{3}
$$

In the app preview, this appears as a display equation.

$$\int_0^1 x^2\,dx = \frac{1}{3}$$

Tip: Use the Math toolbar in the app to insert snippets without typing the full LaTeX. The toolbar groups below mirror the in-app categories.

Greek letters

Lowercase

\alpha$\alpha$
\beta$\beta$
\gamma$\gamma$
\delta$\delta$
\epsilon$\epsilon$
\varepsilon$\varepsilon$
\zeta$\zeta$
\eta$\eta$
\theta$\theta$
\vartheta$\vartheta$
\iota$\iota$
\kappa$\kappa$
\lambda$\lambda$
\mu$\mu$
\nu$\nu$
\xi$\xi$
\pi$\pi$
\varpi$\varpi$
\rho$\rho$
\varrho$\varrho$
\sigma$\sigma$
\varsigma$\varsigma$
\tau$\tau$
\upsilon$\upsilon$
\phi$\phi$
\varphi$\varphi$
\chi$\chi$
\psi$\psi$
\omega$\omega$

Uppercase

\Gamma$\Gamma$
\Delta$\Delta$
\Theta$\Theta$
\Lambda$\Lambda$
\Xi$\Xi$
\Pi$\Pi$
\Sigma$\Sigma$
\Upsilon$\Upsilon$
\Phi$\Phi$
\Psi$\Psi$
\Omega$\Omega$

Operators

Binary operators

+$+$
-$-$
\pm$\pm$
\mp$\mp$
\times$\times$
\div$\div$
\cdot$\cdot$
\ast$\ast$
\star$\star$
\circ$\circ$
\bullet$\bullet$
\oplus$\oplus$
\ominus$\ominus$
\otimes$\otimes$
\oslash$\oslash$

Big operators

\sum$\sum$
\prod$\prod$
\coprod$\coprod$
\int$\int$
\iint$\iint$
\iiint$\iiint$
\oint$\oint$
\bigcup$\bigcup$
\bigcap$\bigcap$
\bigvee$\bigvee$
\bigwedge$\bigwedge$

Relations

=$=$
\neq$\neq$
\equiv$\equiv$
\approx$\approx$
\sim$\sim$
\simeq$\simeq$
\cong$\cong$
\propto$\propto$
<$<$
>$>$
\leq$\leq$
\geq$\geq$
\ll$\ll$
\gg$\gg$
\to$\to$
\leftarrow$\leftarrow$
\Rightarrow$\Rightarrow$
\Leftarrow$\Leftarrow$
\Leftrightarrow$\Leftrightarrow$
\mapsto$\mapsto$

Structures

ConstructLaTeXOutput
Fraction\frac{a}{b}$\frac{a}{b}$
Display fraction\dfrac{a}{b}$\dfrac{a}{b}$
Square root\sqrt{x}$\sqrt{x}$
Nth root\sqrt[n]{x}$\sqrt[n]{x}$
Superscriptx^2$x^2$
Subscriptx_i$x_i$
Bothx_i^2$x_i^2$
Sum with bounds\sum_{i=1}^{n} i$\sum_{i=1}^{n} i$
Integral with bounds\int_0^1 f(x)\,dx$\int_0^1 f(x)\,dx$
Binomial\binom{n}{k}$\binom{n}{k}$
Absolute value\lvert x \rvert$\lvert x \rvert$
Norm\lVert v \rVert$\lVert v \rVert$
Floor\lfloor x \rfloor$\lfloor x \rfloor$
Ceiling\lceil x \rceil$\lceil x \rceil$
Overline\overline{x}$\overline{x}$
Hat\hat{x}$\hat{x}$
Vector\vec{v}$\vec{v}$

Calculus

ConstructLaTeXOutput
Derivative\frac{d}{dx} f(x)$\frac{d}{dx} f(x)$
Partial derivative\frac{\partial u}{\partial x}$\frac{\partial u}{\partial x}$
Second derivative\frac{d^2 y}{dx^2}$\frac{d^2 y}{dx^2}$
Limit\lim_{x \to 0} f(x)$\lim_{x \to 0} f(x)$
Nabla / del\nabla f$\nabla f$
Gradient (alt)\nabla \cdot \mathbf{F}$\nabla \cdot \mathbf{F}$
Curl\nabla \times \mathbf{F}$\nabla \times \mathbf{F}$
Definite integral\int_a^b f(x)\,dx$\int_a^b f(x)\,dx$
Double integral\iint_D f\,dA$\iint_D f\,dA$
Line integral\oint_C \mathbf{F} \cdot d\mathbf{r}$\oint_C \mathbf{F} \cdot d\mathbf{r}$

Matrices and determinants

2×2 matrix

$$
A = \begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
$$

$$A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$$

3×3 matrix

$$
M = \begin{pmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9
\end{pmatrix}
$$

$$M = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}$$

Determinant

$$
\det(B) = \begin{vmatrix}
a & b \\
c & d
\end{vmatrix} = ad - bc
$$

$$\det(B) = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc$$

Bracket variants

  • bmatrix — square brackets [ ]
  • pmatrix — parentheses ( )
  • vmatrix — vertical bars | | (determinants)
  • Vmatrix — double vertical bars || || (norms)
  • Bmatrix — curly braces { }
  • matrix — no brackets

Set theory

\in$\in$
\notin$\notin$
\ni$\ni$
\subset$\subset$
\subseteq$\subseteq$
\supset$\supset$
\supseteq$\supseteq$
\cup$\cup$
\cap$\cap$
\setminus$\setminus$
\emptyset$\emptyset$
\varnothing$\varnothing$
\mathbb{N}$\mathbb{N}$
\mathbb{Z}$\mathbb{Z}$
\mathbb{Q}$\mathbb{Q}$
\mathbb{R}$\mathbb{R}$
\mathbb{C}$\mathbb{C}$

Logic

\land$\land$
\lor$\lor$
\lnot$\lnot$
\implies$\implies$
\iff$\iff$
\forall$\forall$
\exists$\exists$
\nexists$\nexists$
\therefore$\therefore$
\because$\because$
\top$\top$
\bot$\bot$

Environments

Aligned equations

$$
\begin{aligned}
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\
\nabla \cdot \mathbf{B} &= 0 \\
\nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t}
\end{aligned}
$$

$$\begin{aligned} \nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\ \nabla \cdot \mathbf{B} &= 0 \\ \nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \end{aligned}$$

Cases

$$
f(x) = \begin{cases}
x^2 & \text{if } x \geq 0 \\
-x^2 & \text{if } x < 0
\end{cases}
$$

$$f(x) = \begin{cases} x^2 & \text{if } x \geq 0 \\ -x^2 & \text{if } x < 0 \end{cases}$$

Export behavior

  • HTML export — math is rendered inline with full preview fidelity.
  • PDF export — math renders as part of the PDF page; inline and display math both supported.
  • Word export — math is converted to a print-safe representation. Very complex equations may render best in HTML.
Tip: If an equation is critical and complex (large matrices, multi-line aligned proofs), export to HTML first to verify, then to Word/PDF.

For diagrams rather than equations, use Mermaid fenced blocks. See the Mermaid guide for supported diagram families and export behavior.

Troubleshooting

My display math is rendering as inline.

Display math requires $$ on its own line, with blank lines around the block:

Some text.

$$
\sum_{i=1}^{n} i
$$

More text.
A symbol shows the raw LaTeX command instead of the symbol.

Two common causes: (1) typo in the command (\Delta is different from \delta); (2) the command is outside the supported math subset. Try a simpler equivalent expression.

Dollar signs in my prose are being treated as math.

Escape literal dollars with a backslash: \$5.99. Or wrap them in inline code: `$5.99`.

My matrix has misaligned columns.

Matrix columns are separated by & and rows by \\. Check that every row has the same number of & separators.