5

I have a problem with separate numbering of equations. My code is:

    \documentclass[10pt,a4paper]{article}
    \usepackage{amsmath} 
    \usepackage[subnum]{cases}

    \begin{document}
    \begin{numcases}{n=}
    y
    \begin{cases}
    x<2
    \\
    x>3
    \end{cases}
    \\
    0
    \end{numcases}
    \end{document}

Output

I'd like each of three cases to have their own number on its line. Can someone help me?

egreg
  • 1,121,712
Suzie
  • 1,289

1 Answers1

4

Here is a way to go using some ideas from this answer:

\begin{numcases}{n=}
\makebox[0pt][l]{\smash{\raisebox{-.5\baselineskip}{${} y \hspace{0.3em} \left\{\rule{0pt}{1.1\baselineskip}\right.$}}}
 \hphantom{{} y \hspace{1em} {}}\;\;x<2\\
 \hphantom{{} y \hspace{1em} {}}\;\;x>3\\
0
\end{numcases}

The output is the following:

Output

David Carlisle
  • 757,742
Ludovic C.
  • 8,888