Generalfullpage & fancyhdr doesn't work well ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
anta40
Posts: 38
Joined: Thu Sep 11, 2008 2:36 pm

fullpage & fancyhdr doesn't work well ?

Post by anta40 »

I'm using fullpage, so the margin uses will be a wide/normal one, and fancyhdr, because I need to print footer.
The problems are :
1. Page 1 doesn't have footer (only in page 2)
2. The line "ipsum velit, consectetuer eu lobortis ut, dictum at dui. Maecenas libero. Nulla accumsan, elit sit amet varius" is underlined. I don't know why. Maybe this has something to do with header. Using a \pagebreak doesn't help.

Any suggestions ? :?
BTW, the .tex and *.pdf are included, so you can examine it.
Attachments
test1.zip
(28.17 KiB) Downloaded 249 times

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

fullpage & fancyhdr doesn't work well ?

Post by gmedina »

Hi,

the code below includes some remarks and recommendations:

Code: Select all

\documentclass{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{lipsum}%just to generate some text

\renewcommand\headheight{12pt}%this change was suggested by a warning obtained after compilation
                                                %of your original code. Pay attention to those warnings
\fancyhead{}%apparently you don't need headers
\renewcommand\headrule{}%without headers there's no need to have a headrule
\fancyfoot[R]{\slshape Blah Blah Blah}%there was some redunant code here

\title{What Is This ??}
\author{Prof XYZ, Ph.D}
\date{}

\begin{document}

%let the first page have footers too
\begingroup
  \maketitle
  \thispagestyle{fancy}
\endgroup

\lipsum[1-20]

\end{document}
Please refer to the fancyhdr documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

fullpage & fancyhdr doesn't work well ?

Post by localghost »

Replace fullpage with geometry, which provides dynamic settings instead of static ones.


Best regards and welcome to the board
Thorsten¹
User avatar
anta40
Posts: 38
Joined: Thu Sep 11, 2008 2:36 pm

Re: fullpage & fancyhdr doesn't work well ?

Post by anta40 »

Ah I see.
I usually ignore the warnings, though. :oops:
BTW, it works.

Guess I need more study .. :idea:
xavier
Posts: 1
Joined: Wed Jul 28, 2010 3:37 pm

fullpage & fancyhdr doesn't work well ?

Post by xavier »

Hi,
I have a connected problem. With the following code the \section{Text} is basically on the facyhdr line at the top. How do I put some space between the two? I could \vskip, but I don't think it is clean coding.

Best regards,

Code: Select all

\documentclass{report}
\usepackage{fullpage}
\usepackage{fancyhdr}
\renewcommand\headheight{12pt}

\pagestyle{fancy}\lhead{A} \rhead{C}
\chead{{\large{\bf B}}}
\lfoot{}
\rfoot{\bf \thepage}
\cfoot{}

\begin{document}
\section{This text should be lower}
Bla bla bla
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: fullpage & fancyhdr doesn't work well ?

Post by Stefan Kottwitz »

Hi Xavier,

welcome to the board!

Why don't you use geometry instead of fullpage? I would recommend this, instead of fixing problems with an unflexible old package (last change dates back to 1999).

Next time when you would like to post a question, open a new topic instead of attaching to an old one. This topic is of the year 2008, therefore perhaps not everybody would read your post.

Stefan
LaTeX.org admin
Post Reply