LaTeX:如何删除多余页面

5

我是LaTeX的新手,对它一无所知并且遇到了一个问题。在写报告时,每个新章节总是从奇数页开始,导致我的报告出现空白页。我该如何去掉它?我已经阅读了stackoverflow上的其他答案,但是不知道该怎么做。

\documentclass[12pt]{report} 
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{graphicx} 
\usepackage{times} 
\begin{document} 
%\pagestyle{empty} 
\input{first} 
\pagestyle{plain} 
\pagenumbering{arabic} 
\newpage 
\input{declaration} 
\newpage 
\input{acknowledgement} 
\newpage 
\input{abstract} 
\tableofcontents 
\listoffigures 
\input{chapter1} 
\include{chapter2} 
\include{chapter3} 
\include{conclusion} 
\include{references} 
\pagestyle{plain} 
\pagenumbering{arabic} 
\addcontentsline{toc}{chapter}{References} 
\end{document}

first.tex

\begin{titlepage}
\begin{center}
   Some title text
\end{center}
\end{titlepage}

\documentclass[12pt]{report} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{graphicx} \usepackage{times} \begin{document} %\pagestyle{empty} \input{first} \pagestyle{plain} \pagenumbering{arabic} \newpage \input{declaration} \newpage \input{acknowledgement} \newpage \input{abstract} \tableofcontents \listoffigures \input{chapter1} \include{chapter2} \include{chapter3} \include{conclusion} \include{references} \pagestyle{plain} \pagenumbering{arabic}\addcontentsline{toc}{chapter}{References} \end{document} 这是主页面。 :) - Ajay Shekhawat
从我所看到的,似乎都是已经展开的了 :/ - Ajay Shekhawat
问题之前并不存在。我在每个章节中开始使用begin{flushleft},这可能会有问题吗? - Ajay Shekhawat
1
要在任何一页(不仅仅是奇数页)打开章节,请将 openany 添加到您的 \documentclass 选项中。 - Werner
4个回答

17

使用此功能删除空白页

\let\clearpage\relax

1
我认为我知道问题出在哪里了。删除


\newpage 

之后

\pagenumbering{arabic} 

1
另一个\include文件中有一个\section,它创建了部分标题。它在哪里,看起来像什么?(我现在必须去睡觉...) - qwerty_so

1
我解决了我的问题。我所做的是从所有的章节中删除\begin{flushleft},并在主TeX文件中使用RaggedRight

-1
如果你正在写书,可以使用\documentclass[10pta4paper,openany]{book},在文档的开头它一定会解决你的问题。

目前你的回答不够清晰,请编辑并添加更多细节,以帮助其他人理解它如何回答问题。你可以在帮助中心找到有关如何编写好答案的更多信息。 - Community
“report”类默认是单面的 - 这“绝对不会”“解决你的问题”。 - samcarter_is_at_topanswers.xyz

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接