![段落第 17-18 行的 \hbox 未满(badness 10000)](https://linux22.com/image/464654/%E6%AE%B5%E8%90%BD%E7%AC%AC%2017-18%20%E8%A1%8C%E7%9A%84%20%5Chbox%20%E6%9C%AA%E6%BB%A1%EF%BC%88badness%2010000%EF%BC%89.png)
在我的整个文档中,我经常遇到文本无缘无故散开的问题。我试图查找如何解决这个问题,但似乎没有什么办法。我附上了代码本身和结果图片。可以补充的是,即使段落没有分为两个不同的页面,也会发生这种情况。
非常感谢您的帮助!
The necessary background information collected was regarding \textit{Mobility and the implications of Value of Time}, \textit{Authority documents regarding Stockholm}, \textit{The Swedish Transport Administration}, \textit{Cooperative-Intelligent Transportation Systems} as well as the \textit{Nordic Way} and \textit{C-Roads} initiatives.
答案1
你必须非常努力才能迫使 TeX 做出那么糟糕的输出。
该行上方显示的是默认设置。
在该行下方,我禁用了连字符,要求段落比正常情况多延伸一行,并指定接受任何数量的不良空白延伸。这会产生类似于您显示的输出。
\documentclass{article}
\addtolength\oddsidemargin{-4cm}
\addtolength\textwidth{4.5cm}
\begin{document}
The necessary background information collected was regarding
\textit{Mobility and the implications of Value of Time},
\textit{Authority documents regarding Stockholm}, \textit{The Swedish
Transport Administration}, \textit{Cooperative-Intelligent
Transportation Systems} as well as the \textit{Nordic Way} and
\textit{C-Roads} initiatives.
\bigskip
\hrule
\bigskip
\hyphenpenalty=10000
\looseness=1
\tolerance=10000
The necessary background information collected was regarding
\textit{Mobility and the implications of Value of Time},
\textit{Authority documents regarding Stockholm}, \textit{The Swedish
Transport Administration}, \textit{Cooperative-Intelligent
Transportation Systems} as well as the \textit{Nordic Way} and
\textit{C-Roads} initiatives.
\end{document}