I tried to look for similar question, but none of them seems to have the same issue. I'm using the glossaries package and I followed the tutorials on how to use it (see code). The only different thing is that I want to print the glossary after the table of contents page and not a the very end of the document.
% header.tex
\documentclass[a4paper,11pt,twoside,english]{book}
\usepackage[a4paper,left=3.5cm,right=2.5cm,bottom=3.5cm,top=3cm]{geometry}
\usepackage[english]{babel}
\usepackage[pdftex]{graphicx,color}
\usepackage{amsmath,amssymb,subfigure}
% Abkuerzungsverzeichnis
\usepackage[nonumberlist,toc]{glossaries}
\makeglossaries{}
\newglossaryentry{DSL}{name={DSL},description={Domain-Specific Language}}
\newglossaryentry{Bbb}{name={BBB},description={Second abbreviation}}
\newglossaryentry{Ccc}{name={CCC},description={Third abbreviation}}
% Theorem-Umgebungen
\usepackage[amsmath,thmmarks]{ntheorem}
% Korrekte Darstellung der Umlaute
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% main.tex
\include{header}
\begin{document}
\input{kapitel/frontpage}
\blankpage{}
\pagenumbering{roman}
\tableofcontents
\cleardoublepage{}
% Glossary
\printglossary[title=Special Terms, toctitle=List of terms]
\clearpage
\pagenumbering{arabic}
% Chapters
\setlength{\parskip}{1em plus0.1em minus0.1em}
\input{kapitel/introduction}
\input{kapitel/chapter2}
\input{kapitel/chapter3}
\input{kapitel/chapter4}
\input{kapitel/evaluation}
\input{kapitel/futurework}
\input{kapitel/relatedwork}
\input{kapitel/conclusion}
% Appendix
\appendix
\input{kapitel/appendix}
\clearpage
% list of figures
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\cleardoublepage{}
% list of algorithms
\listofalgorithms{}
\addcontentsline{toc}{chapter}{List of Algorithms}
\cleardoublepage{}
% Literaturverzeichnis
\bibliographystyle{gerplain}
\bibliography{literatur/diplom}
\addcontentsline{toc}{chapter}{\bibname}
% Erklaerung
\thispagestyle{myheadings}
\markboth{}{DECLARATION}
\addcontentsline{toc}{chapter}{Declaration}
\input{kapitel/declaration}
\cleardoublepage{}
\end{document}
the glossary won't show up unless it is placed right before \end{document}
, can I fix it, so that it'll show up? Thanks for any help!
\documentclass{book} \usepackage{glossaries} \makeglossaries \newglossaryentry{DSL}{name={DSL},description={Domain-Specific Language}} \begin{document} \printglossary \gls{DSL} \appendix \cleardoublepage \end{document}
.