8

How do I handle the possessive form of an acronym using the acronym package?

Acronym definition:

\begin{acronym}
\acro{FBI}{Federal Bureau of Investigation}
\end{acronym}

Usage:

The \ac{FBI}'s plan. The \ac{FBI}'s plan.

Result:

The Federal Bureau of Investigation (FBI)'s plan. The FBI's plan.

The short form is right, but the long form is wrong.

Bernard
  • 271,350
Morgoth
  • 233
  • What is the correct long form? – Paul Gaborit Feb 21 '18 at 15:23
  • 3
    @PaulGaborit With the glossaries package, The \ac{FBI}['s] plan. The \ac{FBI}['s] plan. would produce "The Federal Bureau of Investigation’s (FBI) plan. The FBI’s plan." I'm not sure if that's the official correct long form, but it looks better than having the apostrophe after the parentheses. – Nicola Talbot Feb 21 '18 at 15:30

1 Answers1

8

Here's a method that defines the command \acposs which will expand to long's (short) on first use and short's on next use:

\documentclass{article}

\usepackage{acronym}

\makeatletter \newcommand{\acposs}[1]{% \expandafter\ifx\csname AC@\AC@prefix#1\endcsname\AC@used \acs{#1}'s% \else \aclu{#1}'s (\acs{#1})% \fi } \makeatother

\begin{document} \begin{acronym} \acro{FBI}{Federal Bureau of Investigation} \end{acronym}

The \acposs{FBI} plan. The \acposs{FBI} plan.

\end{document}

FBI Federal Bureau of Investigation The Federal Bureau of Investigation’s (FBI) plan. The FBI’s plan.

If you prefer long's (short's) then use the following definition instead:

\newcommand{\acposs}[1]{%
 \expandafter\ifx\csname AC@#1\endcsname\AC@used
   \acs{#1}'s%
 \else
   \aclu{#1}'s (\acs{#1}'s)%
 \fi
}
Nicola Talbot
  • 41,153