章节前的附加页

章节前的附加页

我遇到了一个小问题 - 在章节介绍之前的表格列表之后,我得到了一个编号的页面(阿拉伯语 1)。无论我使用 oneside 还是 openany 书籍类别。这是怎么回事?

\documentclass[a4paper,11pt,oneside]{book}

\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{mathrsfs}
\usepackage{color}
\usepackage[hidelinks]{hyperref}
\usepackage{cite}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{enumitem}
\usepackage{epsfig}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{indentfirst}
\usepackage[strict]{changepage}
%\usepackage{matlab-prettifier}
\usepackage{listings}
\usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
% Page Margins - Strath Requirement
\usepackage[left=4cm,right=2.5cm,top=2cm,bottom=4cm,includehead,includefoot,headheight=15pt]{geometry}
\newcommand{\specialcell}[2][c]{%
    \begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
% Page Headers
\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt} % optional
%\fancyhead[L]{\nouppercase{\leftmark} \hfill Section \nouppercase{\rightmark}}
\fancyhead[L]{\nouppercase{\leftmark}}
\cfoot{\thepage}
\pagestyle{fancy}

% Draft Watermark
%\usepackage[draft=true,allpages=true,fontfamily=cmr,angle=90,scale=0.1,mark={\fboxsep=35pt\fboxrule=0pt\relax\fbox{-- DRAFT -- \today~--}},xcoord=-80,ycoord=-20]{draftmark}


% Line Spacing
%\def\baselinestretch{1.5} 
\usepackage{setspace}
\setstretch{1.5}
\setcounter{tocdepth}{3}

% Place uni Logo on Title Page (this package modifies the "\maketitel" command.)
\usepackage{titling}
\pretitle{%
    \begin{flushright}
        \vspace{-9.5cm}
        %\includegraphics[width=5cm,natwidth=472,natheight=531]{logo} \\[7cm]
        \includegraphics[width=5cm]{logo} \\[6cm]
    \end{flushright}
    \begin{center}
        \LARGE
    }
    \posttitle{\end{center}}

\title{Title \\ PhD Thesis}
\author{Name
    \\ \small Institute of Photonics\\[-0.8ex]
    \small Physics\\[-0.8ex]
    \small Uni\\
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

    \maketitle


    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \frontmatter
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    \chapter{Abstract}
    \input{abstract.tex}

    \chapter{Preface/Acknowledgements}
    I would like to acknowledge... 

    \tableofcontents

    \addcontentsline{toc}{chapter}{List of Figures}
    \listoffigures

    \addcontentsline{toc}{chapter}{List of Tables}
    \listoftables

\mainmatter
\chapter{Introduction}
\input{1_Introduction.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{ieeetr}
\bibliography{MyBibFile}

\end{document}

答案1

我运行了您在问题中发布的代码;它没有重现该问题。请发布一个可重现该问题的最小工作示例。

答案2

我怀疑发生的情况是您在目录后添加了表格和图片列表,但还没有表格或图片。这就是我的情况。

这个(非)问题应该可以自行解决。由于内容尚未存在,页码错误和其他格式问题也是如此。首先关注内容。

也就是说,如果您的委员会希望从一开始就正确格式化,就像我的一样,那么请使用 \clearpage 或 \newpage。以下是我完成的论文的片段:

\frontmatter
\newpage                                      % hyperref
\pdfbookmark[0]{Table of contents}{toc}       % hyperref
\tableofcontents
\newpage                                      % hyperref
\pdfbookmark[0]{List of figures}{lof}         % hyperref
\listoffigures
\newpage                                      % hyperref
\pdfbookmark[0]{List of tables}{lot}          % hyperref
\listoftables

\include{ap.acks}
\include{ap.glos}

\mainmatter       % TOC entry command is in ch.intr
\pagestyle{headings}
\include{ch.intr} % introduction

相关内容