1

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?

  • Welcome to TeX.sx! – texenthusiast Mar 25 '13 at 12:12
  • Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – jub0bs Mar 25 '13 at 12:14
  • 1
    It's not clear what you want to achieve: do you want nested numcases? – egreg Mar 25 '13 at 12:32
  • 3
    similar question: Separate labels in cases – barbara beeton Mar 25 '13 at 12:34
  • Thank you for help, but I have there two cases environments and that is why I have problem. Is there any way to number equations separately if there are two cases environments used inside each other? – Suzie Mar 25 '13 at 12:59
2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.