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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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{FigureNo.}&\textbf{Caption}&\textbf{Legend}&\textbf{Graph
Ben.