# Tag Info

0

With use of math environment cases* from the mathtools package: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} \phi & = \begin{cases*} 1, & if $u\geq 0$ \\ 0, & otherwise. \end{cases*} \\ f(x) & = \begin{cases*} x^2 & : $x=0$ \\ x^3 & : $y\geq$ ...

3

With the help of cases and aligned: \documentclass{article} \usepackage{amsmath} \begin{document} \nonumber A = \begin{cases} A_{1} & m=1, n=1 \\ A_{2} & 2 \leq m \leq M, n=1 \\ A_{3} & m=1, 2 \leq n \leq N \\ A_{4} & \begin{aligned} &2 \leq m \leq M, \\ &2 \leq n \leq N \end{aligned} \...

2

You can also do that with nicematrix. It's easy to program but you will need two compilations. \documentclass{article} \usepackage{amsmath} \usepackage{nicematrix} \NewDocumentCommand {\tractorQ} { m m m m } { \begin{pNiceArray}{C|C}[columns-width=auto] \multicolumn{2}{C}{#4} \\ #2 & #3 \\ \multicolumn{2}{C}{#1} \\ \end{pNiceArray}...

2


0

Hope you meant label is the equation number, if yes, please try with the following code: \documentclass{book} \usepackage{mathtools} \begin{document} $$\label{cycle LP} \begin{split} \min w^t x \\ \text{s.t.} \sum_{C \in \mathcal{C}} x_v \geq 1 \\ x \geq 0 \end{split}$$ PS: Don't use  for unnumbered ...

Top 50 recent answers are included