我正在用 LaTeX 写论文。我编写了如下所示的主程序,但每当我编译 .tex 文件时,每一章后都会添加一个额外的空白页,并且它不会考虑下一页是奇数还是偶数来添加这个额外的空白页。我不知道为什么会发生这种情况。你能帮助我吗?
\documentclass[11pt,twoside,openright,spanish]{report}
% ------------------------------------------------------------------------
% Packages
% ------------------------------------------------------------------------
\usepackage[dvips,pdftex]{graphicx}
\usepackage{makeidx}
\usepackage[pdftex]{color}
\usepackage[nottoc]{tocbibind}
\usepackage[smaller,printonlyused]{acronym}
\usepackage{subfigure}
\usepackage{fancyhdr}
\usepackage[round,comma,authoryear]{natbib}
\usepackage[activeacute,spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{rotating}
\usepackage[T1]{fontenc}
% ------------------------------------------------------------------------
% Document customization
% ------------------------------------------------------------------------
\pagestyle{empty}
\pagecolor{white}
\hoffset=-1in
\marginparwidth=0in
\marginparsep=0in
\marginparpush=0in
\evensidemargin=2.23in
\oddsidemargin=0.98in
\textwidth=5.40in
\voffset=-0.5in
\topmargin=0in
\headheight=20pt
\headsep=12pt
\textheight=7.8in
\footskip=30pt
\setlength{\tabcolsep}{20pt}
\linespread{1.0}
\sloppy
\pagenumbering{roman}
\addto\captionsspanish{
\def\bibname{Referencias}
\def\tablename{Tabla}
\def\listtablename{\'Indice de Tablas}
\def\appendixname{Anexo}
}
\setcounter{tocdepth}{2}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\nouppercase{\slshape{\leftmark}}}
\fancyhead[LO]{\nouppercase{\slshape{\rightmark}}}
\fancyhead[RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{empty}
% ------------------------------------------------------------------------
% Main document body
% ------------------------------------------------------------------------
\begin{document}
% Index
--------------------------------------------------------------------------
\tableofcontents
\pagestyle{empty}
% Intro
-------------------------------------------------------------------------
\include{Intro}
% Chapter 1
% ------------------------------------------------------------------------
\pagenumbering{arabic}
\include{Capt1}
% Chapter 2
------------------------------------------------------------------------
\include{Capt2}
\end{document}
举个例子,它Cap1.tex
看起来像这样:
\chapter{Aerosoles atmosféricos}
\pagenumbering{arabic}
\begin{center}
\begin{minipage}[t]{10cm}
\emph{En este capítulo ... }
\end{minipage}
\end{center}
\clearpage{\pagestyle{empty}\cleardoublepage}
\pagestyle{fancy}
\fancyhead[RE]{\nouppercase{\slshape{\leftmark}}}
\fancyhead[LO]{\nouppercase{\slshape{\rightmark}}}
\section{Introducción}
Los aerosoles atmosféricos son....
\section{Tipos de aerosoles}
....
\subsubsection{Clasificación climática}
Los tipos de aerosoles ...
谢谢!!