Math & ScienceNumbered Lines in Case Differentiation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
pointeddot
Posts: 11
Joined: Thu Jun 27, 2013 1:16 am

Numbered Lines in Case Differentiation

Post by pointeddot »

Hey guys,

I have the following problem. I have a cases environment, which works just fine, but I cannot number its lines.

Code: Select all

\[
  Q_{[i]}=
  \begin{cases}
    1; & \text{falls } p^{*}_{[i]}-p'_{[i]}>0 \\
    0; & \text{falls } p^{*}_{[i]}-p'_{[i]}=0
  \end{cases}
\]
Can you maybe help me with this?

Thank you a lot!
Last edited by localghost on Sat Sep 28, 2013 12:47 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Numbered Lines in Case Differentiation

Post by localghost »

Have a look at cases or empheq. Note that with \[ … \] you have chosen an environment for unnumbered displayed equations.


Thorsten
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Numbered Lines in Case Differentiation

Post by cgnieder »

pointeddot wrote:I have the following problem. I have a cases environment, which works just fine, but I cannot number its lines.
Can you tell us what you mean by »number its lines«? Do you mean lines numbers like for a source code listing? Or equation numbering? Or something like an {enumerate} in math mode?

Regards
site moderator & package author
Post Reply