When creating a custom command, a simple shortcut for a text string, I get an undesired side effect
\newcommand{\test}{test}
Here the source
\test some text
\\
\test , some text
and the current output
testsome text
test, some text
How can I prevent the command from "eating" the white-space?
\test{} some textinstead of\test some text. Another solution is the xspace package : https://ctan.org/pkg/xspace – Manuel Cart Dec 30 '23 at 13:02