Can anyone show how to use eqnarray and numcases together? The example below works fine without numcases, but I would like to number the equations in the cases separately.


f(x) &=& \Theta(x) \\
1, & x > 0\\
 0 , & x < 0


Thanks in advance.

  • Welcome to TeX.SE. Please complete your code, beginning with \documentclass and ending with \end{document}. – Ross Sep 3 '18 at 5:19
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Please note that the use of eqnarray is deprecated. It is preferable to use amsmath package macros as equation for instance. Have a look at this post for more information – BambOo Sep 3 '18 at 7:20

Very ad hoc solution:



f(x) &= \Theta(x) \\
     &  \makebox[0pt][l]{\raisebox{-1.6ex}[0pt][0pt]{${}=\bigg\lbrace$}}
        \hspace{2.25em}\makebox[2em][l]{$1$,}  x > 0\\
     &  \hspace{2.25em}\makebox[2em][l]{$0$,}  x < 0


enter image description here

|improve this answer|||||

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.