General ⇒ problem with blank page
problem with blank page
Latex produces a blank page with only a page number after the end of my page title. I don't wan't this blank page, what should I do? There is no \clearpage or \newpage around it.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
problem with blank page
if you have a titlepage option set (first line, documentclass) consider to remove it.
If you show us a minimal working example then we would be able to give a appropriate solution instead of guessing what your code may be.
Stefan
Re: problem with blank page
\documentclass[a4paper,12pt]{report}
...
%----------------------
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\footnotesize {text}}
\rhead{} \lfoot{\footnotesize{text}}
\cfoot{} \rfoot{\footnotesize{ P\'agina \thepage}}
% Title Page
%==========begin cover==================
\title{\vspace{-3cm}
\begin{minipage}{0.5\linewidth}
\begin{center}
\includegraphics[width=2cm,bb=14 14 99 87]{Images/logo.eps}
% logo.eps: 1179666x1179666 pixel, 300dpi, 9987.84x9987.84 cm, bb=14 14 99 87
\end{center}
\end{minipage}\\
\vspace{0.1cm} \textbf{\textbf{\LARGE
{UNIVERSIDADE EDUARDO MONDLANE\\ Faculdade de Ci\^encias\\ Departamento de F\'isica}}}\\
\vspace{2cm}{\small {Trabalho de Licenciatura}}\\
\vspace*{3cm}\large{\emph{\textbf{title page}}}\\
\vspace{2cm}}
\author{\textbf{Autor}: text}
\date{}
%=================end cover===========
\newcommand{\ao}{\~ao~}
\newcommand{\cao}{\c{c}\~ao~}
\newcommand{\oes}{\~{o}es~}
\newcommand{\coes}{\c{c}\~{o}es~}
\newcommand{\Moz}{Mo\c{c}ambique~}
\begin{document}
\maketitle
\pagenumbering{roman}
\include{declaracao}
.
.
.
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
problem with blank page
the example is already good, but keep in mind that it should be compilable, then other board member can compile it and test and help. In this case I removed the line including the logo.eps (I don't have that) and also \include{declaracao}. Then I can compile it. If I write:
Code: Select all
\begin{document}
\maketitle
\pagenumbering{roman}
%\include{declaracao}
Test
Stefan
problem with blank page
The error was in the file declaracao.tex
When i do
\begin{center}
\chapter*{Declara\cao~de Honra}
\end{center}
.
it creates a blank page before declaracao page
if i write only
\chapter*{Declara\cao~de Honra}
the blank page desapear.
But i dont understand why!!!

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: problem with blank page
\chapter and even \chapter* insert \clearpage or \cleardoublepage. The center-environment produces additional vertical space causing the empty page then. That's why I usually prefer \centering.
Both may not affect the chapter heading, its set with \raggedright. That could be changed if really necessary. But if that's needed just for one heading instead of all \chapter* or \chapter I would consider writing the heading just with \centering\Huge\bfseries and the appropriate vertical space before and after.
Stefan