1

here is another question from my LateX project. Currently I'm using the package glossaries to mange my acronyms. I use some acronyms in sectionheadings. Therefore the acronym is first discribed in the table of content. After that, the section heading in the document only includes the short form. My goal is, to have the section headings in full lengt. The TOC should not "count". Here is my minimal code example to show the problem. if you remove \tableofcontents the acronym in the section heading is as i would like it. Also the \printglossaries is not working.

\documentclass[english, 12pt]{scrartcl}

\usepackage{glossaries}
\setacronymstyle{long-short}
\newacronym{NMR}{NMR}{nuclear magnetic resonance spectroscopy}

\usepackage{blindtext}

\begin{document}

\tableofcontents
\cleardoubleoddpage

\section{Data}
\subsection{\gls{NMR}}
In the Text, the \gls{NMR} entry should look like "NMR". In the section heading it should look like "Nuclear magnetic resonance spectroskopy".
\cleardoubleoddpage

\printglossaries

\end{document}
Inselino
  • 523

0 Answers0