Generalproblem with blank page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
sherlock
Posts: 34
Joined: Fri Apr 11, 2008 9:41 am

problem with blank page

Post by sherlock »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

problem with blank page

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
sherlock
Posts: 34
Joined: Fri Apr 11, 2008 9:41 am

Re: problem with blank page

Post by sherlock »

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}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

problem with blank page

Post by Stefan Kottwitz »

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:

Code: Select all

\begin{document}
\maketitle
\pagenumbering{roman}
%\include{declaracao}
Test
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
LaTeX.org admin
User avatar
sherlock
Posts: 34
Joined: Fri Apr 11, 2008 9:41 am

problem with blank page

Post by sherlock »

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!!! :!:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: problem with blank page

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply