0

Is there a way to have glossaries identify \acrshort{foo} as the first time use (if it is indeed the first time it is used), so that following \gls{foo}

MWE:

\documentclass{report}
\usepackage{glossaries}

\newacronym{a}{foo}{Foo foo foo}

\begin{document}
    I would like for this acronym, \acrlong{a} (\acrshort{a}, something to say about it), to count as first time use, so I can do \gls{a} for the rest of the text.
\end{document}
2

If I understand you correctly, you want to automatically unset the glossary entry when using \acrshort. This can be achieved by adding

\makeatletter
  \pretocmd\@acrshort{\glsunset{#2}}{}{}
\makeatother

to your preamble.

  • Yup, just what I needed! – ralk912 Jul 23 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.