在目录、图表和表格列表之后开始章节编号

在目录、图表和表格列表之后开始章节编号

我正在使用文章类来撰写博士论文。

我希望章节编号从文档开头的列表之后开始,包括目录本身(以通常的方式生成)。

该文档由以下内容生成:

\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}

在此处输入图片描述

相关内容