我正在尝试将“章节”、“附录”、“图表”和“表格”等字词放入目录中。论文要求可在此处找到http://www.usc.edu/schools/GraduateSchool/documents/Thesis/Format_Presentation_Guidelines.pdf。指南的相关部分是,章节、附录、图表和表格等字词必须与项目出现在同一行。例如(请注意,主要章节/表格/图表/附录有双倍行距,而小节有单倍行距)。
先谢谢您的帮助!
奉献二
致谢 iii
摘要二十四
第 1 章:一些标题....4
1.1 我的科目名字....3
1.2 MySection 第二个名称....5
第 2 章:我的第二章标题
附录
附录 A:我为何热爱研究...10
A.1 准备工作..........10
A.2 更多准备工作......11
附录 B:为什么我需要了解 Latex 的朋友...13
B.1 准备工作......14
B.2 更多准备工作....15
图片列表
图 1.1:我的第一个图......15
图 1.2:我的第一个图......15
图 2.1:我的第一个图......25
图 2.2:我的第一个图......25
表格列表
表 1.1:我的表......15
表 1.2:我的表......17
表 2.1:我的表......25
表 2.2:我的表......27
注意:上面的大纲未显示所需的间距。主要章节需要双倍行距,而小节应单倍行距。使用的软件包和文档格式如下。
\documentclass[11pt]{report}
\usepackage[dissertation,final]{USCthesis}
%NOTE: THE def \degree WAS REDEFINED from \degree to \degreeName IN ORDER TO AVOID %CONFLICTS WITH THE siunitx PACKAGE. NOTE: THE STYLE FILE USCthesis WAS CHANGED. ALL 2 OCCURANCES OF \degree WAS CHANGED TO \degreeName SO AS NOT TO CONFLICT WITH siunitx package.
\usepackage{cite}
\usepackage[subfigure]{tocloft}
\usepackage{subfigure} % Written by Steven Douglas Cochran
% This package makes it easy to put subfigures
% in your figures. i.e., "figure 1a and 1b"
% Docs are in "Using Imported Graphics in LaTeX2e"
% by Keith Reckdahl which also documents the graphicx
% package (see above). subfigure.sty is already
% installed on most LaTeX systems. The latest version
% and documentation can be obtained at:
\usepackage{graphicx}
\usepackage{psfrag}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{booktabs}%used for professional tables
\usepackage[table]{xcolor}%used to add color to tables
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathrsfs}%Used for script math fonts
\usepackage{bm}%\bm{\omega} produces bold omega
\usepackage{amsbsy}%\boldsymbol{\omega} also produces bold omega
\usepackage{url}
\usepackage[load-configurations = version-1]{siunitx}
\usepackage{animate}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{color}
\usepackage{subfigure}
\usepackage{index}
\makeindex
\usepackage{appendix}
\usepackage{epstopdf}
\usepackage{standalone}%Use to generate tikz pictures from separate LaTeX code for each graphic
%\nofiles
\begin{document}
\setlength{\parskip}{0pt}
\title{SOME TITLE} % ALL CAPS in title. The title needs to be double spaced to be compliant with USC guidelines
\author{WILEY COYOTE} % For example, Tommy Trojans. Only the first letter of each word requires CAPS.
\submitdate{May 2012} % Officially, submitdate can only be May, August and December.
\begin{preface}
\prefacesection{Dedication} % (Optional) Dedication
Blah blah blah
\prefacesection{Acknowledgments}
I would like to thank....
\tableofcontents % List of contents
\listoftables % List of tables
%\renewcommand\cfttabpresnum{Table }
%\renewcommand{\cftchappresnum}{}
\listoffigures % List of figures
\include{thesis_abs} % Abstract: thesis_abs.tex starts with \prefacesection{Abstract}
\end{preface}
\include{Chapter1}%Include the file named "Chapter1
\include{Chapter2}% Include the file named "Chapter2
\include{Chapter3}%Include the file named "Chapter3
\begin{singlespace} % single-space for bibliography
\references[Bibliography]{IEEEtranS}{../Dissertation_bib} %Include a bibliography file named "Dissertation_bib" located in the relative directory.... Use IEEEtranS to sort bibliography by last name of first author.
\begin{appendices}
\include{Appendix}%Includes the appendix file named "Appendix"
\end{appendices}
\end{singlespace}
\printindex% There is an index file in my thesis that is generated by xindy
\end{document}
答案1
我认为你应该看看这些模板使用uscthesis
类。就您的代码而言,我个人认为这会给您带来很大的麻烦。提供的链接中的示例文件具有您要求的所有功能,您可以通过使用该类来获得它们。上面提到的网页还提供了如何使用该类的指南uscthesis
。
PS:最好使用大学指示/提供的样式文件/类,而不是手动尝试调整内容(这将避免给您带来任何麻烦)。