Theses, Books, Title pages ⇒ Bibliography not compatible with author year and hyperefs not working with class file.
Bibliography not compatible with author year and hyperefs not working with class file.
Also my question about the appendices, and deleting blank pages, when inserting landscape pages.
Ben.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Bibliography not compatible with author year and hyperefs not working with class file.
"passing the subfigure option to package tocloft" is usually done bybyn wrote:I tried both ways, using the \usepackage{subfigure}, got same error
Code: Select all
\usepackage[subfigure]{tocloft}
I didn't specify that the subfig package would provide the same commands as the subfigure package did. I did give you a direct link to its documentation, though.byn wrote: and using the package, \usepackage{subfig} fot this error;
subfig.PNG
How do I rectify this?
KR
Rainer
Bibliography not compatible with author year and hyperefs not working with class file.
Bibliography not compatible with author year and hyperefs not working with class file.
Code: Select all
! LaTeX Error: Command \c@lofdepth already defined.
Or name \end... illegal, see p.192 of the manual.
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{subfigure}
\begin{document}
\begin{figure}[h]
\centering
\subfigure[Subfigure caption 1]
{\includegraphics[width=135pt,height=135pt]{example-image-a}
\label{fig:sub1}
}
\subfigure[Subfigure caption 2]{ \includegraphics[width=135pt,height=135pt]{example-image-b}
\label{fig:sub2}}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage[subfigure]{tocloft}
\usepackage{subfigure}
\begin{document}
\begin{figure}[h]
\centering
\subfigure[Subfigure caption 1]
{\includegraphics[width=135pt,height=135pt]{example-image-a}
\label{fig:sub1}
}
\subfigure[Subfigure caption 2]{ \includegraphics[width=135pt,height=135pt]{example-image-b}
\label{fig:sub2}}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{subfig}
\begin{document}
\begin{figure}[h]
\centering
\subfloat[Subfigure caption 1]
{\includegraphics[width=135pt,height=135pt]{example-image-a}
\label{fig:sub1}
}
\subfloat[Subfigure caption 2]{ \includegraphics[width=135pt,height=135pt]{example-image-b}
\label{fig:sub2}}
\end{figure}
\end{document}
Rainer
Bibliography not compatible with author year and hyperefs not working with class file.
Bibliography not compatible with author year and hyperefs not working with class file.
Instead, modify the line
Code: Select all
\usepackage[titles]{tocloft}
Code: Select all
\usepackage[subfigure,titles]{tocloft}
Perhaps try to shrink your template down to a

KR
Rainer
Bibliography not compatible with author year and hyperefs not working with class file.
and my questions are here;
I installed TeXlive and TeXstudio as the editor. It is working fine however I have some errors when it comes to including subfigures from the code below, even when the class is defined, \usepackage{subfigure}, it gives a conflicting error with the class.
Code: Select all
\begin{figure}[h]
\begin{minipage}{\linewidth}
\centering
\subfigure[Subfigure caption 1]
{\includegraphics[width=135pt,height=135pt]{fig1.eps}
\label{fig:sub1}
}
\subfigure[Subfigure caption 2]{ \includegraphics[width=135pt,height=135pt]{fig2.eps}
\label{fig:sub2}}
\subfigure[Subfigure caption 3] {\includegraphics[width=135pt,height=135pt]{fig1.eps}
\label{fig:sub3}}
\vspace{-0.35cm}
\end{minipage}\\
\begin{minipage}{\linewidth}
\centering
\subfigure[Subfigure caption 4]
{\includegraphics[width=135pt,height=135pt]{fig1.eps}
\label{fig:sub4}
}
\subfigure[Subfigure caption 5]{ \includegraphics[width=135pt,height=135pt]{fig2.eps}
\label{fig:sub5}}
\subfigure[Subfigure caption 6] {\includegraphics[width=135pt,height=135pt]{fig1.eps}
\label{fig:sub6}}
\vspace{-0.35cm}
\end{minipage}%
\caption{Caption of the figure} \label{fig:subfigure}
\end{figure}
Problem 2 is with including tables in appendix as landscape , gives an error with class and doesnt compile even when \usepackage{longtable} is defined. See code below.
\begin{landscape}
\begin{longtable}{p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{5cm}p{4cm}p{5cm}}
\caption{Caption}
\label{label}\\
\hline
\textbf{Chapter}&\textbf{Page}&\textbf{Figure
No.}&\textbf{Caption}&\textbf{Legend}&\textbf{Graph
Type}&\textbf{Description}&\textbf{Data} &\textbf{Comments} \\
\hline
\endfirsthead
\hline
\textbf{Chapter}&\textbf{Page}&\textbf{Figure No.}&\textbf{Caption}&\textbf{Legend}&\textbf{Graph Type}&\textbf{Description}&\textbf{Data}
&\textbf{Comments} \\
\hline
\endhead
\hline \multicolumn{9}{r}{\emph{Continued on next page}}
\endfoot
%\hline
\endlastfoot
...
data...
& & & & & & & & \\
...
\end{longtable}
\end{landscape}
Ben.