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?

5
  • 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, 2013 at 12:14
  • 1
    It's not clear what you want to achieve: do you want nested numcases?
    – egreg
    Mar 25, 2013 at 12:32
  • 3
    similar question: Separate labels in cases Mar 25, 2013 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, 2013 at 12:59
  • I think yes, what I want might be nested numcases. Is that possible?
    – Suzie
    Mar 25, 2013 at 15:03

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .