下面是一个 MWE,其中给出了两种在句末写等式的方法:
\documentclass{article}
\begin{document}
This is a sentence ending with $V$. This is the following sentence. Lorem ipsum dolor sit amet.
This is a sentence ending with $V.$ This is the following sentence. Lorem ipsum dolor sit amet.
\end{document}
这两个版本的间距都不令人满意。第一个版本中,“V”和句号之间的间距太大,第二个版本中句号后面的额外间距消失了。这种情况下,正确的/典型的/惯用的方式是什么,才能使间距正确?
答案1
答案2
我敢说最精确的解决方案是添加额外的句末等式后的标点符号空格。
这个额外的标点符号空间存储在相关的字体尺寸之一中\fontdimen<number><font>
,具体存储在\fontdimen7\font
(参见《LaTeX Companion》第 2 版第 428 页)
\hspace{\fontdimen7\font}
因此,在公式后面添加空格,可以重现额外句号空格的效果。
\documentclass{article}
\begin{document}
This is a sentence ending with $V$. Next sentence.
This is a sentence ending with $V.$ Next sentence.
This is a sentence ending with $V.$\hspace{\fontdimen7\font} Next sentence.
\end{document}
This is a sentence ending with $V.$\hspace{\fontdimen7\font} This is the following sentence. Lorem ipsum dolor sit amet.
\end{document}