TransWikia.com

Aligning equations in a system of equations with inside arrows

TeX - LaTeX Asked on June 5, 2021

I wrote the code:

begin{empheq}[left=empheqlbrace]{align*}
text{Risorsa occupata $quad Leftrightarrow$} quad s &= 0 
text{Risorsa libera $quad Leftrightarrows$} quad s &= 1
end{empheq}

but Texmaker gives me an error. If I rewrite it as follows:

begin{empheq}[left=empheqlbrace]{align*}
text{Risorsa occupata $quad Leftrightarrow$} quad s &= 0 
quad s &= 1
end{empheq}

it works. How can I fix this error?

One Answer

With the help of cases:

enter image description here

documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{cases} 
text{Risorsa occupata} & Leftrightarrow  s = 0 
text{Risorsa libera}   & Leftrightarrow  s = 1
end{cases} 
]
end{document}

Correct answer by leandriis on June 5, 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