Skip to content

amsmath in Scissor LaTeX

The amsmath package works in Scissor LaTeX: align and gather number every row, and \tag, \intertext, subequations, \numberwithin, \genfrac, split, cases, the matrix environments and \DeclareMathOperator work as in LaTeX.

What the package does

amsmath is the standard toolbox for display mathematics. It adds environments for aligned and grouped equations, matrices with brackets, \text inside formulas, better fractions and binomials, and \eqref for references to equations.

Load it in the preamble with \usepackage{amsmath}. In Scissor LaTeX most of its commands also work without the line, but keep it so your document compiles in a TeX installation too.

What works here

Command or environmentIn Scissor LaTeXNotes
equation, equation*WorksOne number, or none.
align, align*Works
gather, gather*Works
multline, multline*Works
flalign, alignat, eqnarrayWorks
split, aligned, gatheredWorksInside equation or \[ ... \].
casesWorks
matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, smallmatrixWorks
\text{...}, \operatorname{...}Works
\DeclareMathOperator, \DeclareMathOperator*WorksPut it in the preamble.
\dfrac, \tfrac, \cfrac, \binom, \dbinom, \genfracWorks
\boxed, \substack, \overset, \underset, \smashWorks
\xrightarrow[...]{...}, \xleftarrow[...]{...}Works
\eqref, \labelWorks
\nonumber, \notagWorks
\tag{...}, \tag*{...}Works
\numberwithin, subequationsWorks
\intertext, \shortintertextWorks
\iint, \iiintWorks\iiiint and \idotsint show a red formula.

Examples

Equations aligned at the equals sign, with a reference to the block:

align with \label and \eqref

LaTeXPreamble: \usepackage{amsmath}Open in editor (opens in a new tab)
\begin{align}
  f(x) &= (x + 1)^2 \label{eq:square}\\
       &= x^2 + 2x + 1
\end{align}
Expanding the square in \eqref{eq:square} gives three terms.
Rendered by Scissor LaTeX: align with \label and \eqref

A piecewise function with cases and \text, and an operator declared in the preamble:

cases, \text and \DeclareMathOperator

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\sgn}{sgn}
\begin{document}
\[
  \sgn(x) =
  \begin{cases}
    1  & \text{if } x > 0,\\
    0  & \text{if } x = 0,\\
    -1 & \text{otherwise.}
  \end{cases}
\]
\end{document}

Matrices with different brackets, and a long formula broken with split:

Matrices and split

LaTeXPreamble: \usepackage{amsmath}Open in editor (opens in a new tab)
\[
  A = \begin{pmatrix} 1 & 2 \\ 3 & 44 \end{pmatrix},\quad
  B = \begin{bmatrix} a & b \\ c & d \end{bmatrix},\quad
  \det A = \begin{vmatrix} 1 & 2 \\ 3 & 44 \end{vmatrix} = 38
\]
\begin{equation}
  \begin{split}
    (a + b)^3 &= (a + b)(a + b)^2 \\
              &= a^3 + 3a^2 b + 3a b^2 + b^3
  \end{split}
\end{equation}
Rendered by Scissor LaTeX: Matrices and split

Fractions, binomials, boxes and stacked limits:

\dfrac, \binom, \boxed and \substack

LaTeXPreamble: \usepackage{amsmath}Open in editor (opens in a new tab)
\boxed{\, \sum_{\substack{0 \le i \le n \\ i \text{ even}}} \binom{n}{i} = 2^{n-1} \,}
\qquad
\dfrac{1}{1 + \cfrac{1}{2 + \cfrac{1}{3}}}
\qquad
A \xrightarrow{\;f\;} B

\intertext puts a line of text between the rows of an align:

\intertext between two rows

LaTeXPreamble: \usepackage{amsmath}Open in editor (opens in a new tab)
\begin{align}
  x &= 44 \intertext{and therefore}
  y &= 2x
\end{align}

Compatibility

  • From a TeX installation to here: documents typeset with the same numbers; only the few commands marked as not supported above show a red formula.
  • From here to a TeX installation: documents compile there unchanged.

The full manual is on CTAN: ctan.org/pkg/amsmath. For a step by step introduction, see Equations, alignment and numbering and Matrices.

Questions and answers

Does every row of align get its own number?

Yes, as in a TeX installation. Put \nonumber or \notag on the rows that should have none.

Can I use \tag to give an equation a custom label?

Yes. \tag{A} shows (A) instead of a number, and \eqref to its label prints the tag.

Is \DeclareMathOperator supported?

Yes. Declare the operator in the preamble, as in a TeX installation, and use it like \sin. The starred form puts limits below the name in display math.

Every example on this page is typeset by Scissor LaTeX when the site is built. Last updated 2026-11-07.