Answer by David Carlisle for Can LuaTeX do something to alter linebreaks...
I don't think you need lua callbacks here:\documentclass{minimal}\begin{document}\binoppenalty=\maxdimen\relpenalty=\maxdimen\emergencystretch=3emA text with an inline equation which is broken in to...
View ArticleCan LuaTeX do something to alter linebreaks inside math inline automatically?
This is kind of a follow up to this question. Consider the sample code:\documentclass{minimal}\begin{document}A text with an inline equation which is broken in to two partsbut is not wanted right here...
View Article