Skip to content

Commit

Permalink
Use acronym package
Browse files Browse the repository at this point in the history
  • Loading branch information
compor committed Mar 28, 2024
1 parent 4d60865 commit 9729f64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
\usepackage{xspace}
\usepackage{marginnote}
\usepackage{etoolbox}
\usepackage[acronym,shortcuts]{glossaries}

\input{tex/setup.tex}
\input{tex/acm.tex}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}


Expand Down

0 comments on commit 9729f64

Please sign in to comment.