下面代码的结果是,第二行和第三行如预期一样右对齐,但第一行末尾的单词“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}