Preventing Line Breaks of Equations in Latex

I learned a new Latex trick today. Sometimes you have math notation inline with text, like when you use $…$. Sometimes with long equations, however, you get line breaks. Like if you have $a+b+c+d+e$, it might happily break it into $a+b+c$ and $+d+e$ on the next line. This is ugly, but using tildes as in normal text doesn’t do the right thing for spacing. The way around this is to also include curly braces like ${a+b+c+d+e}$.

Leave a Reply

You must be logged in to post a comment.