[Tex/LaTex] get an empty page before the title page

macpage-numberingtexworkstitles

Unfortunately, I get two empty pages before my title page. This is a code example:

\documentclass[english,12pt, a4paper]{article}
\usepackage{babel} 
\usepackage{times}
\usepackage{graphicx} 
\usepackage{float}
\usepackage{units}
\usepackage[top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage[bf]{caption}

\begin{document}

\begin{titlepage}
\begin{center}
\title{title}
\author{Name Name}
\maketitle
\end{center}
\end{titlepage}

\linespread{1.1}
\pagestyle{fancy}
\lhead{Name Name}

\section*{Abstract}

The first page has no page number, the second with the title and author does has a 2 and the next one starts again with 1…

Best Answer

Don't use titlepage (which makes a blank page in which to typeset title elements) and \maketitle Use one or the other. This makes a 1 page document with a title on that page.

\documentclass[english,12pt, a4paper]{article}
\usepackage{babel} 
\usepackage{times}
\usepackage{graphicx} 
\usepackage{float}
\usepackage{units}
\usepackage[top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage[bf]{caption}

\begin{document}

\title{title}
\author{Name Name}
\maketitle


\linespread{1.1}
\pagestyle{fancy}
\lhead{Name Name}

\section*{Abstract}

\end{document}
Related Question