Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Last active May 22, 2018 16:51
Show Gist options
  • Select an option

  • Save Ddedalus/ffc22d45aea10fe0ef15a2242fd262c7 to your computer and use it in GitHub Desktop.

Select an option

Save Ddedalus/ffc22d45aea10fe0ef15a2242fd262c7 to your computer and use it in GitHub Desktop.
Multiline equations in LaTeX
\usepackage{amsmath}
% lazy numbering for aling*:
\newcommand{\numberthis}{\addtocounter{equation}{1}\tag{\theequation}}
%in the document:
\begin{align*}
&\Pb{X_n > n(p + \epsilon)} = \sum_{j = K}^{n} \Pb{X_n = j} \\
&\leq \sum_{j = K}^{n} \Pb{X_n = K} r_K ^{j-K}
\leq \sum_{j = K}^{\infty} \Pb{X_n = K} r_K ^{j-K} \\
&= \Pb{X_n = K} \cdot \frac{1}{1 - r_K} \numberthis \label{eq:bound}
\end{align*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment