1

I'm having an issue where I'm fully able to create a glossary with the glossaries package, but I'm unable to change the style - the command \setglossarystyle isn't recognised.

This example works:

\documentclass{article}
\usepackage[acronym, nopostdot, nonumberlist]{glossaries}
\newacronym{acr}{acr}{Acronym}
\makeglossaries
\begin{document}

\acrshort{acr}
\printglossary[type=\acronymtype]

\end{document}

But this one fails, with an error complaining that \setglossarystyle is an undefined control sequence:

\documentclass{article}
\usepackage[acronym, nopostdot, nonumberlist]{glossaries}
\newacronym{acr}{acr}{Acronym}
\makeglossaries
\begin{document}

\acrshort{acr}
\setglossarystyle{long}
\printglossary[type=\acronymtype]

\end{document}

Am I missing a package or something somewhere?

7
  • Can you look in the .log file for glossaries.sty in order to show the version you're using? You should find a string such as Package: glossaries 2014/04/04 v4.07 (NLCT)
    – egreg
    Commented Apr 25, 2014 at 19:37
  • works fine for me - could you add \listfiles immediately before your \begin{document} and then paste the output as part of your question... sounds like an update might be in order: How do I update my TeX distribution?
    – cmhughes
    Commented Apr 25, 2014 at 19:42
  • 2
    \setglossarystyle was introduced in version v3.08a. Commented Apr 25, 2014 at 20:04
  • Yeah, I had v3.07. Updating solved the problem. Thanks! ^_^
    – Sjiveru
    Commented Apr 26, 2014 at 19:46
  • 2
    This question appears to be off-topic because it is about an issue fixed by updating the installed package version.
    – Joseph Wright
    Commented May 3, 2014 at 21:25

0

Browse other questions tagged .