Page LayoutProblems not numbering title page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
malaghanite
Posts: 4
Joined: Wed May 13, 2009 12:48 am

Problems not numbering title page

Post by malaghanite »

Hi all!

I'm quite new to Latex and using Texshop on Mac. My document is an article and I'm using fancyhydr and pagestyle fancyplain.
I defined my title as titlepage but it still comes up with a page number in the footer. Even when I put \thispagestyle{empty} the page number is still there...
Any suggestions why this is and how I can get rid of the page number (and count)?

Thanks for any help!

As I read that it would help to attach examples, I just copied the beginning of my document and put it here.

Code: Select all

\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\lhead[]{\sectionmark}
\rhead[]{\subsectionmark}


\usepackage{siunitx} % for typesetting SI units
\usepackage{sidecap} % for sidecaptions
\usepackage{wrapfig}
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{natbib}


%%% BEGIN DOCUMENT
\begin{document}
\begin{titlepage}
\thispagestyle{empty}
\title{title}
\author{name}
\date{date}
\end{titlepage}
\maketitle
\newpage

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

Problems not numbering title page

Post by Stefan Kottwitz »

Hi,

you could use the titlepage option of the article class:

Code: Select all

\documentclass[titlepage]{article}
Further don't combine the titlepage environment with \maketitle. This would work:

Code: Select all

\title{title}
\author{name}
\date{date}
\begin{document}
\maketitle
...
Stefan
LaTeX.org admin
malaghanite
Posts: 4
Joined: Wed May 13, 2009 12:48 am

Re: Problems not numbering title page

Post by malaghanite »

Thank you!
I didn't know that you have to explicitly tell Latex that you want a titlepage in your article at the documentclass level.

Now it's fine and looks great! :D
Post Reply