I found something really strange when using newcommand in latex. I wrap two pieces of text that are often show up in my article, which are,
\newcommand{\etal}{et al.}
\newcommand{\stra}{$\mathcal{S}_A$}
where the first is the abbreviation and the other is a symbol. However, when I use these two macro definion and type the following
Sentence 1: Liu \etal \cite{liu2019} did something.
Sentence 2: Liu \etal did somthing.
Sentence 3: Liu add \stra to this process.
the results are
Sentence 1: Liu et al. [1] did something.
Sentence 2: Liu et al.did something.
Sentence 3: Liu add $\mathcal{S}_A$to this process.
As you can tell, the blank after commands in the last two sentences are lost, but the space in the first sentence still exists. I am wondering how can I solve this problem.
BTW, It is not a good practice to put an extra space in the command.
citepackage. – egreg Oct 15 '20 at 07:44