Changing headheight pushes footer off pageMy footer disappears when I increase headheightUsing restoregeometry in environment, next page runs off the page bottomWhat is the proper way of moving my content but not my header/footer?Create a document cover using style classHow can I make pages after the first come out correctly with fancyhdr?Switch from portrait to landscape maintaining marginsHeader on odd pagesFancyhdr geometry correct with pagestyle but not thispagestylefancyhdr in landscape mode: how to align header and footer correctlyVertical Alignment of footer in fancyhdr packageRemove header/footer on odd page

Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner

The sound of thunder's like a whip

How do you call it when two celestial bodies come as close to each other as they will in their current orbits?

What is the difference between a premise and an assumption in logic?

Have only girls been born for a long time in this village?

Why is 日本 read as "nihon" but not "nitsuhon"?

Efficiently pathfinding many flocking enemies around obstacles

Is there such a thing as too inconvenient?

Does C++20 mandate source code being stored in files?

How to create a summation symbol with a vertical bar?

How to setup a teletype to a unix shell

Why doesn't mathematics collapse even though humans quite often make mistakes in their proofs?

Why did this happen to Thanos's ships at the end of "Avengers: Endgame"?

Injectivity radius of manifolds with boundary

How to dismiss intrusive questions from a colleague with whom I don't work?

Does Swashbuckler's Fancy Footwork apply if the attack was made with Booming Blade?

Sleeping solo in a double sleeping bag

Is "stainless" a bulk or a surface property of stainless steel?

Are there reliable, formulaic ways to form chords on the guitar?

Was Switzerland really impossible to invade during WW2?

How to look up identical column names in two dataframes and combine the matched columns

Overwrite file only if data

What does it mean to have a subnet mask /32?

Is it appropriate for a prospective landlord to ask me for my credit report?



Changing headheight pushes footer off page


My footer disappears when I increase headheightUsing restoregeometry in environment, next page runs off the page bottomWhat is the proper way of moving my content but not my header/footer?Create a document cover using style classHow can I make pages after the first come out correctly with fancyhdr?Switch from portrait to landscape maintaining marginsHeader on odd pagesFancyhdr geometry correct with pagestyle but not thispagestylefancyhdr in landscape mode: how to align header and footer correctlyVertical Alignment of footer in fancyhdr packageRemove header/footer on odd page






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues.




I am using Overleaf to create some documentation for software, and using fancyhdr to customize the header and footers. My header contains images which makes the header somewhat large, so I get an error from LaTeX to increase headheight to a larger value. When I do increase this to the recommended 67pt, it removes the error, but pushes the footer off the page. At first glance, the question at the link I referenced above is a 1-for-1 mirror image of what I need, but I tried includeheadfoot, setting all to 1in margins through geometry, and the footer still runs off the page. I've looked at the fancyhdr documentation exhaustively and cannot find a solution. Below is a MWE, which pushes the footer off the page:



documentclass[12pt]article 
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in]geometry
usepackagefancyhdr
usepackagelastpage
setlengthheadheight67pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[width=6cm]image.PNG hfill includegraphics[width=3cm]image2.jpg hfill includegraphics[width=4cm]image3.png
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


How do I get rid of the headheight warning while also keeping a footer which is at a 1 inch margin from the bottom?



Note: I've only been using LaTeX for about 2 years and for really simple reports, so this is one of the more sophisticated projects I've done so far. I appreciate insight on how I can avoid this issue again in the future, and please let me know how I can edit this question to be more concise.










share|improve this question


























  • Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

    – schtandard
    Aug 8 at 13:19


















4















Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues.




I am using Overleaf to create some documentation for software, and using fancyhdr to customize the header and footers. My header contains images which makes the header somewhat large, so I get an error from LaTeX to increase headheight to a larger value. When I do increase this to the recommended 67pt, it removes the error, but pushes the footer off the page. At first glance, the question at the link I referenced above is a 1-for-1 mirror image of what I need, but I tried includeheadfoot, setting all to 1in margins through geometry, and the footer still runs off the page. I've looked at the fancyhdr documentation exhaustively and cannot find a solution. Below is a MWE, which pushes the footer off the page:



documentclass[12pt]article 
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in]geometry
usepackagefancyhdr
usepackagelastpage
setlengthheadheight67pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[width=6cm]image.PNG hfill includegraphics[width=3cm]image2.jpg hfill includegraphics[width=4cm]image3.png
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


How do I get rid of the headheight warning while also keeping a footer which is at a 1 inch margin from the bottom?



Note: I've only been using LaTeX for about 2 years and for really simple reports, so this is one of the more sophisticated projects I've done so far. I appreciate insight on how I can avoid this issue again in the future, and please let me know how I can edit this question to be more concise.










share|improve this question


























  • Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

    – schtandard
    Aug 8 at 13:19














4












4








4








Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues.




I am using Overleaf to create some documentation for software, and using fancyhdr to customize the header and footers. My header contains images which makes the header somewhat large, so I get an error from LaTeX to increase headheight to a larger value. When I do increase this to the recommended 67pt, it removes the error, but pushes the footer off the page. At first glance, the question at the link I referenced above is a 1-for-1 mirror image of what I need, but I tried includeheadfoot, setting all to 1in margins through geometry, and the footer still runs off the page. I've looked at the fancyhdr documentation exhaustively and cannot find a solution. Below is a MWE, which pushes the footer off the page:



documentclass[12pt]article 
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in]geometry
usepackagefancyhdr
usepackagelastpage
setlengthheadheight67pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[width=6cm]image.PNG hfill includegraphics[width=3cm]image2.jpg hfill includegraphics[width=4cm]image3.png
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


How do I get rid of the headheight warning while also keeping a footer which is at a 1 inch margin from the bottom?



Note: I've only been using LaTeX for about 2 years and for really simple reports, so this is one of the more sophisticated projects I've done so far. I appreciate insight on how I can avoid this issue again in the future, and please let me know how I can edit this question to be more concise.










share|improve this question
















Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues.




I am using Overleaf to create some documentation for software, and using fancyhdr to customize the header and footers. My header contains images which makes the header somewhat large, so I get an error from LaTeX to increase headheight to a larger value. When I do increase this to the recommended 67pt, it removes the error, but pushes the footer off the page. At first glance, the question at the link I referenced above is a 1-for-1 mirror image of what I need, but I tried includeheadfoot, setting all to 1in margins through geometry, and the footer still runs off the page. I've looked at the fancyhdr documentation exhaustively and cannot find a solution. Below is a MWE, which pushes the footer off the page:



documentclass[12pt]article 
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in]geometry
usepackagefancyhdr
usepackagelastpage
setlengthheadheight67pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[width=6cm]image.PNG hfill includegraphics[width=3cm]image2.jpg hfill includegraphics[width=4cm]image3.png
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


How do I get rid of the headheight warning while also keeping a footer which is at a 1 inch margin from the bottom?



Note: I've only been using LaTeX for about 2 years and for really simple reports, so this is one of the more sophisticated projects I've done so far. I appreciate insight on how I can avoid this issue again in the future, and please let me know how I can edit this question to be more concise.







fancyhdr geometry






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 8 at 13:28







GeoMoon

















asked Aug 8 at 12:52









GeoMoonGeoMoon

235 bronze badges




235 bronze badges















  • Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

    – schtandard
    Aug 8 at 13:19


















  • Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

    – schtandard
    Aug 8 at 13:19

















Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

– schtandard
Aug 8 at 13:19






Welcome to TeX.SE! Please make your code example an MWE (emphasis on minimal, i.e. remove unnecessary packages, options and definitions).

– schtandard
Aug 8 at 13:19











1 Answer
1






active

oldest

votes


















8














give geometry the chance to know the headheight you are using by setting it with the geometry options:



documentclass[12pt]article
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in,headheight=67pt]geometry
usepackagehyperref
usepackagefancyhdr
usepackagetitlesec
usepackagelastpage
setcountersecnumdepth0
setlengthparskip4pt
titlespacing*section0pt2pt2pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[height=62pt]example-image-duck
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


enter image description here






share|improve this answer




















  • 1





    Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

    – GeoMoon
    Aug 8 at 13:07











  • The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

    – Ulrike Fischer
    Aug 8 at 13:12













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f503377%2fchanging-headheight-pushes-footer-off-page%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









8














give geometry the chance to know the headheight you are using by setting it with the geometry options:



documentclass[12pt]article
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in,headheight=67pt]geometry
usepackagehyperref
usepackagefancyhdr
usepackagetitlesec
usepackagelastpage
setcountersecnumdepth0
setlengthparskip4pt
titlespacing*section0pt2pt2pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[height=62pt]example-image-duck
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


enter image description here






share|improve this answer




















  • 1





    Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

    – GeoMoon
    Aug 8 at 13:07











  • The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

    – Ulrike Fischer
    Aug 8 at 13:12















8














give geometry the chance to know the headheight you are using by setting it with the geometry options:



documentclass[12pt]article
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in,headheight=67pt]geometry
usepackagehyperref
usepackagefancyhdr
usepackagetitlesec
usepackagelastpage
setcountersecnumdepth0
setlengthparskip4pt
titlespacing*section0pt2pt2pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[height=62pt]example-image-duck
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


enter image description here






share|improve this answer




















  • 1





    Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

    – GeoMoon
    Aug 8 at 13:07











  • The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

    – Ulrike Fischer
    Aug 8 at 13:12













8












8








8







give geometry the chance to know the headheight you are using by setting it with the geometry options:



documentclass[12pt]article
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in,headheight=67pt]geometry
usepackagehyperref
usepackagefancyhdr
usepackagetitlesec
usepackagelastpage
setcountersecnumdepth0
setlengthparskip4pt
titlespacing*section0pt2pt2pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[height=62pt]example-image-duck
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


enter image description here






share|improve this answer













give geometry the chance to know the headheight you are using by setting it with the geometry options:



documentclass[12pt]article
usepackage[utf8]inputenc
usepackagegraphicx
usepackage[includeheadfoot, margin=1in,headheight=67pt]geometry
usepackagehyperref
usepackagefancyhdr
usepackagetitlesec
usepackagelastpage
setcountersecnumdepth0
setlengthparskip4pt
titlespacing*section0pt2pt2pt
pagestylefancy
fancyhf

fancyhead[C]
lheadincludegraphics[height=62pt]example-image-duck
renewcommandheadrulewidth0.4pt
fancyfoot[R]small ~Page thepage~of pagerefLastPage
lfootsmall Collections Guide \ Last Updated: 07/28/2017
renewcommandfootrulewidth0.4pt

begindocument

First line of the document.

Second line of the document.

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 8 at 13:01









Ulrike FischerUlrike Fischer

213k9 gold badges320 silver badges720 bronze badges




213k9 gold badges320 silver badges720 bronze badges










  • 1





    Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

    – GeoMoon
    Aug 8 at 13:07











  • The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

    – Ulrike Fischer
    Aug 8 at 13:12












  • 1





    Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

    – GeoMoon
    Aug 8 at 13:07











  • The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

    – Ulrike Fischer
    Aug 8 at 13:12







1




1





Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

– GeoMoon
Aug 8 at 13:07





Brilliant! I added the includeheadfoot and moved the headheight to geometry as you suggested, and it worked beautifully. When I included the headheight outside of geometry, was I essentially overwriting the parameters I initially ascribed within the geometry package?

– GeoMoon
Aug 8 at 13:07













The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

– Ulrike Fischer
Aug 8 at 13:12





The overwriting is not the main problem. The values not independant: when you enlarge the headheight you also need to shorten the textheight. geometry is doing this for you, but only if you give it all the values.

– Ulrike Fischer
Aug 8 at 13:12

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f503377%2fchanging-headheight-pushes-footer-off-page%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form