From a90e19f03a8a6168cd64a0f1f939cf5952593b44 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Sat, 10 Aug 2024 17:25:47 +0200 Subject: [PATCH] Fix space and plural in acronyms --- config/acronyms.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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% }% }