$V$
如果我认为和,
之间的空格太多$V$,
,那么减少空格的最佳方法是什么?使用 似乎很安全\kern
,但使用 却不安全\hspace
,因为如果使用 ,和\hspace
之间的线可能会断开:$V$
,
\documentclass{article}
\begin{document}
%line broken between $V$ and ,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
For all $V$\hspace{-1pt}, the theorem holds.
%line broken between "all" and "$V$\kern-1pt,"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
For all $V$\kern-1pt, the theorem holds.
\end{document}
但还有更好的方法吗?
答案1
我只是想\!
在数学模式里面插入一个负空格V
。
例子
\documentclass{article}
\pagestyle{empty}% for cropping
\newcommand\linefill{\par~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
\begin{document}
%line broken between $V$ and ,
\linefill
For all $V$\hspace{-1pt}, the theorem holds.
%line broken between "all" and "$V$\kern-1pt,"
\linefill
For all $V$\kern-1pt, the theorem holds.
%line broken as requested
\linefill
For all $V\!$, the theorem holds.
%line breaking without negative space
\linefill
For all $V$, the theorem holds.
\end{document}
输出
答案2
另一种方法是使用$V,$
语义上可疑的斜体逗号,因为它使用数学斜体逗号而不是文本字体中的逗号,但它确实允许自动添加指定的字体字距(此处为 \kern-1.66667)