I'm currently playing around with the LaTeX template for my thesis, but am at a loss as to why extra pages appear between the generated "Contents", "Glossary" and "Acronyms" lists?
Is this a problem with interference between the loaded packages, or have I forgotten something important? Can I manually suppress the creation of these extra pages by tweaking the \tableofcontents
and \printglossaries
commands?
I am running this project on Windows 7, using the TeXmaker front end... Cheers.
%% Define document class and load required packages
\documentclass{book}
\usepackage[british]{babel}
\usepackage{commath, amsmath, amsfonts, amssymb, setspace}
\usepackage{graphicx, pgfplots} \pgfplotsset{compat=newest}
\usepackage[colorlinks=true,linkcolor=red,citecolor=green, urlcolor=blue]{hyperref}
\usepackage[xindy, toc, acronym, nonumberlist, translate=babel]{glossaries} \makeglossaries
%% Define example glossary entry
\newglossaryentry{exampleglossary}{
name={Example Glossary},
description={An example glossary entry},
sort=exampleglossary
}
%% Define example acronym entry
\newacronym{exampleacronym}{EA}{Example Acronym}
%% Begin document
\begin{document}
%% Generate table of contents and glossary pages
\tableofcontents
\glsaddall \printglossaries
%% Define example chapter with hyperref links
\chapter{Chapter Title}
Example Bibliography reference \cite{examplebibliography}.\\
Example Glossary reference \gls{exampleglossary}.\\
Example Acronym reference \gls{exampleacronym}.\\
%% Define example bibliography entry and construct bibliography
\addcontentsline{toc}{chapter}{Bibliography}
\begin{thebibliography}{9}
\bibitem{examplebibliography}
author,
title,
publisher,
year.
\end{thebibliography}
%% End document
\end{document}