[問題] 常用字串用 new command 建立時的空白問題
若我想用 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
推
11/12 12:37, , 1F
11/12 12:37, 1F
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章