I got this minimal working example by reducing your code:
Code: Select all
\documentclass{ryethesis}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subfig}
\author{Norm Macdonald}
\title{Sample}
\degreeName{Doctor of Philosophy}
\degreeYear{1847}
\program{Degree Name}
\partnerUniversity{Hogwarts University}
\begin{document}
\chapter{Norm Macdonald}
\label{CHAPTER_3}
\begin{figure}[!h]
\centering
\subfloat[Norm Macdonald 1.]{\label{norm1}\includegraphics[width=0.25\textwidth]{norm1}}\hfill
\subfloat[Norm Macdonald 2.]{\label{norm2}\includegraphics[width=0.25\textwidth]{norm2}} \\
\subfloat[Norm Macdonald 3.]{\label{norm3}\includegraphics[width=0.35\textwidth]{norm3}}
\caption{Norm Macdonald.}
\label{vco}
\end{figure}
\end{document}
By inserting the code of ryethesis.cls into the document and doing further reduction I was able to remove the usage of the ryethesis class but still producing the error:
Code: Select all
\documentclass{book}
\AtBeginDocument{\listoffigures}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subfig}
\author{Norm Macdonald}
\title{Sample}
\begin{document}
\chapter{Norm Macdonald}
\label{CHAPTER_3}
\begin{figure}[!h]
\centering
\subfloat[Norm Macdonald 1.]{\label{norm1}\includegraphics[width=0.25\textwidth]{norm1}}\hfill
\subfloat[Norm Macdonald 2.]{\label{norm2}\includegraphics[width=0.25\textwidth]{norm2}} \\
\subfloat[Norm Macdonald 3.]{\label{norm3}\includegraphics[width=0.35\textwidth]{norm3}}
\caption{Norm Macdonald.}
\label{vco}
\end{figure}
\end{document}
It seems that the subfig package does not like the \listoffigures inside \AtBeginDocument prior loading the subfig package, but this is what the ryethesis document class does. Since this is totally legal code it looks like a bug in the subfig package for me.
The only workaround which comes into my mind is replacing the subfig package with my subcaption package:
Code: Select all
\documentclass{ryethesis}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\author{Norm Macdonald}
\title{Sample}
\degreeName{Doctor of Philosophy}
\degreeYear{1847}
\program{Degree Name}
\partnerUniversity{Hogwarts University}
\begin{document}
\chapter{Norm Macdonald}
\label{CHAPTER_3}
\begin{figure}[!h]
\centering
\subfloat[Norm Macdonald 1.\label{norm1}]{\includegraphics[width=0.25\textwidth]{norm1}}\hfill
\subfloat[Norm Macdonald 2.\label{norm2}]{\includegraphics[width=0.25\textwidth]{norm2}} \\
\subfloat[Norm Macdonald 3.\label{norm3}]{\includegraphics[width=0.35\textwidth]{norm3}}
\caption{Norm Macdonald.}
\label{vco}
\end{figure}
\end{document}
(Please note the different \label placement inside the subfigures.)
This seems to work without problems.
Axel