Page LayoutSpacing at the bottom of the initial Chapter page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Megan
Posts: 6
Joined: Wed Mar 04, 2009 10:48 pm

Spacing at the bottom of the initial Chapter page

Post by Megan »

Hello!
I'm struggling to get rid of extra space at the bottom of my initial chapter page. I want similar formatting on chapter pages and have managed it for the rest of the document just not this page.. Any hints would be greatly appreciated!
My frontmatter (briefly) is as follows:

\pagestyle{fancyplain}

\fancyhf{}
\fancyheadoffset[L,R]{2cm}
\fancyfootoffset[L,R]{2cm} %some section and chapter titles are quite long

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

%header and footer details here

\addtolength\topmargin{-.5in} %as well as reducing the vspace in my report code so the chapter heading is towards the top of the page
\addtolength\textheight{0.75in} %if I make this any larger the subsequent pages drop off the footer information

Thank you in advance! :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Spacing at the bottom of the initial Chapter page

Post by kaiserkarl13 »

Can you provide a minimal working example? This will answer several questions, such as: Which document class are you using? How long is the text? Is it a package conflict? Which package are you including that defines \fancyheadoffset and \fancyfootoffset?
Megan
Posts: 6
Joined: Wed Mar 04, 2009 10:48 pm

Spacing at the bottom of the initial Chapter page

Post by Megan »

Hi!

What follows is a working example of the issue I'm facing with the formatting on the first Chapter page. The lines above footer and below header do not appear and the spacing is also difficult though I seem to have been able to paste together a partial solution. It is possible that my documentclass report file has been modified for this purpose so I'm also not sure you'll even see what I see... sigh! Love/hate relationship with LaTeX sometimes!

Code: Select all

\documentclass[pdftex,12pt,a4paper,English]{report}
\usepackage[pdftex]{graphicx}
\usepackage{ulem}
\usepackage[english]{babel}
\usepackage{comment}
\usepackage{float}
\usepackage{booktabs}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{tabularx,colortbl}
\usepackage{mathptmx}
\usepackage{rotating}
\usepackage{palatino, url, multicol}
\usepackage[Omega]{gensymb}
\usepackage{caption}
\usepackage[pdftex,pdftitle={},pdfauthor={Megan Drysdale},pdfsubject={dimensions_for_qViro},pdfpagemode={UseOutlines},bookmarks,
pdfstartview={FitH},colorlinks,linkcolor={blue},urlcolor={red},]{hyperref}
\usepackage{natbib}
\usepackage{fancyhdr,lastpage}
\usepackage{rotating}
\usepackage{longtable}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
\setlength{\parindent}{0pt}


\begin{document}
\newpage
\pagenumbering{roman}
\tableofcontents

\newpage

\pagenumbering{arabic}
\setcounter{page}{1}

\pagestyle{fancyplain}

\fancyhf{}
\fancyheadoffset[L,R]{2cm}
\fancyfootoffset[L,R]{2cm}

\renewcommand{\footrulewidth}{.3pt}
\renewcommand{\headrulewidth}{.3pt}

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

\lhead[\fancyplain{}{}] {\fancyplain{}{}}

\chead[\fancyplain{}{}] {\fancyplain{}{}}

%\rhead[\fancyplain{\raisebox{-.5cm}{\includegraphics[width=.27\textwidth]{logo_aqua}}\vspace{.1cm}}
%{\raisebox{-.5cm}{\includegraphics[width=.27\textwidth]{logo_aqua}}\vspace{.1cm}}]
% {\fancyplain{\raisebox{-.5cm}{\includegraphics[width=.27\textwidth]{logo_aqua}}\vspace{.1cm}}
% {\raisebox{-.5cm}{\includegraphics[width=.27\textwidth]{logo_aqua}}\vspace{.1cm}}}

\cfoot[\fancyplain{\textit{\thepage\ of \pageref{LastPage}}}{\textit{\thepage\ of \pageref{LastPage}}}] {\fancyplain{\textit{\thepage\ of \pageref{LastPage}}}{\textit{\thepage\ of \pageref{LastPage}}}}

\lfoot[\fancyplain{\textit{<Document Name>}}{\textit{<Document Name>}}] {\fancyplain{\textit{<Document Name>}}{\textit{<Document Name>}}}
\rfoot[\fancyplain{\textit{\leftmark\\ \rightmark}}{\textit{\leftmark\\ \rightmark}}] {\fancyplain{\textit{\leftmark\\ \rightmark}}{\textit{\leftmark\\ \rightmark}}}

\chapter{One}
And as you can see the first page doesn't have the line under the logo at the top of the page (logo not shown as would need to include an extra file but it sits at the top right of the page) nor does it have the line above the footer at the bottom of the page.
\newpage
This is what I'd like the formatting to look like on all the pages please (imagining there is a logo in the top right) so if you have any advice I'd much appreciate it..
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Spacing at the bottom of the initial Chapter page

Post by Stefan Kottwitz »

Hi Megan,

I wouldn't use fancyplain, I recommend \fancypagestyle{plain}{commands} instead, see the fancyhdr documentation (7 Redefining plain style).

Stefan
LaTeX.org admin
Post Reply