Page LayoutUnexpected blank page and text running out of the page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
arthurfrancisco
Posts: 1
Joined: Thu Feb 27, 2020 2:46 am

Unexpected blank page and text running out of the page

Post by arthurfrancisco »

Hi!
I'm a beginner in LaTex, and I've been facing 2 problems while starting to edit this article in Overleaf.

1. There is a unexpected, sudden, blank page and I couldn't manage to find its cause;
2. In the next page, text is running out of the page.

Do you know how to fix this?
Thank you.

Code: Select all

\documentclass[12pt,a4paper,titlepage]{article}

\usepackage[utf8]{inputenc}
\usepackage[brazilian]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{indentfirst}
\usepackage{float}
\renewcommand*\familydefault{\sfdefault}
\usepackage[left=3cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\usepackage{amsmath}
\usepackage{listings}
%\usepackage{matlab-prettifier}
\usepackage{subfigure}
\usepackage{hyperref}
\usepackage{cite}
\newcommand{\reg}{\textsuperscript{\textregistered}}

\begin{document}

\title{\Huge{Simulações computacionais utilizando o COMSOL Multiphysics\reg}}
\author{Arthur Francisco Andrade}
\begin{titlepage}
\maketitle
\end{titlepage}

\tableofcontents
\newpage
\listoffigures
\newpage

\section{Introdução}

~\cite{einstein}

\section{Resolução de problemas físicos por meio de métodos numéricos}
\subsection{Equações diferenciais parciais}
\subsection{Método das diferenças finitas}
\subsection{Método dos elementos finitos}

\section{O COMSOL Multiphysics}
\subsection{Um breve histórico}
\subsection{Primeiros passos com o COMSOL}
\subsubsection{Interface}
\subsubsection{Árvore do modelo}
\subsubsection{Geometria}
lalala
\subsubsection{Físicas}
\subsubsection{Malha}
\subsubsection{Estudo}

\section{Eletrostática}
\subsection{Teoria}
\subsection{Capacitor de placas paralelas}
\subsection{Isolador de pino}
\subsection{Cabos geminados}

\section{Magnetostática}
\subsection{Teoria}
\subsection{Condutores percorridos por correntes}
\subsection{Campo e forças magnéticas em um indutor}
\subsection{Ímã permanente}

\section{Transferência de calor}
\subsection{Teoria}
\subsection{Blocos sólidos}
\subsection{Transferência de calor em para-raios com invólucro polimérico}
\subsection{Transferência de calor conjugada}

\section{Estresses mecânicos e térmicos}
\subsection{Teoria}
\subsection{Cálculo de estresse mecânico em uma bobina submetida a uma corrente elétrica}
\subsection{Cálculo de estresse térmico em uma placa de circuito}

\section{Aterramento elétrico}
\subsection{Teoria}
\subsection{Cálculo da resposta em frequência de um sistema de aterramento composto por uma haste}

\section{Ondas eletromagnéticas}
\subsection{Teoria}
\subsection{Cálculo do padrão de irradiação de uma antena de microfita}

\newpage
\bibliographystyle{plain}	
\bibliography{references}

%
\end{document}
Attachments
Apostila_MEF_e_COMSOL.pdf
(125.97 KiB) Downloaded 159 times
references.bib
(399 Bytes) Downloaded 196 times
main.tex
(3.17 KiB) Downloaded 177 times
Last edited by cgnieder on Sun Mar 01, 2020 5:16 pm, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Unexpected blank page and text running out of the page

Post by Johannes_B »

Welcome to the forum.

For a beginner, you got quite the preamble. You copied that from somewhere to save some time. That is a bad idea. It contains stuff you shouldn't do.

You only have sectioning commands in your document. Add some content, i.e. some text and your problem will disappear.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Unexpected blank page and text running out of the page

Post by Ijon Tichy »

Some additional notes to the shown example:
  • Package subfigure is deprecated. You should replace it by one of the alternatives mentioned in the linked package information.
  • Font size commands like \Huge do not have an argument. They are working as a switch, that is valid until the end of the current group. Moreover, you should also always take care, that they are valid until the end of the current paragraph, because TeX always uses the line spacing, that is valid at the end of the paragraph for the whole paragraph.
  • Encapsulating of \maketitle into a titlepage environment is nonsense. Use either a free defines title page inside a titlepage environment or \title etc. and \maketitle.
  • Usage of \bibliographystyle and \bibliography is not wrong. But style plain supports only English. The more modern solution with biblatex and biber would be multilingual and therefore recommended.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply