0

I would like to add a glossary page to an existing document class for my thesis. I have not edited .cls files before but I have made an attempt at understanding how other pages (e.g. lists of figures) have been created and tried to copy the workflow.

The template I am working from is available here

The original .cls had the following to create a list of figures:

\let\TEMPlistoffigures\listoffigures
\renewcommand\listoffigures{
  \clearemptydoublepage  %%% <<< Removing causes page number problems
  \providecommand\phantomsection{} \phantomsection
  %\addcontentsline{toc}{part}{List of Figures}
  \setlength{\cftbeforefigskip}{-.5em}
  \renewcommand\cftfigafterpnum{\vskip1em\par}
  \TEMPlistoffigures
}
\let\mylistoffigures\listoffigures

Which is then used in the .tex as:

% Make the list of figures
 \mylistoffigures
 \thispagestyle{plain}

and so I adapted this to add a glossary using the glossaries-extra package:

\let\TEMPmakeglossaries\makeglossaries
\renewcommand{\makeglossaries}{
  \clearemptydoublepage
  \providecommand\phantomsection{} \phantomsection
  \setlength{\cftbeforetabskip}{-.5em}
  \renewcommand\cfttabafterpnum{\vskip1em\par}
  \TEMPmakeglossaries
}
\let\mymakeglossaries\makeglossaries

With the following in the .tex:

\mymakeglossaries
\thispagestyle{plain}

So far this gets me a blank page upon which I would like to call my glossary using \printglossary[title=List of Abbreviations, type=\acronymtype]

I cannot figure out where \printglossary should go in order to achieve my goal, or where other optional arguments like \glssetcategoryattribute{acronym}{glossdesc}{firstuc} should be placed.

Any guidance or resources would be much appreciated! I hope that my question is clear and that I have not left anything out that should have been included. I am a newcomer to Latex so it isn't clear to me what is and isn't obvious.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.