Skip to content

Commit

Permalink
[chap.03, 05] 标记 Underfull \hbox 警告
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-zeng committed Nov 20, 2021
1 parent ba93876 commit 6aed5f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/chap/chap.03.elements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,9 @@ \subsection{水平盒子}\label{subsec:mbox}

\cmd{makebox} 更进一步,可以加上可选参数用于控制盒子的宽度 \Arg{width},以及内容的对齐方式 \Arg{align},
可选居中 \texttt{c}(默认值)、左对齐 \texttt{l}、右对齐 \texttt{r} 和分散对齐 \texttt{s}%
\footnote{分散对齐方式强行拉开单词的间距,往往会报 \texttt{Underfull} \cmd{hbox} 的消息。}。
\footnote{分散对齐方式强行拉开单词的间距,往往会报 \texttt{Underfull} \cmd{hbox} 的警告。}。

% 此处会有 Underfull \hbox 警告
\begin{example}
|\mbox{Test some words.}|\\
|\makebox[10em]{Test some words.}|\\
Expand Down
2 changes: 1 addition & 1 deletion src/chap/chap.05.style.tex
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ \subsection{利用 \pkg{geometry} 宏包设置页面参数}\label{subsec:geometr
\subsection{页面内容的垂直对齐}\label{subsec:raggedbottom}

\LaTeX{} 默认将页面内容在垂直方向分散对齐。对于有大量图表的文档,许多时候想要做到排版匀称的页面
很困难,垂直分散对齐会造成某些页面的垂直间距过宽,还可能报大量的 \verb|Underfull \vbox| 消息
很困难,垂直分散对齐会造成某些页面的垂直间距过宽,还可能报大量的 \verb|Underfull \vbox| 警告
\LaTeX{} 还提供了另一种策略:将页面内容向顶部对齐,给底部留出高度不一的空白。

\cmdindex{raggedbottom, flushbottom}
Expand Down

0 comments on commit 6aed5f5

Please sign in to comment.