Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created May 28, 2014 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashwin/056e9796116943ab5da2 to your computer and use it in GitHub Desktop.
Save ashwin/056e9796116943ab5da2 to your computer and use it in GitHub Desktop.
How to display equation in LaTeX
% How to display equation in LaTeX
% Simple equation with no numbering
\begin{equation*}
x = y + z
\end{equation*}
% Equation with numbering
\begin{equation}
x = y + z
\end{equation}
% Equation with numbering (and label)
\begin{equation}
x = y + z
\label{eq:foo}
\end{equation}
% Multiple equations that are aligned
\begin{align*}
x = y + z \\
a = b + c \\
p = q + r
\end{align*}
% Multiple equations with no alignment
\begin{gather*}
x = y + z \\
a = b + c \\
p = q + r
\end{gather*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment