This MWE


v\left(C\right) = \left\{ 
\begin{array}{l l}
\!\!k\left(C\right), &\text{if $C\cap\mathcal{D}=\emptyset$}\\
\!\!\underbrace{t(P^*_C) + c\left(P^*_C\right) + f\left(P^*_C\right) + \theta_C\left(P^*_C,\tau^*_C\right)}_{cost(P^*_C,\tau^*_C)}, &\text{otherwise}.

produces this output

enter image description here

How can I achieve something like this instead?

enter image description here


1 Answer 1


Smash the underbrace, but add some vertical space below it:


v(C) =
\,k(C) & \text{if $C\cap\mathcal{D}=\emptyset$,}\\[1ex]
\,\vphantom{t(P^*_C)}% set the depth
    t(P^*_C) + c(P^*_C) + f(P^*_C) + \theta_C(P^*_C,\tau^*_C)
} &\text{otherwise.}

enter image description here

Note: I have removed all useless \left and \right (in this case all of them). Also I have several doubts about MnSymbol that outputs math symbols that don't match Computer Modern.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .