I am writing my thesis paper in LaTeX. I wrote the main program like below, but whenever I compile the .tex file one extra blank page is added after every chapter, and it doesn't take into account if the next page is odd or even to add this extra one. I can't figure out why is it happening. Can you help me?
\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}
And, as an example, the Cap1.tex
looks like this:
\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 ...
Thanks!!
openright
for you documentclass toopenany
.Cap*.tex
files being\included
?\clearpage
or\cleardoublepage
does? ;-) I believe, that's the cause of your problem... Remove them in just one file, sayCap1.tex
and recompile.