How can I have multiple lines for the underbrace label?
--\/--
A cost
[A]
This is a some dummy equation to show what I already have.
\documentclass[twocolumn]{article}
\usepackage{color, etoolbox, lipsum, mathtools, geometry}
\usepackage{cuted, textcomp, setspace, longtable, tabularx, array}
\begin{document}
\twocolumn[
{
\begin{equation}
c()=
\begin{cases}
\underbrace{A'^{hr} \cdot Z^{\text{g}}}_{\textsubscript{A\ cost}}
+ \underbrace{f(\Upsilon'^{hr}) \cdot ~'^{\text{get}} \cdot F^{ca}}_{\textsubscript{B\ cost}}
+ \underbrace{B'^{\text{get}} \cdot F^{t}}_{\textsubscript{C\ cost}}
\right) & \text{if}\ B'^{\text{r}}=0 \\
1 & \text{otherwise.}
\end{cases}
\end{equation}
}\bigskip]
\end{document}
With following output:
Wanted output, where under A cost there is [A] | under B cost there is [B] | under C cost there is [C]:




\\did not helped but\atop\text{}help to solve the issue I was having – alper May 05 '22 at 10:53\textshould not be used for things like\text{get}etc. It does not do what you might think (write stuff upright, try addit\itshapebefore\begin{equation}). Use\textrmor\mathrminstead. – daleif May 05 '22 at 10:59text{}seemed more compact thanmathrmthats why I used it. Should I do\text{\itshape get }}or just\atop\mathrm{}? Simple example would be appreciated. Is it also ok to use\textsubscript{}for the text under the underbrace – alper May 05 '22 at 11:19\mathrmor\textrminstead of\text. – daleif May 05 '22 at 11:51