Page LayoutMaking the footer visible on the first page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eiterorm
Posts: 24
Joined: Fri Dec 25, 2009 6:40 pm

Making the footer visible on the first page

Post by eiterorm »

Hi!
I'm trying to rewrite one of my lab reports (previously written in Word) in LaTeX to learn how to use LaTeX properly. The front pages of the lab reports have to be of a specific format, and, among other things, they must have the name of the faculty where I study in the footer.

I tried to use the "fancyhdr" package to make a custom footer, but I didn't manage to make it show on the final PDF document. I read this previous thread, as well as this guide on the topic, and did some adjustments according to these, but the footer still wouldn't show.

From what I gathered from the sources I found, the problem is the "\maketitle" command interfering with the page style. Writing "\thispagestyle{fancy}" after "\maketitle" would not solve the problem, so instead I tried redefining the plain page style, (code shown below) but this did not seem to work either.

Can anyone help with my problem?

Code: Select all

\documentclass[11pt, a4paper]{report}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae,aeguill}
\usepackage{fancyhdr}
\pagestyle{fancy}

\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{\textsc{Faculty Name}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}

\title{Lab Report Title}
\author{Person 1 \& Person 2}
\date{}


\begin{document}

\maketitle

\end{document}
Last edited by eiterorm on Fri Dec 25, 2009 11:56 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
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Making the footer visible on the first page

Post by frabjous »

The title page in the report class uses the empty page style, not the plain style; so the following should work:

Code: Select all

\fancypagestyle{empty}{
\fancyhf{}
\fancyfoot[C]{\textsc{Faculty Name}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
Personally, I think a separate title page seems excessive for a lab report. You might consider using the article class instead, and then you could use your original code.
eiterorm
Posts: 24
Joined: Fri Dec 25, 2009 6:40 pm

Re: Making the footer visible on the first page

Post by eiterorm »

Thanks! This works perfectly.

And concerning our lab reports: They tend to be big enough for a title page to be appropriate - and we don't have much of a choice anyway. ^^
Post Reply