1. Jason

This is excellent. I am encountering a situation where I need to add a statement to the bottom of a few select pages of a document as a footer. My problem is that I need to add the footer to a page that only has two, large, floating figures on it (no inline text). The command \thispagestyle is inline with the text and does not float with the figures. How do I change the page style of the specific page where those two figures end up? Thanks.

• Hi Jason,

Thanks for your question! The fancyhdr package implements the \iffloatpage macro, which might do exactly what you are looking for. See here for an example.

Tom

2. Vipin Kumar

Dear Sir,
I am going to write my thesis. My question is following.

I am using following code

\documentclass[11pt, a4paper, twoside, parindent]{Thesis}

This gives top page header on each page with the chapter name on left and page no. on right.

How can I get page no., chapter no. and chapter name on left (odd) page while section no./ name on right (even) page. Please help me.

• tom

Heya!

I created a minimal working example. Thesis is not a standard document class. I used report instead. But it shouldn’t make a difference.

\documentclass[11pt, a4paper, twoside, parindent]{report}
\usepackage{blindtext}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}

\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\begin{document}
\tableofcontents
\blinddocument
\end{document}

Cheers, Tom

• Work like charm, !

3. aju

Hey
Im trying to make footer @left side with page numbering @right n it works but not for first page of every chapter plz help

• tom

Hi Aju,

The first page of a chapter will always have page style plain. You can change this for example by patching the chapter command in your preamble.

\documentclass{report}
\usepackage{etoolbox}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}

See here for more details.

HTH, Tom