Overlapping body











up vote
4
down vote

favorite












I'm trying to keep body text inside its box but it overlaps the header. I tried using voffset, headsep and headheight, but it seems they do not work as I expect



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{showframe,blindtext,fontawesome}
usepackage{fancyhdr}
usepackage[a4paper, nomarginpar,margin=1in]{geometry}
pagestyle{fancy}
rhead{
{
fontsize{40pt}{60pt}selectfont
Foo Bar\
}
555faPhone\
555faPhone\
555faPhone\
noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
}
begin{document}
blindtext
end{document}









share|improve this question




























    up vote
    4
    down vote

    favorite












    I'm trying to keep body text inside its box but it overlaps the header. I tried using voffset, headsep and headheight, but it seems they do not work as I expect



    documentclass{article}
    usepackage[utf8]{inputenc}
    usepackage{showframe,blindtext,fontawesome}
    usepackage{fancyhdr}
    usepackage[a4paper, nomarginpar,margin=1in]{geometry}
    pagestyle{fancy}
    rhead{
    {
    fontsize{40pt}{60pt}selectfont
    Foo Bar\
    }
    555faPhone\
    555faPhone\
    555faPhone\
    noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
    }
    begin{document}
    blindtext
    end{document}









    share|improve this question


























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I'm trying to keep body text inside its box but it overlaps the header. I tried using voffset, headsep and headheight, but it seems they do not work as I expect



      documentclass{article}
      usepackage[utf8]{inputenc}
      usepackage{showframe,blindtext,fontawesome}
      usepackage{fancyhdr}
      usepackage[a4paper, nomarginpar,margin=1in]{geometry}
      pagestyle{fancy}
      rhead{
      {
      fontsize{40pt}{60pt}selectfont
      Foo Bar\
      }
      555faPhone\
      555faPhone\
      555faPhone\
      noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
      }
      begin{document}
      blindtext
      end{document}









      share|improve this question















      I'm trying to keep body text inside its box but it overlaps the header. I tried using voffset, headsep and headheight, but it seems they do not work as I expect



      documentclass{article}
      usepackage[utf8]{inputenc}
      usepackage{showframe,blindtext,fontawesome}
      usepackage{fancyhdr}
      usepackage[a4paper, nomarginpar,margin=1in]{geometry}
      pagestyle{fancy}
      rhead{
      {
      fontsize{40pt}{60pt}selectfont
      Foo Bar\
      }
      555faPhone\
      555faPhone\
      555faPhone\
      noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
      }
      begin{document}
      blindtext
      end{document}






      margins fancyhdr






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago









      Kurt

      34.4k846157




      34.4k846157










      asked 2 hours ago









      Rod

      1345




      1345






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Please have a look into the logfile of your code. There you find:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.


          That means you have to add an command to enlarge the headheight to 81pt:



          setlength{headheight}{81pt}


          With the following MWE



          documentclass[a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{blindtext,fontawesome}
          usepackage{fancyhdr}
          usepackage[showframe, nomarginpar,margin=1in]{geometry}
          pagestyle{fancy}
          rhead{
          {
          fontsize{40pt}{60pt}selectfont
          Foo Bar\
          }
          555faPhone\
          555faPhone\
          555faPhone\
          noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
          }
          setlength{headheight}{81pt} % <=======================================

          begin{document}
          blindtext
          end{document}


          you get the result:



          enter image description here






          share|improve this answer





















          • Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
            – Rod
            1 hour ago


















          up vote
          2
          down vote













          Your header is too tall and fancyhdr warns you about this:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.
          We now make it that large for the rest of the document.
          This may cause the page layout to be inconsistent, however.


          The important part here is that you'll see the header fitting better from page two onward.



          enter image description here



          Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight to 65pt is sufficient:



          enter image description here



          documentclass{article}
          usepackage{fancyhdr,graphicx,blindtext}
          usepackage{geometry}
          geometry{
          margin = 1in, % Set all margins to 1in
          headheight = 65pt, % Update header height to accommodate for large content
          tmargin = dimexpr1in+65pt % Update top margin to accommodate for large header content
          }

          rhead{includegraphics[height=5baselineskip]{example-image}}% Something big
          pagestyle{fancy}

          begin{document}

          blindtext[50]

          end{document}





          share|improve this answer





















          • Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
            – Rod
            1 hour ago











          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',
          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%2f463256%2foverlapping-body%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          Please have a look into the logfile of your code. There you find:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.


          That means you have to add an command to enlarge the headheight to 81pt:



          setlength{headheight}{81pt}


          With the following MWE



          documentclass[a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{blindtext,fontawesome}
          usepackage{fancyhdr}
          usepackage[showframe, nomarginpar,margin=1in]{geometry}
          pagestyle{fancy}
          rhead{
          {
          fontsize{40pt}{60pt}selectfont
          Foo Bar\
          }
          555faPhone\
          555faPhone\
          555faPhone\
          noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
          }
          setlength{headheight}{81pt} % <=======================================

          begin{document}
          blindtext
          end{document}


          you get the result:



          enter image description here






          share|improve this answer





















          • Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
            – Rod
            1 hour ago















          up vote
          2
          down vote



          accepted










          Please have a look into the logfile of your code. There you find:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.


          That means you have to add an command to enlarge the headheight to 81pt:



          setlength{headheight}{81pt}


          With the following MWE



          documentclass[a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{blindtext,fontawesome}
          usepackage{fancyhdr}
          usepackage[showframe, nomarginpar,margin=1in]{geometry}
          pagestyle{fancy}
          rhead{
          {
          fontsize{40pt}{60pt}selectfont
          Foo Bar\
          }
          555faPhone\
          555faPhone\
          555faPhone\
          noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
          }
          setlength{headheight}{81pt} % <=======================================

          begin{document}
          blindtext
          end{document}


          you get the result:



          enter image description here






          share|improve this answer





















          • Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
            – Rod
            1 hour ago













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Please have a look into the logfile of your code. There you find:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.


          That means you have to add an command to enlarge the headheight to 81pt:



          setlength{headheight}{81pt}


          With the following MWE



          documentclass[a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{blindtext,fontawesome}
          usepackage{fancyhdr}
          usepackage[showframe, nomarginpar,margin=1in]{geometry}
          pagestyle{fancy}
          rhead{
          {
          fontsize{40pt}{60pt}selectfont
          Foo Bar\
          }
          555faPhone\
          555faPhone\
          555faPhone\
          noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
          }
          setlength{headheight}{81pt} % <=======================================

          begin{document}
          blindtext
          end{document}


          you get the result:



          enter image description here






          share|improve this answer












          Please have a look into the logfile of your code. There you find:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.


          That means you have to add an command to enlarge the headheight to 81pt:



          setlength{headheight}{81pt}


          With the following MWE



          documentclass[a4paper]{article}
          usepackage[utf8]{inputenc}
          usepackage{blindtext,fontawesome}
          usepackage{fancyhdr}
          usepackage[showframe, nomarginpar,margin=1in]{geometry}
          pagestyle{fancy}
          rhead{
          {
          fontsize{40pt}{60pt}selectfont
          Foo Bar\
          }
          555faPhone\
          555faPhone\
          555faPhone\
          noindentmakebox[linewidth]{rule{linewidth}{0.4pt}}
          }
          setlength{headheight}{81pt} % <=======================================

          begin{document}
          blindtext
          end{document}


          you get the result:



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Kurt

          34.4k846157




          34.4k846157












          • Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
            – Rod
            1 hour ago


















          • Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
            – Rod
            1 hour ago
















          Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
          – Rod
          1 hour ago




          Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
          – Rod
          1 hour ago










          up vote
          2
          down vote













          Your header is too tall and fancyhdr warns you about this:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.
          We now make it that large for the rest of the document.
          This may cause the page layout to be inconsistent, however.


          The important part here is that you'll see the header fitting better from page two onward.



          enter image description here



          Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight to 65pt is sufficient:



          enter image description here



          documentclass{article}
          usepackage{fancyhdr,graphicx,blindtext}
          usepackage{geometry}
          geometry{
          margin = 1in, % Set all margins to 1in
          headheight = 65pt, % Update header height to accommodate for large content
          tmargin = dimexpr1in+65pt % Update top margin to accommodate for large header content
          }

          rhead{includegraphics[height=5baselineskip]{example-image}}% Something big
          pagestyle{fancy}

          begin{document}

          blindtext[50]

          end{document}





          share|improve this answer





















          • Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
            – Rod
            1 hour ago















          up vote
          2
          down vote













          Your header is too tall and fancyhdr warns you about this:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.
          We now make it that large for the rest of the document.
          This may cause the page layout to be inconsistent, however.


          The important part here is that you'll see the header fitting better from page two onward.



          enter image description here



          Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight to 65pt is sufficient:



          enter image description here



          documentclass{article}
          usepackage{fancyhdr,graphicx,blindtext}
          usepackage{geometry}
          geometry{
          margin = 1in, % Set all margins to 1in
          headheight = 65pt, % Update header height to accommodate for large content
          tmargin = dimexpr1in+65pt % Update top margin to accommodate for large header content
          }

          rhead{includegraphics[height=5baselineskip]{example-image}}% Something big
          pagestyle{fancy}

          begin{document}

          blindtext[50]

          end{document}





          share|improve this answer





















          • Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
            – Rod
            1 hour ago













          up vote
          2
          down vote










          up vote
          2
          down vote









          Your header is too tall and fancyhdr warns you about this:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.
          We now make it that large for the rest of the document.
          This may cause the page layout to be inconsistent, however.


          The important part here is that you'll see the header fitting better from page two onward.



          enter image description here



          Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight to 65pt is sufficient:



          enter image description here



          documentclass{article}
          usepackage{fancyhdr,graphicx,blindtext}
          usepackage{geometry}
          geometry{
          margin = 1in, % Set all margins to 1in
          headheight = 65pt, % Update header height to accommodate for large content
          tmargin = dimexpr1in+65pt % Update top margin to accommodate for large header content
          }

          rhead{includegraphics[height=5baselineskip]{example-image}}% Something big
          pagestyle{fancy}

          begin{document}

          blindtext[50]

          end{document}





          share|improve this answer












          Your header is too tall and fancyhdr warns you about this:



          Package Fancyhdr Warning: headheight is too small (12.0pt): 
          Make it at least 80.59785pt.
          We now make it that large for the rest of the document.
          This may cause the page layout to be inconsistent, however.


          The important part here is that you'll see the header fitting better from page two onward.



          enter image description here



          Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight to 65pt is sufficient:



          enter image description here



          documentclass{article}
          usepackage{fancyhdr,graphicx,blindtext}
          usepackage{geometry}
          geometry{
          margin = 1in, % Set all margins to 1in
          headheight = 65pt, % Update header height to accommodate for large content
          tmargin = dimexpr1in+65pt % Update top margin to accommodate for large header content
          }

          rhead{includegraphics[height=5baselineskip]{example-image}}% Something big
          pagestyle{fancy}

          begin{document}

          blindtext[50]

          end{document}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Werner

          433k609531635




          433k609531635












          • Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
            – Rod
            1 hour ago


















          • Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
            – Rod
            1 hour ago
















          Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
          – Rod
          1 hour ago




          Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
          – Rod
          1 hour ago


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f463256%2foverlapping-body%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

          404 Error Contact Form 7 ajax form submitting

          How to know if a Active Directory user can login interactively

          TypeError: fit_transform() missing 1 required positional argument: 'X'