Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use geometry and fancyhdr packages together.

141 views
Skip to first unread message

Chaim Frenkel

unread,
Dec 3, 1996, 3:00:00 AM12/3/96
to

I've read the documentation for geometry and fancyhdr, but I seem
to be missing something.

I can't seem to see what sets the whitespace around the page, (margins?)
and what sets the space available for fancyhdr to use. (Yes, I know
that geometry calculates missing values, but I'm looking for the
actual variable(?) that I'm trying to effect)

(Are the layout and geometry packages mutally exclusive?)

<chaim>

Umeki Hideo

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to

Chaim Frenkel wrote:
>
> I've read the documentation for geometry and fancyhdr, but I seem
> to be missing something.
>
> I can't seem to see what sets the whitespace around the page, (margins?)
> and what sets the space available for fancyhdr to use. (Yes, I know
> that geometry calculates missing values, but I'm looking for the
> actual variable(?) that I'm trying to effect)

Try latex below.
It may help you see how the packages work.

---------------------------------------------------------------
\documentclass[12pt]{article}

\usepackage{fancyhdr,geometry,layout}
%\usepackage{fancyhdr,geometry,showframe}

\geometry{verbose,margin=1in,headheight=45pt,footskip=40pt}
%\geometry{verbose,margin=1in,headheight=40pt,footskip=40pt}

\newsavebox\tmpbox
\sbox\tmpbox{\hbox{ag\rule[0pt]{4pt}{40pt}y}}

\lhead{\usebox\tmpbox}
\chead{\usebox\tmpbox}
\rhead{\usebox\tmpbox}
\lfoot{\usebox\tmpbox}
\cfoot{\usebox\tmpbox}
\rfoot{\usebox\tmpbox}

\renewcommand{\headrulewidth}{6pt}
\pagestyle{fancyplain}

\begin{document}
\layout% by layout.sty
test test test test test test test test test test test test
test test test test test test test test test test test test
test test test test test test test test test test test test
test test test test test test test test test test test test

\vfill

test test test test test test test test test test test test
test test test test test test test test test test test test
test test test test test test test test test test test test
test test test test test test test test test test test test
\end{document}
--------------------------------------------------------------

> Are the layout and geometry packages mutally exclusive?

Here is an easy and `unofficial' patch for layout.sty.
Layout.sty can't work if \topmargin is negative enough to
make length of arrow negative.

------------------------------------------------
*** layout.sty Tue Dec 10 13:44:00 1996
--- layout.sty-new Tue Dec 10 13:41:31 1996
***************
*** 341,346 ****
--- 341,347 ----
\Interval = \cnt@textwidth
\divide\Interval by 8
\PositionX = \ref@margin
+ \advance\PositionY by 60
\advance\PositionX by \Interval
\Identify{4}
\ExtraYPos = \ref@head
------------------------------------------------

Hideo UMEKI

0 new messages