我需要按照以下格式格式化我的论文写作中的 LoF;(LoF 标题采用 14pt 字体大小,列表条目采用常规 13pt 字体大小) 我的代码是;
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref}
\hypersetup{colorlinks=true,allcolors=black}
\usepackage{tocloft}
% Center ToC heading
\renewcommand{\cfttoctitlefont}{\hfill\bfseries\LARGE}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters
% Make \chapter leaders bold
\let\oldcftchapleader\cftchapleader
\renewcommand{\cftchapleader}{\bfseries\oldcftchapleader}
\usepackage{datetime}
\usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry}
\renewcommand{\baselinestretch}{1.5}
% Title Page
\title{MS Thesis}
\author{Salman}
\date{\today --- \currenttime}
\begin{document}
%\maketitle
\pagenumbering{roman}
\pagestyle{plain}
\setcounter{page}{9}
\begin{normalsize}
\tableofcontents
\newpage
% \ifx\totalfigures
\listoffigures
% \fi
\end{normalsize}
%\listoftables
\ifx\totaltables
\listoftables
\fi
\pagenumbering{arabic}
\pagestyle{fancyhf}
\begin{normalsize}
\chapter{Introduction}\label{chap_1}
\include{chap_1}
\chapter{Background Theory and Literature Review}\label{chap_2}
\include{chap_2}
\end{normalsize}
\end{document}
答案1
我不完全确定你想要什么(13pt 不是标准尺寸之一,请单独提问)但尝试这个(减少任何拼写错误):
\documentclass[12,a4paper]{report}
\usepackage{lipsum}
\usepackage{tocloft}
\renewcommand{\listfigurename}{LIST OF FIGURES} % uppercase title
\renewcommand{\cftloftitlefont}{\large\bfseries} % bold 14pt
\renewcommand{\cftafterloftitle}{\par\protect\mbox{}\protect\hrulefill\par} % horizontal line
\setlength{\cftfigindent}{0pt} % left aligned fig entries
\renewcommand{\cftfigpresnum}{Fig } % put before the number
\addtolength{\cftfignumwidth}{1.5em} % extra space for \cftpresnum
\begin{document}
\listoffigures
\chapter{A Chapter}
\lipsum[1]
\begin{figure}
\centering FIGURE
\caption{A figure}
\end{figure}
\lipsum[2]
\begin{figure}
\centering ANOTHER FIGURE
\caption{Another figure}
\end{figure}
\lipsum[3]
\end{document}
阅读手册(> texdoc tocloft
)以了解详细信息。