Fix latex format

This commit is contained in:
2024-09-24 11:27:30 +02:00
parent 8887bd07b9
commit 964681c2ec
8 changed files with 143 additions and 145 deletions

View File

@@ -1,21 +1,21 @@
\usepackage[%
indexonlyfirst% Show only the first use page on the list of acronyms
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
\setglossarystyle{list}% Base style
%
\renewcommand*{\glossentry}[2]{%
\item[%
\upshape\bfseries% Upright and bold
\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}% The acronym
]%
\glossentrydesc{##1}% The description
\unskip\leaders\hbox to 2.9mm{\hss.}\hfill##2}% The pages
%
\renewcommand*{\glsgroupskip}{}% No gap between groups
\setglossarystyle{list}% Base style
%
\renewcommand*{\glossentry}[2]{%
\item[%
\upshape\bfseries% Upright and bold
\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}% The acronym
]%
\glossentrydesc{##1}% The description
\unskip\leaders\hbox to 2.9mm{\hss.}\hfill##2}% The pages
%
\renewcommand*{\glsgroupskip}{}% No gap between groups
}
\setglossarystyle{dots}
@@ -23,13 +23,13 @@
% Define the acronyms
\NewDocumentCommand{\acronym}{O{#2} m m}{% #1 = command, #2 = acronym, #3 = full name
\newacronym{#1}{#2}{#3}%
\expandafter\newcommand\csname #1\endcsname{% Create a command named after the acronym (call \#1)
\gls{#1}\xspace%
}%
\expandafter\providecommand\csname #1s\endcsname{% Create a plural command (call \#1s) if not already defined
\glspl{#1}\xspace%
}%
\newacronym{#1}{#2}{#3}%
\expandafter\newcommand\csname #1\endcsname{% Create a command named after the acronym (call \#1)
\gls{#1}\xspace%
}%
\expandafter\providecommand\csname #1s\endcsname{% Create a plural command (call \#1s) if not already defined
\glspl{#1}\xspace%
}%
}
% Style the acronyms