Is there a way to instruct LaTeX to ignore the text in the \underbrace
for purposes of kerning the equation in math mode?
\begin{align}
&x
\underbrace{(4-3y)}_
{\text{Positive $\forall y \in [0,1]$}}
+4y -1
\end{align}
I know that I can use \mkern-30
:
\begin{align}
x
\mkern-30 % Adding this is a sub-par solution
\underbrace{(4-3y)}_
{\text{Positive $\forall y \in [0,1]$}}
\mkern-26 % Adding this is a sub-par solution
+4y -1
\end{align}
but finding the exact number to work out how to fix the kerning is obviously not fun.
Is there a better way?
mathtools
and its\mathclap{...}
macro:\underbrace{....}_{\mathclap{...}}
, and next time please post a full minimal example, not just a sniplet, then it is a lot easier for others to test your code