[Tex/LaTex] Putting text next to an equation without moving the equation to the side


I want to write something like:

f(x)=y \quad \text{(This is the equation lala)}

But this essentially moves the equation out of the center.
I don't want the equation not being centered anymore. I rather want the text on the right of the centered equation. Is there an easy solution (like naming an equation and letting that appear somehow…)?

Best Answer

So you want to align something?

f(x)&=y &&\text{tralala}

if you want to stick with equation you could simply tell latex to ignore the width of the text

f(x)=y \rlap{\quad \text{tralala}}
Related Question