![在目录、图表和表格列表之后开始章节编号](https://linux22.com/image/321195/%E5%9C%A8%E7%9B%AE%E5%BD%95%E3%80%81%E5%9B%BE%E8%A1%A8%E5%92%8C%E8%A1%A8%E6%A0%BC%E5%88%97%E8%A1%A8%E4%B9%8B%E5%90%8E%E5%BC%80%E5%A7%8B%E7%AB%A0%E8%8A%82%E7%BC%96%E5%8F%B7.png)
我正在使用文章类来撰写博士论文。
我希望章节编号从文档开头的列表之后开始,包括目录本身(以通常的方式生成)。
该文档由以下内容生成:
\begin{document}
%%% TITLE PAGE
\maketitle
\pagenumbering{arabic}
\tableofcontents
\listoffigures
\listoftables
\newpage
%%% SECTIONS
\input{src/glossary}
\input{src/symbols}
\input{src/aims}
\input{src/litreview}
\input{src/methodology}
\input{src/results}
\input{src/outlook}
\input{src/bibliography}
\end{document}
我希望第 1 章从 src/aims 开始,其之前的内容不编号。
我需要某种方法来从编号中排除\listoffigures
、\listoftables
和\tableofcontents
,但由于这些是命令而不是部分,因此如何实现?
\frontmatter
并被\mainmatter
写为潜在的解决方案,尽管它们在文章类中不起作用。(并且书籍类引起了进一步的问题)。有没有更好的方法?
这是我一直在使用的序言
\documentclass[12pt,article,a4paper]{article}
\usepackage[version=3]{mhchem}
\usepackage{breqn}
\usepackage{chemfig}
\usepackage{parskip}
\usepackage{fancyhdr}
\usepackage[hyperpageref]{backref}
\usepackage{hyperref}
\hypersetup{colorlinks=false}
\usepackage{blindtext}
\usepackage{wallpaper}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{fixltx2e}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{morefloats}
\usepackage{epstopdf}
\usepackage{tikz}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage[]{algorithm2e}
\usepackage{xfrac}
\usepackage{wasysym}
\usepackage{cite}
\usepackage{color}
\usepackage{pgfplots}
\usepackage{braket}
\usepackage{wrapfig}
\usepackage{glossaries}
\usepackage{sidecap}
\usepackage{multirow}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\pagestyle{fancy}
\fancyhf{}
\rhead{Matthew Worsdale}
\lhead{\rightmark}
\newcommand*{\vimage}[1]{\vcenter{\hbox{\includegraphics{#1}}}}
\newcommand*{\vpointer}{\vcenter{\hbox{\scalebox{2}{\Huge\pointer}}}}
\usepackage{pict2e}
\usepackage{color}
\title{Ab-Initio Investigation into catalyst supports for Polymer Electrolyte Fuel Cells\\[1cm]\textbf{PhD Thesis}}
\author{Matthew Worsdale
\url{[email protected]}
\thanks{PhD student-Engineering Materials Research Group, University of Southampton, SO17 1BJ, UK}
}
\date{December 2014}
\thispagestyle{empty}
\makeatletter
\renewcommand\tableofcontents{%
\section{\contentsname}%
\@mkboth{\MakeUppercase\contentsname}%
{\MakeUppercase\contentsname}%
\@starttoc{toc}%
}
\renewcommand\listoftables{%
\section{\listtablename}%
\@mkboth{\MakeUppercase\listtablename}%
{\MakeUppercase\listtablename}%
\@starttoc{lot}%
}
\renewcommand\listoffigures{%
\section{\listfigurename}%
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}%
\@starttoc{lof}%
}
\makeatother
答案1
这是一个命题:
\usepackage{tocbibind}
并使用\tocchapter
作为命令,为所有toc
类似条目制作编号章节。如果article
仍要使用,请将其替换\tocchapter
为\tocsection
其他一些问题:hyperref
是一个包,应该最后出现,但却在这里之前glossaries
。
\documentclass[12pt,article,a4paper]{book}
\usepackage[version=3]{mhchem}
\usepackage{breqn}
\usepackage{chemfig}
\usepackage{parskip}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{wallpaper}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{fixltx2e}
\usepackage{caption}
\usepackage{amssymb}
\usepackage{morefloats}
\usepackage{epstopdf}
\usepackage{tikz}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage[]{algorithm2e}
\usepackage{xfrac}
\usepackage{wasysym}
\usepackage{cite}
\usepackage{color}
\usepackage{pgfplots}
\usepackage{braket}
\usepackage{wrapfig}
\usepackage{sidecap}
\usepackage{multirow}
\usepackage{chngcntr}
\counterwithin{figure}{section}
\usepackage{tocbibind}
\usepackage[hyperpageref]{backref}
\usepackage{hyperref}
\hypersetup{colorlinks=false}
\usepackage{glossaries}
\pagestyle{fancy}
\fancyhf{}
\rhead{Matthew Worsdale}
\lhead{\rightmark}
\newcommand*{\vimage}[1]{\vcenter{\hbox{\includegraphics{#1}}}}
\newcommand*{\vpointer}{\vcenter{\hbox{\scalebox{2}{\Huge\pointer}}}}
\usepackage{pict2e}
\usepackage{color}
\title{Ab-Initio Investigation into catalyst supports for Polymer Electrolyte Fuel Cells\\[1cm]\textbf{PhD Thesis}}
\author{Matthew Worsdale
\url{[email protected]}
\thanks{PhD student-Engineering Materials Research Group, University of Southampton, SO17 1BJ, UK}
}
\date{December 2014}
\thispagestyle{empty}
\tochapter
\begin{document}
%%% TITLE PAGE
\maketitle
\pagenumbering{arabic}
\tableofcontents
\listoffigures
\listoftables
\newpage
\chapter*{Glossary}
% etc
%%% SECTIONS
%\input{src/glossary}
%\input{src/symbols}
\chapter{Foo}
%\input{src/aims}
%\input{src/litreview}
%\input{src/methodology}
%\input{src/results}
%\input{src/outlook}
%\input{src/bibliography}
\end{document}