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

Problem displaying footer (using fancyhdr)

2 views
Skip to first unread message

Harold Burchey

unread,
Nov 14, 2002, 9:33:58 PM11/14/02
to
Most of my document is fancy, but there are several pages where I have
removed all margins and the header/footer(pagestyle=plain or empty) in
order to display some large landscape images.

After I've displayed the image, I set the pagestyle back to fancy. The
very next page once again displays a header, but for some reason, the
very next page will *not* display a footer. This only applies to the
page *directly* following the landscape image. All pages thereafter
correctly display both header and footer.

I'm sure this is yanq (is that an acronym?) but I'd really appreciate
some help. I would also like to know a 'neater' way to remove the
margins on individual pages. I've looked at lots of packages, but they
all change the whole document (not individual pages).

This is the command that I've defined that I call whenever I want to
insert an image:

\newcommand\figls[2] {

\newpage

% Change these settings to change the margins
\setlength{\myrightmargin}{0in}
\setlength{\myleftmargin}{0in}
\setlength{\mytopmargin}{0in}
\setlength{\mybottommargin}{0in}
\setlength{\oddsidemargin}{0in} % extra room on inside side

%%% use margin settings to set width variables
\setlength{\evensidemargin}{0 in}
\setlength{\marginparsep}{0 in}
\setlength{\marginparwidth}{0 in}
\setlength{\hoffset}{\myleftmargin - 1.0in}
\setlength{\textwidth}{210mm -\myleftmargin -\myrightmargin
-\oddsidemargin}

%%% use margin settings to set height variables
\setlength{\voffset}{\mytopmargin -1.0in}
\setlength{\topmargin}{0in}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\footskip}{0pt}
\setlength{\textheight}{297mm
-\mytopmargin-\mybottommargin-\headheight-\headsep-\footskip}

\begin{landscape}
\begin{figure}[htbp]
\begin{center}
\thispagestyle{plain}
\resizebox{!}{0.94\textwidth}{\input{fig/#1.pstex_t}}
\caption{#2}
\label{fig:#1}
\end{center}
\end{figure}
\end{landscape}

\newpage

\pagestyle{fancy}

\setlength{\oddsidemargin}{\normaloddsidemargin}
\setlength{\evensidemargin}{\normalevensidemargin}
\setlength{\marginparsep}{\normalmarginparsep}
\setlength{\marginparwidth}{\normalmarginparwidth}
\setlength{\hoffset}{\normalhoffset}
\setlength{\textwidth}{\normaltextwidth}
\setlength{\voffset}{\normalvoffset}
\setlength{\topmargin}{\normaltopmargin}
\setlength{\headheight}{\normalheadheight}
\setlength{\headsep}{\normalheadsep}
\setlength{\footskip}{\normalfootskip}
\setlength{\textheight}{\normaltextheight}

}

Then somewhere in the text I can call it:

\figls{imagefilename}{imagecaption}

Thanks,
harold.

0 new messages