为什么单词会延伸到右边距?

为什么单词会延伸到右边距?

下面代码的结果是,第二行和第三行如预期一样右对齐,但第一行末尾的单词“them”(紧接着“checked”)向该垂直线的右侧延伸了“m”的宽度。为什么会出现这种情况?

\documentclass[12pt]{article}

\usepackage{fullpage}

\setlength{\parindent}{3mm}
\setlength{\parskip}{12pt}

\newenvironment{qwote}
{\begin{quote}\setlength{\parskip}{5pt}\setlength{\parindent}{6mm}}
{\end{quote}}


\begin{document}

\begin{description}

\item [Chapter 6, ``Spaceman'' Jones. page 59.]

\begin{qwote}
The crewman who had checked them into the ship told
them to follow him; he led them to the Purser's office.
\,\dots\, Max surrendered his forged personal record
book, while feeling as if the deception were stamped
on it in bold letters.
\end{qwote}

\end{description}

\end{document}

答案1

如果您的解决方案可能仅限于pdflatex,那么microtype对参数进行一些调整的包在光学上似乎比使用更好\sloppy

\documentclass[12pt]{article}

\usepackage{fullpage}
\usepackage[stretch=20,shrink=50]{microtype} % PS

\setlength{\parindent}{3mm}
\setlength{\parskip}{12pt}

\newenvironment{qwote}
{\begin{quote}\setlength{\parskip}{5pt}\setlength{\parindent}{6mm}}
{\end{quote}}

\overfullrule5pt % PS
\begin{document}

\begin{description}

\item [Chapter 6, ``Spaceman'' Jones. page 59.]

\begin{qwote}
The crewman who had checked them into the ship told
them to follow him; he led them to the Purser's office.
\,\dots\, Max surrendered his forged personal record
book, while feeling as if the deception were stamped
on it in bold letters.
\end{qwote}

\end{description}

\end{document}

在此处输入图片描述

答案2

tex 确实在日志中警告说它无法找到拆分该段落的方法,有几种可能性,最简单的方法是使用\sloppy允许空白有更多变化的方法。

\newenvironment{qwote}
{\begin{quote}\sloppy\setlength{\parskip}{5pt}\setlength{\parindent}{6mm}}
{\end{quote}}

在此处输入图片描述

相关内容