I asked a question yesterday and I managed to find a working albeit manual solution to preserving spaces after commands based off this answer, option 2.
Definition: \newcommand{\fox}{quick brown fox}
The \fox{}, jumped over the lazy dog.
Should evaluate to: The quick brown fox, jumped over the lazy dog.
And The \fox{} jumped over the lazy dog.
Should evaluate to: The quick brown fox jumped over the lazy dog.
If I use the control word \fox a whole lot in my document, how do I get it to automatically include the {} so I don't have to find and replace every instance of the command I write?
Thank you
\xspaceafterfoxin the command definition (loading thexspacepackage). – Bernard Aug 03 '19 at 16:33\xspacefor many years but now just use{\fox., This should yield the results you desire without requiring\xspace`. – Peter Grill Aug 03 '19 at 19:16\xspaceas the last thing in the definition, otherwise it does nothing useful. – David Carlisle Aug 03 '19 at 20:34