0

I'm looking for a way to use the acronym package a little different:

normal:

\documentclass[12pt,a4paper]{scrartcl}

\usepackage{acronym}

\begin{document}
\begin{acronym}
    \acro{snrk}[SnRK]{Sucrose non-fermenting Receptor Kinase}
\end{acronym}
The \ac{snrk}2.2 is very important in signalling...
\end{document}

normal result: The Sucrose non-fermenting Receptor Kinase (SnRK)2.2 is very important in signalling...

__

what I want:

The SnRK2.2 (Sucrose non-fermenting Receptor Kinase) is very important in signalling...

__

Does anyone knows a way how to realize this? Thanks to everyone!

1
  • please complete your MWE.
    – naphaneal
    Mar 27, 2019 at 15:54

2 Answers 2

0

Add the following code to your preamble after loading the acronym package:

\makeatletter
\renewcommand\@acf[1]{%
    \acffont{%
        \AC@acs{#1}%
        \nolinebreak[3]%
        \acfsfont{(\acsfont{\AC@placelabel{#1}\AC@acl{#1}})}%
    }%
  \ifAC@starred\else\AC@logged{#1}\fi
}
\makeatother

The full code:

\documentclass{scrartcl}
\usepackage{acronym}
\makeatletter
\renewcommand\@acf[1]{%
    \acffont{%
        \AC@acs{#1}%
        \nolinebreak[3]%
        \acfsfont{(\acsfont{\AC@placelabel{#1}\AC@acl{#1}})}%
    }%
  \ifAC@starred\else\AC@logged{#1}\fi
}
\makeatother
\begin{document}
\begin{acronym}
    \acro{myacronym}[short]{Long long long}
\end{acronym}

\ac{myacronym}, \ac{myacronym}
\end{document}
0

Just use \acf{YOUR ACRONYM}. It prints out the whole acronym aka the long version. https://github.com/oetiker/acronym/blob/master/acronym.dtx L215

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .