[Tex/LaTex] printglossary acronym, display only the first appearance of arcshort in glossary

acronymsglossariesprinting

I defined acronyms like:

\newacronym{sdk}{SDK}{Software Development Kit}

use it in the text:

  • Page 3: Test test \acrshort{sdk}
  • Page 6: test test \acrshort{sdk}.
  • Page 9: Test \acrshort{sdk}

and print it like this:

\printglossary[type=\acronymtype]

with this outcome:

SDK Software Development Kit. 3, 6, 9

Question:

How can i manage to display only the first appearance?

Like this:

SDK Software Development Kit. 3

Thx in Advance.

Edit – Minimal Example:

\documentclass{memoir}

\usepackage{bookmark,hyperref}
\usepackage[toc]{glossaries}
\makeglossaries

\newacronym{sdk}{SDK}{Software Development Kit}

\begin{document}
Test \acrshort{sdk}
\newpage
Test \acrshort{sdk}.
\newpage
Test \acrshort{sdk}\newpage
Test \newpage
Test \acrshort{sdk}\newpage
Test \newpage
Test \newpage
Test \acrshort{sdk}\newpage
Test \acrshort{sdk}\newpage
\printglossary[type=\acronymtype]
\end{document}

Best Answer

Ok i figured it out..

The indexonlyfirst parameter and the switch to \gls did the trick (i custumized it so that also the short version is used the first time) as mentioned here: List of Acronyms: only first use in numberlist and table of content style dots

Solution:

\documentclass{memoir}

\usepackage{bookmark,hyperref}
\usepackage[toc,indexonlyfirst]{glossaries}
\setlength{\glslistdottedwidth}{\textwidth} % adjust to suit

\newglossarystyle{mydottedstyle}{
 \glossarystyle{list}%
 \renewcommand*{\glossaryentryfield}[5]{%
    \item[]\makebox[\glslistdottedwidth][l]{%
      \glsentryitem{##1}\glstarget{##1}{\textbf{##2} ##3}%
      \unskip\leaders\hbox to 2.9mm{\hss.}\hfill\strut}##5}%
}       
\glossarystyle{mydottedstyle}   

\renewcommand*{\CustomAcronymFields}{%
  name={\the\glsshorttok},% name is abbreviated form
  description={\the\glslongtok},% description is long form
  first={\noexpand\the\glsshorttok},%
  firstplural={\noexpand\the\glsshorttok},%
  text={\the\glsshorttok},%
  plural={\the\glsshorttok\noexpand\acrpluralsuffix}%
}   
\SetCustomStyle 

\makeglossaries 

\newacronym{sdk}{SDK}{Software Development Kit}

\begin{document}
Test \gls{sdk}
\newpage
Test \gls{sdk}.
\newpage
Test \gls{sdk}\newpage
Test \newpage
Test \gls{sdk}\newpage
Test \newpage
Test \newpage
Test \gls{sdk}\newpage
Test \gls{sdk}\newpage

\printglossary[type=\acronymtype]
\end{document}