为什么下面这一行会报错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}
答案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
编码,所以您不需要加载它。