Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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}. –  Jubobs 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
show 1 more comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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