I'm using classicthesis.sty to write my master's thesis. In this style the tocloft is set up with the subfig package, which is now deprecated, so i'm using instead the subcaption package, the problem is that they are incompatible and the classicthesis.sty has a lot of options with subfig.
I need some help to solve the compatibility issues. The table of contents is not getting compiled and neither are the references to bibliography or to figures in the document. I'm using Kile in Ubuntu and just beginning to learn Latex.
Here is some of my code:
\documentclass{scrreprt}
% \input{classicthesis-config}
% In this input I have some of the following:
\PassOptionsToPackage{eulerchapternumbers,listings,drafting,
pdfspacing,
subfig,
beramono,eulermath,parts}{classicthesis}
\usepackage{ifthen}
\newboolean{enable-backrefs}
\setboolean{enable-backrefs}{false}
\newcounter{dummy}
\PassOptionsToPackage{spanish,es-lcroman}{babel}
\usepackage{babel}
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\usepackage{caption}
\usepackage{subcaption}
\captionsetup{format=hang,font=small}
\usepackage{float}
%\usepackage{subfig}
\usepackage{classicthesis}
\PassOptionsToPackage{hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref}
\pdfcompresslevel=9
\pdfadjustspacing=1
\PassOptionsToPackage{pdftex}{graphicx}
\usepackage{graphicx}
\ifthenelse{\boolean{enable-backrefs}}%
{%
\PassOptionsToPackage{hyperpageref}{backref}
\usepackage{backref}
\renewcommand{\backreftwosep}{ and~}
\renewcommand{\backreflastsep}{, and~}
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{
\ifcase #1 %
\backrefnotcitedstring%
\or%
\backrefcitedsinglestring{#2}%
\else%
\backrefcitedmultistring{#2}%
\fi}%
}{\relax}
\hypersetup{%
colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%
breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
hypertexnames=true, pdfhighlight=/O,
urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen,
pdfsubject={},%
pdfkeywords={},%
pdfcreator={pdfLaTeX},%
}
\makeatletter
\@ifpackageloaded{babel}%
{%
\addto\extrasspanish{%
\renewcommand*{\figureautorefname}{Figura}%
\renewcommand*{\tableautorefname}{Cuadro}%
\renewcommand*{\chapterautorefname}{Capítulo}%
\renewcommand*{\sectionautorefname}{Sección}%
\renewcommand*{\subsectionautorefname}{Sección}%
\renewcommand*{\subsubsectionautorefname}{Sección}%
}%
\providecommand{\subfigureautorefname}{\figureautorefname}%
}{\relax}
\makeatother
\usepackage{lipsum}
\usepackage[demo]{graphicx}
\begin{document}
\frenchspacing
\raggedbottom
\selectlanguage{spanish}
\pagenumbering{roman}
\pagestyle{plain}
\pagestyle{scrheadings}
% Table of Contents
\refstepcounter{dummy}
\pdfbookmark[1]{\contentsname}{tableofcontents}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\manualmark
\markboth{\spacedlowsmallcaps{\contentsname}} {\spacedlowsmallcaps{\contentsname}}
\tableofcontents
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
% List of Figures and Tables
\clearpage
\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\let\cleardoublepage\relax
% List of Figures
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{\listfigurename}
\pdfbookmark[1]{\listfigurename}{lof}
\listoffigures
\vspace*{8ex}
% List of Tables
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{\listtablename}
\pdfbookmark[1]{\listtablename}{lot}
\listoftables
\vspace*{8ex}
\endgroup
\pagenumbering{arabic}
\chapter{Dummy text} %
\section{Lorem}
\lipsum[1-2]
Foo bar baz (figure ~\ref{fig:ex1}).
\begin{figure}[H]
\begin{center}
\includegraphics{graphs/dataset17b.pdf}
\end{center}
\caption{Example 1.}
\label{fig:ex1}
\end{figure}
\end{document}
Thanks.
subfig? It's actually not deprecated.subfigureis the package that is deprecated. The only problem withsubfigarises if you need to usehyperref, too. – Adam Liter Mar 23 '15 at 01:14hyperreftoo. – Tina Mar 23 '15 at 02:27classicthesisseems to be a pain. Could you recommend me something better? – Tina Mar 23 '15 at 02:29classicthesisand tidy up your preamble so you can see what you are doing. – cfr Mar 23 '15 at 02:45