Hi
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.
General ⇒ problem with blank page
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
problem with blank page
Hi sherlock,
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
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
LaTeX.org admin
Re: problem with blank page
Hi
\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}
\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: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
problem with blank page
Hi sherlock,
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:then there is no blank page. So I guess declaracao.tex may produce the blank page (or something else). Does this minimal example show a blank plage on your side? (remember: a minimal example should contain/ show the error in general) Then check declaracao.tex or show us this file.
Stefan
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
LaTeX.org admin
problem with blank page
Thanks Stefan_K
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!!!
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: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: problem with blank page
Hi sherlock,
\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
\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
LaTeX.org admin