You never know what you will meet when you use Latex, luckily, we can search Google or Yahoo to find the answer. However, it cannot help all the times. There is a problem you may come across using package
fancyhdr:
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 14.49998pt.
We now make it that large for the rest of the document.
It was not easy to find the answer via either Google or Yahoo. Here is the solution. Insert
\setlength{\headheight}{15pt}in the preamble, i.e. before
\begin{document}.
Tips:
- \headheight defines the height of the header.
- \setlength{len-cmd}{length}
The
\setlength command is used to set the value of a
length command,
len-cmd, which is specified as the first argument. The
length argument can be expressed in any terms of length LaTeX understands, i.e., inches (in), millimeters (mm), points (pt), etc.
Thanks a lot, spend some time on that..
ReplyDeleteYou're welcome.
ReplyDeletethanks, that was useful to me too.
ReplyDeletewhen a few days are left for completing my thesis, I googled my headheight problem and found this post
Thank you so much, thank you so much.
ReplyDeleteThank you for your help! :)
ReplyDeleteI never thought I would find a LaTeX answer this perfect for my problem. Thank you!
ReplyDeleteThanks for sharing that solution!
ReplyDeleteThis trick should be mentionned in every documentation or web site that deals with the package 'fancyhdr'. Unfortunately, it's not! Thanks a lot for sharing your knowledge.
ReplyDeleteThank you very much :)
ReplyDeleteDude, you rock ! I've spent a LOT of time on this...
ReplyDeleteGreat I was trying to solve the problem for quiete a long time.
ReplyDeleteMany thanks
One more anonymous thank you !! .. :-)
ReplyDeleteSo perfect.
ReplyDeleteIf solutions like this were open to newbies like me, it could change people´s mind about LATEX.
Thanks a lot!
thanks a lot!!!
ReplyDeleteI've this problem for a couple of days and almost become crazy
thanks a lot, i found this page on first result on google. This help me.
ReplyDeletemerci beaucoup
Thank you very much, I was going insane with this :)
ReplyDeleteYet another thank you! I wonder why fancyhdr doesn't do this itself..!
ReplyDeleteThanks a lot for sharing this!
ReplyDeletewonderful! Thanks for the trick!
ReplyDeleteDo you know how much you've cut down on my error messages with this fix? Thank you so much!! :-D
ReplyDeleteI was passing by and though of saying a "thank you" as a return to the pain that you relieved when I came across to your post.
ReplyDeleteAnother thank you :)
ReplyDeleteYou know, now Google can answer this problem too! Thanks btw :)
ReplyDeleteyeah, I was just gonna say the same thing :)
ReplyDeleteThanks a lot, the information was very helpfull!
ReplyDeleteMy warning is gone, but I admit I see no difference... :-)
Thanks a lot! I love google!!!
ReplyDeletethanks thanks thanks... !!
ReplyDeleteThank you!
ReplyDeleteThanks. It made the warning dissappear, but how about you tell us what the command actually does?
ReplyDeleteThank you!! Finally somebody knows how to fix it
ReplyDeleteappreciating your help!
ReplyDeletethank you very much, very useful
ReplyDeleteOK, this solution removes the warning, but it causes that the header is not in the right place (the header is located far below). It is more interesting why mentioned warning appears when generated PDF document seems to look correctly.
ReplyDeleteHi, Czlowiek, it depends how do you generate the PDF. This method not only removes the warning, but also generates the PDF as it should be.
ReplyDeleteHi wenbin,
ReplyDeleteI mean that with the warning my PDF looks like I intended. After setting headheight, the warning disappears but the header is located e.g. 27 points below its previous location (unwanted).
I wonder why this warning appears in a situation in which I'm happy with appearance of the document (header doesn't obscure the text below).
Hi, Czlowiek,
ReplyDeleteDo you use GhostScript or Acrobat Distiller to convert from PS to PDF? Or you use PDFLatex?
I use PDFLatex.
ReplyDeleteThis solution works well for dvi-->ps-->PDF
ReplyDeletemany thanks!
ReplyDelete+1 I tried first \renewcommand\ kind of solution, then I tried google :D
ReplyDeletethanks, you saved my time!
ReplyDeleteStill helping people!
ReplyDeleteThanks!
ReplyDeleteThanks a lot, I suppose this saved me lot of searching!
ReplyDeleteThanks!
ReplyDeleteI came here to say thank you, only noticing that I had already replied here because I had the same problem in the past and I had forgotten the solution. That's what happens when you change templates!
ReplyDeletethanks!
ReplyDeleteYeah! Thanks a lot ;)
ReplyDeleteA very helpful post!
ReplyDeletethanks, very useful!!!
ReplyDeleteperfect. thanks.
ReplyDeleteReally good! Thanks for this!
ReplyDeleteTo Czlowiek and wenbin:
ReplyDeleteI do not know if you still follow it, but I had exactly the same problem as Czlowiek. When I generated .pdf there was too much space at the top and I could not change by \setlength{...}{...} nothing was helping, but than I found this:
http://en.wikibooks.org/wiki/LaTeX/Page_Layout
more specificely they say that if you want to be sure to have a good transformation from PS to PDF it is better to include a sice of the page at the beginning of your document. Which means to insert this:
\documentclass[...,a4paper,...]{...}
\special{papersize=210mm,297mm}
I included a4paper as it is suggested and introduced the second line as well and it is working perfectly now!!
Good luck you all with searching for info, I think it takes half of my time during writing the PhD:-).
Cunik16
Hi, Cunik16,
ReplyDeleteYour problem seems to be caused by that when you generate a letter size dvi but want a a4 pdf. Change the setting to suit your need.
Thank you very much.I have saved a lot of time thanks to your post.
ReplyDeleteMax
Buenísimo este tip. Gracias (desde Venezuela)
ReplyDeletethx
ReplyDeleteThanks a lot! (Obrigada do Brasil)
ReplyDeleteGlad I googled this, these fancyhdr warnings had always gotten on my nerves, but I learned to live with it. Kind of like a wart. Now, my template is perfect.
ReplyDeleteThanks.
ReplyDeleteThanks a lot, mate!
ReplyDeleteThank you!
ReplyDeleteYet another anonymous thank you!
ReplyDeleteThanks a lot! :)
ReplyDeleteThank you!
ReplyDeleteGrazie mille :-)
ReplyDeleteGracias
ReplyDeleteThank you!
ReplyDeleteThank you very much
ReplyDeleteThanks a lot for the time you saved me!
ReplyDeleteThanks thanks thanks
ReplyDeleteMillion thanks
ReplyDeleteIt just helped me. Thanks!!!
ReplyDeleteThank you!
ReplyDeleteThank you!
ReplyDeleteThanks!
ReplyDeleteThanks
ReplyDeletetank!
ReplyDeleteThank you!
ReplyDeleteThank you very much! Clear and efficient.
ReplyDeleteThanks also ! Helped us in our thesis
ReplyDeleteThank you so much for sharing this! You've made my day! :)
ReplyDeleteThis is the best answer I have ever found for a query on LATEX.
ReplyDeleteLife saver. Thanks :-)
ReplyDeleteEpic winning! Thanks!
ReplyDeleteThanks mayne, this fixed a problem I had with fancyhdr overlapping the first line of my body text, though I don't think I got a warning.
ReplyDeleteThank you, for sharing this solution!
ReplyDeleteMuchas gracias!!
ReplyDeleteI love you!!
ReplyDeleteThank you! I was looking for this.
ReplyDeleteYou saved my day.. Thanks very much.
ReplyDeleteThanks
ReplyDeleteGod bless you! Do same always!
ReplyDeleteThanks a lot dude.
ReplyDeletelove u maaaan thanks a lot
ReplyDeleteGreat and that i have a nifty offer: How Much Remodel House local remodeling companies
ReplyDelete