即使有空格,水平盒子也会溢出

即使有空格,水平盒子也会溢出

为什么下面这一行会报错Overfull \hbox?因为空格太多了。

\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
To extend our example from above, consider if we only had one hierarchy, "Product Characteristics".  The segments would include \{[Overall Segment], [Sports Equipment],[Books],..., [Sports Equipment:Baseball Equipment], [Sports Equipment:Football Equipment] ,..., [Sports Equipment:Baseball Equipment:Baseball Gloves] ,..., [Sports Equipment:Baseball Equipment:Baseball Gloves:Wilson Model X]\}, where the latter is our microsegment, and the level to which the input data would be aggregated.
\end{document}

overleaf 演示

答案1

  • 冒号后面真的没有空格吗?添加它们编译不会给出任何警告或坏框。
  • 相反,...最好使用dots应该正确插入的内容, \dots,
\documentclass{article}

\begin{document}
To extend our example from above, consider if we only had one hierarchy,
"Product Characteristics".  The segments would include \{[Overall Segment],
[Sports Equipment], [Books], \dots, [Sports Equipment: Baseball Equipment],
[Sports Equipment: Football Equipment], \dots, [Sports Equipment: Baseball
Equipment: Baseball Gloves], \dots, [Sports Equipment: Baseball
Equipment: Baseball Gloves: Wilson Model X]\}, where the latter is our
microsegment, and the level to which the input data would be aggregated.
\end{document}

在此处输入图片描述

笔记:最新版本默认documentclass使用utf8编码,所以您不需要加载它。

相关内容