Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When using the acronym option of the glossaries-package, the first use of an acronym results in the display of

Long Entry (Short Entry)

I want to disable this globally. I know, I could just solve this by changing my entries for every single acronym. But I don't want to do this. There has to be some kind of command to do this?

\documentclass{article}
\usepackage[acronym, shortcuts]{glossaries}      
\makeglossaries
\begin{document}
\printglossaries
\newacronym{key}{Short Entry}{Long Entry}

The first use of $\backslash $ac\{key\} displays ''Long Entry (Short Entry)'', but should only display ''Short Entry''.

\end{document}
share|improve this question
1  
$\backslash $ should be \textbackslash, or just write \verb|\ac{key}|. –  Martin Scharrer May 9 '11 at 10:24
add comment

2 Answers

up vote 3 down vote accepted

If you only want the short entry use \acs{key} instead. You could say \let\ac\acs to make \ac equivalent to \acs, but this might cause trouble. Better is to search&replace existing \ac with \acs.

share|improve this answer
    
As I don't want to replace every entry, I tried the redefinition and it seems to work fine. –  meep.meep May 9 '11 at 12:10
add comment

Actually glossaries has commands for this. See Page 105 of the user manual.

The command suitable for this would be \glsunsetall.

\documentclass{article}
\usepackage[acronym, shortcuts]{glossaries}      
\makeglossaries
\begin{document}
\printglossaries
\newacronym{key}{Short Entry}{Long Entry}
\glsunsetall

The first use of $\backslash $ac\{key\} displays ''Long Entry (Short Entry)'', but should only display ''Short Entry''. \ac{key}

\end{document}

If you would like to limit this to your acronyms glossary (for whatever reason) you could try \glsunsetall[acronym] or \glsunsetall[\acronymtype] however these resulted in not ending latex runs on my system.

To use this for single entries use \glsunset{<key>} or see the manual under 14 Unsetting and Resetting Entry Flags

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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