I am trying to use \acf
of the glossaries package in a \section
command.
In my TOC I always get displayed the id, not the content. The generated section in the document works fine.
I was trying to use \protect
but it doesn't work for me.
Is there no possibility like with a glossary entry \glsentryfirst
?
Here my mini example:
\documentclass{scrartcl}
\usepackage[pdfdisplaydoctitle=true,%
pdfstartview={Fit},%
bookmarksopen,%
colorlinks=true,%
linkcolor=blue,%
urlcolor=red,%
citecolor=blue]%
{hyperref}
\usepackage[nonumberlist,%
acronym,%
shortcuts, %
toc,
numberedsection]
{glossaries}
\makeglossaries
\newacronym{pus}{PUS}{\protect\glsadd{glos:pus}\glshyperlink[Packet Utilisation Standard]{glos:pus}}
\newglossaryentry{glos:pus}{name=PUS,description={\acl{pus} \ldots}}
\begin{document}
\tableofcontents
\section[\glsentrylong{pus}]{\acl{pus}}
text
\ac{pus}
\newpage
\printglossary[type=\acronymtype]
\end{document}
acronym.tex
andglossaries.tex
are missing. Just extract from them the necessary bits.