I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm using my university thesis class (ut-thesis
) which from my understanding is based on the report
class.
My questions (and yes I am a complete newbie) are, given the setup at the answer above:
- How can get the appendices to show up as PDF bookmarks? The hyperlink from the list to the page is already working. I'm just missing the bookmark.
- My appendices have the previous section's header (Bibliography) starting from the second page of the chapter. How can I have this be the correct Appendix X heading?
Here is the code from that previous post. The only modification I made was to change the section to chapter (as the UTthesis.cls
has chapters) and subsection to section. It is included as a separate file called commands.
\newcommand{\listappendixname}{List of Appendices}
\newlistof{appendix}{app}{\listappendixname}
\setcounter{appdepth}{2}
\renewcommand{\theappendix}{\Alph{appendix}}
\renewcommand{\cftappendixpresnum}{Appendix\space}
\setlength{\cftbeforeappendixskip}{\baselineskip}
\setlength{\cftappendixnumwidth}{1in}
\newlistentry[appendix]{subappendix}{app}{1}
\renewcommand{\thesubappendix}{\theappendix.\arabic{subappendix}}
\renewcommand{\cftsubappendixpresnum}{Appendix\space}
\setlength{\cftsubappendixnumwidth}{1in}
\setlength{\cftsubappendixindent}{0em}
\newcommand{\myappendix}[1]{%
\refstepcounter{appendix}%
\chapter*{Appendix \theappendix\space #1}%
\addcontentsline{app}{appendix}{\protect\numberline{\theappendix}#1}%
\par
}
\newcommand{\subappendix}[1]{%
\refstepcounter{subappendix}%
\section*{\thesubappendix\space #1}%
\addcontentsline{app}{subappendix}{\protect\numberline{\thesubappendix}#1}%
}
Also if it is helpful here is an example of my appendix file called JaccardCode
\myappendix{Code for Extension of Measure}
\begin{lstlisting}
code
\end{lstlisting}
And finally here is a stripped down version of my main file. My apologies if I included too much information, as a newbie I just wasn't sure what would be useful.
\documentclass[]{ut-thesis}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tocloft}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{subfig}
\usepackage{listings}
\usepackage{xr-hyper}
\usepackage[colorlinks=true, allcolors=black]{hyperref}
\degree{Doctor of Philosophy}
\department{Computer Science}
\gradyear{1999}
\author{Fran\c{c}ois Pitt}
\title{UT-Thesis Class File Example}
\setcounter{tocdepth}{2}
\begin{document}
\input{commands}
\begin{preliminary}
\maketitle
\begin{abstract}
\end{abstract}
\tableofcontents
\listoftables
\listoffigures
\listofmyequations
\listofappendix
\end{preliminary}
\include {Introduction}
\include {RelatedLit}
\include {ObjectiveI}
\include {ObjectiveII}
\include {ObjectiveIII}
\include {ObjectiveIV}
\include {Conclusion}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{vancouver}
\bibliography{thesis}
\include{JaccardCode}
\addcontentsline{toc}{chapter}{Appendices}
\end{document}