diff --git a/paper.tex b/paper.tex index 7d27c46..1f7384a 100644 --- a/paper.tex +++ b/paper.tex @@ -57,6 +57,7 @@ \usepackage{xspace} \usepackage{marginnote} \usepackage{etoolbox} +\usepackage[acronym,shortcuts]{glossaries} \input{tex/setup.tex} \input{tex/acm.tex} @@ -103,6 +104,8 @@ \createtodoauthor{authorFive}{pairedFiveLightRed} \createtodoauthor{authorSix}{pairedSixDarkRed} +\newacronym{ir}{IR}{Intermediate Representation} + \graphicspath{{./images/}} % Define macros that are used in this paper @@ -645,6 +648,17 @@ \subsubsection{Prefer meaningful text over citations as textual content} $\to$ {\color{pairedFourDarkGreen}\textit{we extend PreviousIdea [1] by}} +\subsubsection{Managing acronyms automatically} +Managing acronyms manually can lead to situations where the specific term is not properly expanded upon first use or when it is introduced. +The \texttt{acronym} package is useful to avoid such situations and provides full control over acronyms. +For example, assume we have defined an acronym with \texttt{\textbackslash{}newacronym\{ir\}\{IR\}\{Intermediate Representation\}}: +\begin{itemize} + \item Upon first use of \texttt{\textbackslash{}ac\{ir\}} we get: \ac{ir}. + \item On the second reference: \ac{ir}. + \item If we need to force expansion for a figure or a background section where the term is first described, we can use \texttt{\textbackslash{}acf\{ir\}} which gives: \acf{ir}. + \item We can obtain plural form using \texttt{\textbackslash{}acp\{ir\}} giving: \acp{ir}. +\end{itemize} + \end{draftonly}