Discussion:
Header line spacing
(too old to reply)
GName
2007-05-14 09:18:21 UTC
Permalink
As I use the fancyhdr package, I notice that the header line is very
close (touching) the text of the section name just below it. Would you
please suggest a way to add some space between the header line and any
text that comes immediately after it (at the top of the page)?
Lars Madsen
2007-05-14 10:33:47 UTC
Permalink
Post by GName
As I use the fancyhdr package, I notice that the header line is very
close (touching) the text of the section name just below it. Would you
please suggest a way to add some space between the header line and any
text that comes immediately after it (at the top of the page)?
use the geometry pacakge to set your margins and other spaces
--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
GName
2007-05-14 14:50:48 UTC
Permalink
Thanks for the advice. I was wondering why LaTeX didn't take care of
this issue (as usual). Here is an example which I hope helps
explaining my case:

\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{geometry}

%\headsep 3pt %Solves the problem but... is there a better solution?

\pagestyle{fancyplain}
\lhead{}
\chead{Header Center}
\rhead{}

\rfoot{\thepage}
\cfoot{Footer Center}
\lfoot{\tiny Some notes at the end of the page.\\ And the notes
continue here.}

\title{Some Title}
\author{Author(s) list}
\date{date}

\begin{document}
\maketitle

\section{Section One}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text.

\section{Section Two}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text.

\section{Section Three}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text

\section{Section Four}
Text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text text text text text
text text text text text text text text text.

\end{document}

Uncommenting the \headsep statement would solve the problem, however
this is not the most preferable solution, since it alters the page
calibration. Any suggestion.
Lars Madsen
2007-05-14 15:30:02 UTC
Permalink
Post by GName
Thanks for the advice. I was wondering why LaTeX didn't take care of
this issue (as usual). Here is an example which I hope helps
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{geometry}
%\headsep 3pt %Solves the problem but... is there a better solution?
just using the geometry package is not enough, read the geometry manual. You use
the geometry to set the margins, the hed height headsep etc. Then the gepmetry
package will recalibrate all of the remaining layout controlling lengths
--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
Dan
2007-05-14 18:40:49 UTC
Permalink
Post by GName
Thanks for the advice. I was wondering why LaTeX didn't take care of
this issue (as usual). Here is an example which I hope helps
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{geometry}
%\headsep 3pt %Solves the problem but... is there a better solution?
[...]
Post by GName
Uncommenting the \headsep statement would solve the problem, however
this is not the most preferable solution, since it alters the page
calibration. Any suggestion.
It is almost certainly the fullpage package that is setting
\headsep to 0pt. It may also be setting \headheight to 0pt.
It is hard to say since there are more than one version of
fullpage out there.

If tou want to move the headers higher without lowering the
body text, just reduce \topmargin the amount by which
you increase \headsep:
\addtolength{\headsep} {3pt}
\addtolength{\topmargin}{-3pt}

Finally, don't use the fullpage package with geometry.
Either use only fullpage, and reset some page parameters
yourself. This is NOT hard to do after reading the relevant
potion of the manual (Lamport). Or use geometry without
fullpage and use its interface to set the page parameters.
I am told this is not hard to do, but I've never found the need
to use it, given how easy it is to make adjustments (like
those above).


Dan
Donald Arseneau
2007-05-14 21:55:24 UTC
Permalink
Post by GName
As I use the fancyhdr package, I notice that the header line is very
close (touching) the text of the section name just below it. Would you
please suggest a way to add some space between the header line and any
text that comes immediately after it (at the top of the page)?
\setlength{\headsep}{ larger length }

If you deliberately set a small \headsep for regular pages,
but are seeing collisions for section titles and figures,
then

\setlength{\topskip}{ smaller length }
--
Donald Arseneau ***@triumf.ca
Continue reading on narkive:
Loading...