配置 classicthesis 的目录、图表、表格

配置 classicthesis 的目录、图表、表格

您好,我对 Latex 不太熟悉,有一个问题。我正在尝试配置目录、图表列表、表格列表,因为它们都会自动出现:

% book example for classicthesis.sty
\documentclass[
% Replace twoside with oneside if you are printing your thesis on a single side
% of the paper, or for viewing on screen.
%oneside,
oneside,
11pt, a4paper,
footinclude=true,
headinclude=true,
cleardoublepage=empty
]{scrbook}

\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{acronym}
\usepackage[titles]{tocloft}
\usepackage{tocloft}
\usepackage{minitoc}
\usepackage{times}
\usepackage{setspace}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} 
\renewcommand{\listfigurename}{LIST OF FIGURES}
\setlength{\cftbeforefigskip}{0.25in}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}

\renewcommand{\listtablename}{LIST OF TABLES}
\setlength{\cftbeforetabskip}{0.2in}

\title{Thesis Title}
\author{John Doe}

\begin{document}

\maketitle
\frontmatter
\tableofcontents
\listoffigures 
\listoftables 

\chapter{Acknowledgements} 

I would like to thank my supervisor, Professor Someone. This 
research was funded by the Imaginary Research Council. 

\chapter{Abstract} 

A brief summary of the project goes here. 

\chapter{Abbreviations}

\mainmatter 

\include{intro2} 

\backmatter  

\begin{thebibliography}{100} % 100 is a random guess of the total number of 
 %references 
\end{thebibliography}

\end{document}  

对于 intro2.tex:

\chapter{Introduction} 
\label{ch:intro} 
\section{Blabal}

blaalblbla
\subsection{blubl} 
blublbu 

在目录中,子部分的页面仍然在左侧,而不是在右侧,没有点(并不真正关心点,只是希望它们在右侧对齐),图表和表格列表的页面也发生了同样的情况。我希望有人可以追踪这个问题。提前谢谢。

答案1

classicthesis.sty一些奇怪的行为(在我看来),它禁用 ToC/LoF、LoT 中的点填充。

使用tocloft包,可以通过以下宏来解决

% For ToC

\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdotsep}}

% For LoF/LoT

\renewcommand{\cftfigleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cfttableader}{\cftdotfill{\cftdotsep}}

main.tex——驱动文件

% book example for classicthesis.sty
\documentclass[
% Replace twoside with oneside if you are printing your thesis on a single side
% of the paper, or for viewing on screen.
%oneside,
oneside,
11pt, a4paper,
footinclude=true,
headinclude=true,
cleardoublepage=empty
]{scrbook}

\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{acronym}
\usepackage[titles]{tocloft}
\usepackage{minitoc}
%\usepackage{times}% Deprecated -- use mathptmx instead
\usepackage{mathptmx}%
\usepackage{setspace}
\renewcommand{\contentsname}{TABLE OF CONTENTS}%
\renewcommand{\listfigurename}{LIST OF FIGURES}%
\renewcommand{\cftchapfont}{\normalfont}

\setlength{\cftbeforefigskip}{0.25in}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}

% My additions 09/13/2014
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftfigleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cfttableader}{\cftdotfill{\cftdotsep}}


\renewcommand{\listtablename}{LIST OF TABLES}
\setlength{\cftbeforetabskip}{0.2in}

\title{Thesis Title}
\author{John Doe}

 \begin{document}

\maketitle
\frontmatter
\tableofcontents
\listoffigures 
\listoftables 

\chapter{Acknowledgements} 

I would like to thank my supervisor, Professor Someone. This 
research was funded by the Imaginary Research Council. 

\chapter{Abstract} 

A brief summary of the project goes here. 

\chapter{Abbreviations}

\mainmatter 

\include{intro2} 

\backmatter  

\begin{thebibliography}{100} % 100 is a random guess of the total number of 
  % references 
\end{thebibliography}

\end{document}  

介绍2.tex

\chapter{Introduction} 
\label{ch:intro} 
\section{Blabal}

blaalblbla
\subsection{blubl} 
blublbu

\begin{figure}
  \caption{This is a dummy figure}
\end{figure}

\begin{table}
  \begin{center}
    \begin{tabular}{|c|c|c|c|c|}
      \hline
      & & & & \tabularnewline
      This & is & a & small & table \tabularnewline
      & & & & \tabularnewline
      \hline
    \end{tabular}
    \caption{This is a dummy table}
  \end{center}
\end{table}

intro2.tex添加了一个虚拟图形以及一个虚拟表来显示对 LoF/LoT 的影响。

在此处输入图片描述

相关内容