I'm trying to define an environment to use with equations' systems. So far, the best solution was
\newenironment{eqsys}{\begin{equation}\begin{cases}}{\end{cases}\end{equation}}
but I noticed that if the equations had, say, partial derivative, which are fractions, those are squeezed. So I modified it, adding \displaystyle so the environment looked like this
\newenironment{eqsys}{\begin{equation}\begin{cases}\displaystyle}{\end{cases}\end{equation}}
but with this trick, only the first equation in the system is correctly typeset.
The code to get the results I get is
\documentclass{scrbook}
\usepackage{amsmath}
\usepackage{mathtools}
\newenvironment{eqsys}{\begin{equation}\begin{cases}\displaystyle}{\end{cases}\end{equation}}
\begin{document}
\begin{eqsys}
\tan(\theta) = \frac{\sin(\theta)}{\cos(\theta)}\\
\text{cotan}(\theta) = \frac{\cos(\theta)}{\sin{\theta}}
\end{eqsys}
\end{document}
How can I make \displaystyle repeat for each equation in the set?




\documentclassand the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Nov 28 '11 at 23:30