Defined \acronymname is not used in toc, but the standard "Acronyms", why?
I have defined a new name for my Acronyms list, but it the default name
("Acronyms") is used in the table of contents. Do you know how I can solve
this?
I have created a minimum working example, but it doesn't have the problem,
so here is some of my code. Is there a problem here, or should I look
somewhere else?
...
\usepackage[acronym,nonumberlist,toc]{glossaries}
\usepackage{glossary-superragged}
\makeglossaries
\renewcommand*{\acronymname}{Acronyms and Abbreviations}
\renewcommand*{\glspostdescription}{} % remove trailing dot
\renewcommand*{\glsnamefont}[1]{\textbf{#1}}
\newacronym{hci}{HCI}{Human-Computer Interaction}
\newacronym{dom}{DOM}{Document Object Model}
\newacronym{svg}{SVG}{Scalable Vector Graphics}
...
\begin{document}
\frontmatter
\includepdf[pages={-}]{front_page.pdf}
\setcounter{page}{1}
\input{abstract}
\clearpage
\tableofcontents
\printglossary[style=super, type=\acronymtype]
\input{preface}
\mainmatter
...
UPDATE:
I found a solution. I added a \addcontentsline{toc} right after I print
the acronym list.
\printglossary[style=super, type=\acronymtype]
\addcontentsline{toc}{chapter}{\acronymname}
and I removed the toc option from the glossaries package.
No comments:
Post a Comment