避免與數學相關的 badbox

避免與數學相關的 badbox

我想學習避免這種惱人的警告:

第 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...

在此輸入影像描述

相關內容