diff --git a/config/acronyms.tex b/config/acronyms.tex index ce982c3..c3f240a 100644 --- a/config/acronyms.tex +++ b/config/acronyms.tex @@ -1,6 +1,7 @@ \usepackage[% indexonlyfirst% Show only the first use page on the list of acronyms ]{glossaries} +\usepackage{xspace} % To avoid problems with missing spaces after custom commands % Set the list of acronyms style \newglossarystyle{dots}{% From https://tex.stackexchange.com/a/327513 @@ -24,7 +25,10 @@ \newcommand{\acronym}[2]{% #1 = acronym, #2 = full name \newacronym{#1}{#1}{#2}% \expandafter\newcommand\csname #1\endcsname{% Create a command named after the acronym (call \#1) - \gls{#1}% + \gls{#1}\xspace% + }% + \expandafter\newcommand\csname #1s\endcsname{% + \glspl{#1}\xspace% }% }