作者sandwichC (没回应=挂站)
看板LaTeX
标题[问题] 常用字串用 new command 建立时的空白问题
时间Tue Nov 12 02:44:39 2013
若我想用 newcommand 为一个常用字串建立 macro,我可以用下面的方法:
\newcommand{\mystr}{the original long string}
然而,实际上使用时,"the original long string" 後面不会出现空白。
因此,若我用:
\mystr is inconvenient in typing.
会变成:
the original long stringis inconvenient in typing.
我知道可以用 \mystr\ is inconvenient in typing 来强制空白。
然而,实际上使用时常常忘记加後面的反斜线。
有没有办法可以在一般的情况下让 \mystr 的後面加空白,但若後面是句点则不加空白?谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 216.169.175.102
1F:推 sasbluesea:\xspace 11/12 12:37