Page LayoutUnwanted page number 1

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
srengam
Posts: 33
Joined: Fri May 20, 2011 12:55 am

Unwanted page number 1

Post by srengam »

Hi all,

I am starting a new assignment and have tried to include a title page to my previous assignment template, but now I have an annoying page number at the bottm centre of the page, where I prefer it to be in the header (as it is).

How can I disable the number at the bottom but keep the page numbering in header?

Text will follow my thanks.

many thanks all.

\documentclass[a4paper]{article}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\usepackage{fancyhdr}

\usepackage{graphicx}

\usepackage{enumerate}

\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}
\addtolength{\topmargin}{-.875in}
\addtolength{\textheight}{1.75in}

\lhead {\bfseries Shayne Berry}
\rhead{\bfseries {\thepage}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

\begin{document}

\begin{titlepage}

\begin{center}

% Upper part of the page
\textsc{\LARGE [Your University]}\\[1.5cm]
\textsc{\Large [Course]}\\[0.5cm]
\textsc{\large [Course Title]}\\[0.5cm]


% Title
\HRule \\[0.4cm]
{ \huge \bfseries Title}\\[0.4cm]
\HRule \\[1.5cm]

% Author
\begin{center} \Large
\emph{Author:}\\
John \textsc{Smith}\\[3cm]
\end{center}

% Bottom of the page
{\large January 1, 2009}\\[4cm]
%\includegraphics{Logo}\\[1cm] % Department/University logo

\vfill
\end{center}

\end{titlepage}

\pagestyle{fancy}

Then begin entering your work here

\newpage

\end{document}
Last edited by srengam on Thu Sep 29, 2011 8:39 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.

srengam
Posts: 33
Joined: Fri May 20, 2011 12:55 am

Re: Unwanted page number 1

Post by srengam »

Solved.

Putting blank footer commands has solved it:

\lfoot{}
\cfoot{}
\rfoot{}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Unwanted page number 1

Post by Stefan Kottwitz »

Hi,

to clear the footer, simply insert

Code: Select all

\fancyfoot{}
Stefan
LaTeX.org admin
Post Reply