Created
May 28, 2014 02:34
-
-
Save ashwin/056e9796116943ab5da2 to your computer and use it in GitHub Desktop.
How to display equation in LaTeX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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