答案1
数学只有在关系和二元运算符处才有断点,所以它就像一个只有很少连字符点的大单词,在某些情况下同样会溢出。
您可以\sloppy
在段落周围使用,以允许空白延伸更多,或者\xlinebreak
将定义为的位置\hfil\penalty-10\hfilneg
放置在没有换行符的情况下不执行任何操作,但如果有换行符,则允许行变短,或者最后您可以在公式中引入更多可能的断点,这里我使用自由裁量权\times
\documentclass{article}
\addtolength\textwidth{-4cm}% just for the example
\newcommand\xlinebreak{\hfil\penalty-10\hfilneg}
\begin{document}
one two three four five six
one two three four five six
one two three four five six
$(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
= 6$
one two three four five six
one two three four five six
one two three four five six
one two three four five six
one two three four five six
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
one two three four five six
one two three four five six
one two three four five six
one two three four five six
\bigskip\hrule\bigskip
\begin{sloppypar}
one two three four five six
one two three four five six
one two three four five six
$(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
= 6$
one two three four five six
one two three four five six
one two three four five six
one two three four five six
one two three four five six
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
one two three four five six
one two three four five six
one two three four five six
one two three four five six
\end{sloppypar}
\bigskip\hrule\bigskip
one two three four five six
one two three four five six
one two three four five six
\xlinebreak
$(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
(a_{i}b_{j})(a_{i}b_{j})(a_{i}b_{j})
= 6$
one two three four five six
one two three four five six
one two three four five six
one two three four five six
one two three four five six
\xlinebreak
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
one two three four five six
one two three four five six
one two three four five six
one two three four five six
\bigskip\hrule\bigskip
one two three four five six
one two three four five six
one two three four five six
$(a_{i}b_{j})\*(a_{i}b_{j})\*(a_{i}b_{j})\*(a_{i}b_{j})\*
(a_{i}b_{j})\*(a_{i}b_{j})\*(a_{i}b_{j})\
= 6$
one two three four five six
one two three four five six
one two three four five six
one two three four five six
one two three four five six
xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx\-xx
one two three four five six
one two three four five six
one two three four five six
one two three four five six
\end{document}