在我的整个文档中,我经常遇到文本无缘无故散开的问题。我试图查找如何解决这个问题,但似乎没有什么办法。我附上了代码本身和结果图片。可以补充的是,即使段落没有分为两个不同的页面,也会发生这种情况。
非常感谢您的帮助!
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}