For regular inline math that you want to never break across the line boundary, you could use \\mbox{$... $} .