为什么内容之后出现空白页?

为什么内容之后出现空白页?

我正在使用书籍类来撰写论文,但总是在目录和第 1 章之间出现空白页。我尽可能缩小了 .tex 文件以查找问题。到目前为止,我唯一的线索是,如果我移除减速,空白页也会消失。但是,我绝对有必要包含此信息。我该如何删除这个不需要的空白页,但保留论文中我需要的所有部分?这是我使用的导致问题的 .tex 文件:

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

\usepackage{graphicx}
\usepackage[left=40mm,right=25mm,top=20mm,bottom=40mm,includehead,includefoot,headheight=15pt]{geometry}

\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{\nouppercase{\leftmark}}
\cfoot{\thepage}
\pagestyle{fancy}
\date{2018}

\usepackage{titling}
\pretitle{%
  \begin{center}
  \vspace{-5.0cm}
  \includegraphics[width=8cm]{logo} \\[15mm]
  \end{center}
  \begin{center}
  \LARGE
}
\posttitle{\end{center}}

\title{\textbf{Thesis Title goes here}\vspace{5mm}}
\author{Name}

\begin{document}

\maketitle
\frontmatter

%%%% Declaration %%%%
\topskip0pt
\vspace*{\fill}
\noindent
\begin{quote}
\centering
    This thesis is the result of the author's original research. It has been composed by the author and has not been previously submitted for examination which has led to the award of a degree. \\[5pt]
    The copyright of this thesis belongs to the author under the terms of the United Kingdom Copyright Acts as qualified by University Regulation 3.50. Due acknowledgement must always be made of the use of any material contained in, or derived from, this thesis. \\[5pt]
\end{quote}
\vspace{10mm}
    Signed: \\
    Date:
\vspace*{\fill}
%%%% Declaration %%%%

\tableofcontents
\mainmatter

\chapter{Introduction}
This is the introduction to my thesis.

\end{document}

谢谢。

答案1

最有可能的是\frontmatter\mainmatter命令造成了问题。

那么,如何在适当的地方使用\pagenumbering{roman}和来代替--\pagenubering{arabic}

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

\usepackage{graphicx}
\usepackage[left=40mm,right=25mm,top=20mm,bottom=40mm,includehead,includefoot,headheight=15pt]{geometry}

\usepackage{fancyhdr}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{\nouppercase{\leftmark}}
\cfoot{\thepage}
\pagestyle{fancy}
\date{2018}

\usepackage{titling}
\pretitle{%
\begin{center}
\vspace{-5.0cm}
\includegraphics[width=8cm]{logo} \\[15mm]
\end{center}
\begin{center}
\LARGE
}
\posttitle{\end{center}}

\title{\textbf{Thesis Title goes here}\vspace{5mm}}
\author{Name}

\begin{document}

\maketitle
%\frontmatter
\pagenumbering{roman}

%%%% Declaration %%%%
\topskip0pt
\vspace*{\fill}
\noindent
\begin{quote}
\centering
    This thesis is the result of the author's original research. It has been composed by the author and has not been previously submitted for examination which has led to the award of a degree. \\[5pt]
    The copyright of this thesis belongs to the author under the terms of the United Kingdom Copyright Acts as qualified by University Regulation 3.50. Due acknowledgement must always be made of the use of any material contained in, or derived from, this thesis. \\[5pt]
\end{quote}
\vspace{10mm}
    Signed: \\
    Date:
\vspace*{\fill}
%%%% Declaration %%%%

\tableofcontents
%\mainmatter

\chapter{Introduction}
\pagenumbering{arabic}
This is the introduction to my thesis.

\end{document}

相关内容