[OS X TeX] brace spanning equations

Morten Høgholm morten.hoegholm at gmail.com
Tue Mar 21 14:01:27 EST 2006


On Tue, 21 Mar 2006 19:52:52 +0100, Andrei Sobolevskii <ansobol at gmail.com>  
wrote:

>
> Neither cases nor array will provide a simple way to number equations  
> separately.  To achieve that you may use the empheq package:
> http://www.ctan.org/info?id=empheq
>
> \documentclass{article}
> \usepackage{amsmath,empheq}
> \begin{document}
> \begin{empheq}[left=\left\{,right=\right.]{align}
>    \label{eq:1}
>    E &= mc^2,\\
>    \label{eq:2}
>    pV &= \frac m\mu RT.
> \end{empheq}
> \end{document}

Actually, the documentation shows how to do this a tad better:

\documentclass{article}
\usepackage{empheq} % loads amsmath by itself
\begin{document}
\begin{empheq}[left=\empheqlbrace]{align}
   \label{eq:1}
   E &= mc^2,\\
   \label{eq:2}
   pV &= \frac m\mu RT.
\end{empheq}
\end{document}
-- 
Morten, empheq maintainer.
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list