文档中有一个额外的空白页

文档中有一个额外的空白页

以下代码在我的文档中插入了一个额外的空白首页,尽管我甚至没有提到任何标题或任何其他内容。请指导我哪里做错了。提前致谢。

\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}
\begin{center}
\chapter*{TITLE}
\section*{\texttt{NAME and ID}}
\section*{ \emph{Supervisor}}
\textbf{\textsf{DISSERTATION INITIAL DRAFT}}
\end{center}
\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}
\end{document} 

我正在使用 TexMaker,希望它有帮助 :)

答案1

\chapter在环境中使用center会产生额外的页面。如果您想创建标题,最好不要使用分段单元命令。您可以手动或使用专用包,例如titling;一个小例子:

\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}

\begin{center}
{\Huge\bfseries TITLE\par\bigskip}
{\Large\ttfamily NAME and ID\par\medskip}
{\Large\itshape\bfseries Supervisor\par\medskip}
{\bfseries\sffamily DISSERTATION INITIAL DRAFT\par\bigskip}
\end{center}

\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}

\end{document} 

在此处输入图片描述

因为显然不需要主要的章节单元(即文档不需要从自己的页面开始的章节),所以最好切换到article文档类;这里有一个使用articletitling包来生成标题的示例:

\documentclass{article}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage{titling}

\pretitle{\begin{center}\Huge\bfseries}
\posttitle{\par\end{center}\vskip 0.5em}
\preauthor{\begin{center}\Large\ttfamily}
\postauthor{\par{\Large\itshape\bfseries
Supervisor\par\medskip}{\bfseries\sffamily DISSERTATION INITIAL DRAFT}\end{center}}
\predate{\par\large}
\postdate{\par}

\title{TITLE}
\author{NAME and ID}
\date{}

\begin{document}

\maketitle

\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}

\end{document}

在此处输入图片描述

可以看出,手动构建标题更经济(在这种简单情况下)。

答案2

由于您正在使用该类book,您可能希望将文档的第一页作为封面。

为此,该book课程提供了一个titlepage环境,您可以在其中插入封面页中需要的所有内容。在该环境的末尾,将开始一个新页面。

梅威瑟:

\documentclass[oneside]{book}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}

\begin{titlepage}
\centering
\vspace*{1in}
{\Huge\bfseries TITLE\par}
\vspace*{0.75in}
{\Large\ttfamily NAME and ID\par}
\medskip
{\Large\itshape\bfseries Supervisor\par}
\medskip
{\bfseries\sffamily DISSERTATION INITIAL DRAFT\par}
\end{titlepage}

\section*{Description}
\section*{Summary}
\begin{thebibliography}{x}
\bibitem{easley} David Easley, Jon Kleinberg. \emph{Networks, Crowds and Markets: Reasoning about a Highly Connected World}, Cambridge University Press, 2010
\bibitem{macy} Damon Centola, Michael Macy. \emph{Complex Contagion and the Weakness of Long Ties}, American Journal of Sociology, 2007
\end{thebibliography}

\end{document} 

输出:

在此处输入图片描述

相关内容