TransWikia.com

How can I break the text in one cell of system of equations?

TeX - LaTeX Asked by dr_strange on August 11, 2021

I’m new to Latex and encountered this problem.
I need your help to write the equation in the picture but cannot break the line in the 2nd cell of the 2nd row.
Here is my code:

begin{equation}
    begin{cases}
    a=frac{b}{c},&bin[c,100]
    d=frac{a-b}{c},&ain[0,k],bin[0,c]
    end{cases}.
end{equation}

Thanks in advance!

enter image description here

One Answer

Since you are using cases you are loading the amsmath package. Then you can use a nested aligned environment (though a simple array would do too). I suggest using the dcases environment from mathtools in order to have larger fractions.

documentclass{article}

usepackage{mathtools}% loads amsmath

begin{document}

begin{equation}
begin{dcases}
a=frac{b}{c},   & bin[c,100] 
d=frac{a-b}{c}, & begin{aligned}
                   a&in[0,k], 
                   b&in[0,c]
                   end{aligned}
end{dcases}
end{equation}

end{document}

enter image description here

Answered by campa on August 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP