我发现文档中句号后面的多余空格让我很烦,所以我用 将其关闭\frenchspacing
。然而,我惊讶地发现我有点怀念这个空格。没有\frenchspacing
我的句子之间相距太远,但有了它,它们感觉有点拥挤。
因此,尽管这可能有点离经叛道,但我希望在句号后添加一些额外的空格,但不要像默认的那么多。如果可能的话,我希望能够设置一个最大值,例如,无论它延伸多少,它都不会比正常空格宽 1.5 倍以上。我该如何实现这一点?
答案1
减少周期的空间因子代码;其默认值为3000。进行比较:
\documentclass{article}
\begin{document}
\bigskip
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
\sfcode`.=1500
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
\sfcode`.=1200
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
Sentence ending period. Period.
Another sentence, a bit longer.
\end{document}