I'm writing a document (double columned, if it matters), and it seems that while normal text wraps just fine to fit the structure, when I use inline math, it tends to violate the page margins.
For example, in the image below, the R_{uniform} part should begin at a new line, as it has no room at the current line.
The code used for this theorem is:
\begin{theorem}\label{thm:different-qualities-improved-ranker}
There exists a \frf{} $\UniformRanking$ such that for any \qm{} $\qualityMatrix
\in[0,1]^{[2]\times[2]}$, the \diffqpg{} \DQPGDEF[\dqpg][2][2][\qualityMatrix]
[\UniformRanking] achieves \poa{} of at most $1.7$.
\end{theorem}
Where
\newcommand{\UniformRanking}{R_{uniform}}
Is the command for R_{uniform}.
How do I force it to start a new line when needed, but never to exceed the line length?
R_{uniform}}
as soon as I saw your image my head screamed No! math italic is designed to make adjacent letters not look like a word but as a product of variables so never use it for multi-letter words, useR_{\mathit{uniform}}
and see the massive space aroundf
go....