避免在行中使用数学符号

避免在行中使用数学符号

我想学习如何避免这些烦人的警告:

段落第 6-7 行的 \hbox 过满(宽 11.18448pt)

最简单的文档:

\documentclass[a4paper, 10pt]{article}

\begin{document}
That is to say, an inertial reference $P$ is like an affine reference $(p_0;v_0,v_1,v_2,v_3)$ such that $\{v_0,v_1,v_2,v_3\}$ is a positively oriented basis of $E$, vector $e_0$ is oriented to the future and...
\end{document}

给我

在此处输入图片描述

如果我将\break以下内容添加到“引用”,它仍然会发出警告。那么,我该如何解决这个警告?(事实上,我的文档里满是这样的!我只是想摆脱它们)

答案1

您可以使用\sloppy它在拉伸空白方面提供更多的灵活性,但在这里它需要拉伸得比\sloppy允许的更多,所以您会收到有关盒子未满的警告(而且看起来很糟糕)。

\sloppy
That is to say, an inertial reference $P$ is like an affine reference 
$(p_0;v_0,v_1,v_2,v_3)$ such that $\{v_0,v_1,v_2,v_3\}$ is a positively
oriented basis of $E$, vector $e_0$ is oriented to the future and...

在此处输入图片描述

警告

Underfull \hbox (badness 1888) in paragraph at lines 5--6
[]\OT1/cmr/m/n/10 That is to say, an in-er-tial ref-er-ence $\OML/cmm/m/it/10 P
$ \OT1/cmr/m/n/10 is like an affine ref-er-ence

对于这么短的段落,如果包含大量不可拆分的单元,TeX 会比较吃力,所以你可能需要给它一点帮助,要么接受上述的拉伸版本,要么手动添加拆分

例如,没有\sloppy但强制休息

That is to say, an inertial reference $P$ is like an affine reference
$(p_0;\break v_0,v_1,v_2,v_3)$ such that $\{v_0,v_1,v_2,v_3\}$ is a
positively oriented basis of $E$, vector $e_0$ is oriented to the future and...

在此处输入图片描述

相关内容