I'm trying to avoid a line break in a middle of a method name as it can be seen here:

I want PredRNN++ to remain intact. I tried using
\mbox{PredRNN++}
but then the name gets pushed out into the right margin as this:

- Why does this happen?
- How could I achieve the result of "PredRNN++" not being line-breaked?


Pred~RNN++. – Apr 05 '19 at 18:31Pred~RNN++results in a space between "Pred" and "RNN++", also it still overflows the line. – Dziugas Vysniauskas Apr 05 '19 at 18:34sloppyparrecommendation given in an answer to this question: How to avoid using \sloppy document-wide to fix overfull \hbox problems?. (Potential duplicate.) – barbara beeton Apr 05 '19 at 18:37\sloppythen more white space stretching is allowed. – David Carlisle Apr 05 '19 at 19:13\sloppyprobably does what you wanted but hard to be sure as you provided no example (it is almost always best to include a test document with the question) – David Carlisle Apr 05 '19 at 22:13