I have a text inside mathmode in latex and I would like the text to be separated from the equation with some spaces. How can I do this? Example code below
\begin{gather*}
A^2 = B^2 + C^2 \text{[Pythagaros theorem]}
\end{gather*}
I have a text inside mathmode in latex and I would like the text to be separated from the equation with some spaces. How can I do this? Example code below
\begin{gather*}
A^2 = B^2 + C^2 \text{[Pythagaros theorem]}
\end{gather*}
\hspace{<len>}between the two elements, where<len>is something like2cm. – Werner Apr 22 '21 at 16:51\quador\qquad. Whatever suits you. – SebGlav Apr 22 '21 at 16:53\quadand\qquadto keep these spaces unified. Learning them to use\hspaceis just opening up a can of worms – daleif Apr 22 '21 at 16:54\[ <eqn> \qquad \makebox[0pt][l]{<text>} \]. If you want it flush with the right margin, you can use\tag*{<text>}. – Werner Apr 22 '21 at 17:08