Main text goes over header











up vote
3
down vote

favorite












How could I fix it?



enter image description here



Here is the code:



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[top=1cm,left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
usepackage{tikz}
usepackage{graphicx}
usepackage{multicol}
usepackage{amsfonts,amssymb,amsmath}
usepackage{xcolor}
usepackage{fancyhdr}
pagestyle{fancy}
usepackage{pbox}
usepackage{lipsum}

renewcommand{headrulewidth}{1.2pt}% linha no header
renewcommand{footrulewidth}{1.2pt} % linha no footer

lfoot{tt Prof. Lucas}
cfoot{LaTeX}
rfoot{tt today}


fancypagestyle{firststyle}
{
lhead{
defsc{0.6}
defrc{sc*0.1cm} % rc = 10% de sc
begin{tikzpicture}[scale=sc]
definecolor{tempcolor}{RGB}{50,160,65}
filldraw[tempcolor][rounded corners=rc] (0cm,0cm) rectangle (1.2cm,1cm);
end{tikzpicture}
}
rhead{tikz node at (0,0) { textbf{2ª Prova de Física - 2º Semestre}};\
tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=8.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Aluno(a)}:}] { phantom{tt 15,0} };}
tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=2cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Turma}:}] {phantom{tt 15,0}};}
tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Valor}:}] { tt 15,0};}
tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Nota}:}] {phantom{tt 15,0}};}
}
lfoot{tt Prof. Lucas}
cfoot{LaTeX}
rfoot{tt today}
}

setlength{headsep}{dimexprheadsep+1.2baselineskip+.4pt}

begin{document}

thispagestyle{firststyle}

begin{multicols}{2}

lipsum[3-20]

end{multicols}

end{document}









share|improve this question







New contributor




Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    3
    down vote

    favorite












    How could I fix it?



    enter image description here



    Here is the code:



    documentclass[a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[top=1cm,left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
    usepackage{tikz}
    usepackage{graphicx}
    usepackage{multicol}
    usepackage{amsfonts,amssymb,amsmath}
    usepackage{xcolor}
    usepackage{fancyhdr}
    pagestyle{fancy}
    usepackage{pbox}
    usepackage{lipsum}

    renewcommand{headrulewidth}{1.2pt}% linha no header
    renewcommand{footrulewidth}{1.2pt} % linha no footer

    lfoot{tt Prof. Lucas}
    cfoot{LaTeX}
    rfoot{tt today}


    fancypagestyle{firststyle}
    {
    lhead{
    defsc{0.6}
    defrc{sc*0.1cm} % rc = 10% de sc
    begin{tikzpicture}[scale=sc]
    definecolor{tempcolor}{RGB}{50,160,65}
    filldraw[tempcolor][rounded corners=rc] (0cm,0cm) rectangle (1.2cm,1cm);
    end{tikzpicture}
    }
    rhead{tikz node at (0,0) { textbf{2ª Prova de Física - 2º Semestre}};\
    tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=8.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Aluno(a)}:}] { phantom{tt 15,0} };}
    tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=2cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Turma}:}] {phantom{tt 15,0}};}
    tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Valor}:}] { tt 15,0};}
    tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Nota}:}] {phantom{tt 15,0}};}
    }
    lfoot{tt Prof. Lucas}
    cfoot{LaTeX}
    rfoot{tt today}
    }

    setlength{headsep}{dimexprheadsep+1.2baselineskip+.4pt}

    begin{document}

    thispagestyle{firststyle}

    begin{multicols}{2}

    lipsum[3-20]

    end{multicols}

    end{document}









    share|improve this question







    New contributor




    Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      How could I fix it?



      enter image description here



      Here is the code:



      documentclass[a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[top=1cm,left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
      usepackage{tikz}
      usepackage{graphicx}
      usepackage{multicol}
      usepackage{amsfonts,amssymb,amsmath}
      usepackage{xcolor}
      usepackage{fancyhdr}
      pagestyle{fancy}
      usepackage{pbox}
      usepackage{lipsum}

      renewcommand{headrulewidth}{1.2pt}% linha no header
      renewcommand{footrulewidth}{1.2pt} % linha no footer

      lfoot{tt Prof. Lucas}
      cfoot{LaTeX}
      rfoot{tt today}


      fancypagestyle{firststyle}
      {
      lhead{
      defsc{0.6}
      defrc{sc*0.1cm} % rc = 10% de sc
      begin{tikzpicture}[scale=sc]
      definecolor{tempcolor}{RGB}{50,160,65}
      filldraw[tempcolor][rounded corners=rc] (0cm,0cm) rectangle (1.2cm,1cm);
      end{tikzpicture}
      }
      rhead{tikz node at (0,0) { textbf{2ª Prova de Física - 2º Semestre}};\
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=8.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Aluno(a)}:}] { phantom{tt 15,0} };}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=2cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Turma}:}] {phantom{tt 15,0}};}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Valor}:}] { tt 15,0};}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Nota}:}] {phantom{tt 15,0}};}
      }
      lfoot{tt Prof. Lucas}
      cfoot{LaTeX}
      rfoot{tt today}
      }

      setlength{headsep}{dimexprheadsep+1.2baselineskip+.4pt}

      begin{document}

      thispagestyle{firststyle}

      begin{multicols}{2}

      lipsum[3-20]

      end{multicols}

      end{document}









      share|improve this question







      New contributor




      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      How could I fix it?



      enter image description here



      Here is the code:



      documentclass[a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[top=1cm,left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
      usepackage{tikz}
      usepackage{graphicx}
      usepackage{multicol}
      usepackage{amsfonts,amssymb,amsmath}
      usepackage{xcolor}
      usepackage{fancyhdr}
      pagestyle{fancy}
      usepackage{pbox}
      usepackage{lipsum}

      renewcommand{headrulewidth}{1.2pt}% linha no header
      renewcommand{footrulewidth}{1.2pt} % linha no footer

      lfoot{tt Prof. Lucas}
      cfoot{LaTeX}
      rfoot{tt today}


      fancypagestyle{firststyle}
      {
      lhead{
      defsc{0.6}
      defrc{sc*0.1cm} % rc = 10% de sc
      begin{tikzpicture}[scale=sc]
      definecolor{tempcolor}{RGB}{50,160,65}
      filldraw[tempcolor][rounded corners=rc] (0cm,0cm) rectangle (1.2cm,1cm);
      end{tikzpicture}
      }
      rhead{tikz node at (0,0) { textbf{2ª Prova de Física - 2º Semestre}};\
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=8.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Aluno(a)}:}] { phantom{tt 15,0} };}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=2cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Turma}:}] {phantom{tt 15,0}};}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Valor}:}] { tt 15,0};}
      tikz[baseline]{node[anchor=base, draw=black, thick, minimum width=1.5cm, minimum height=7mm,rounded corners, yshift=-2mm,label={[fill=white,label distance=-2mm,inner xsep=2pt]90:{tt Nota}:}] {phantom{tt 15,0}};}
      }
      lfoot{tt Prof. Lucas}
      cfoot{LaTeX}
      rfoot{tt today}
      }

      setlength{headsep}{dimexprheadsep+1.2baselineskip+.4pt}

      begin{document}

      thispagestyle{firststyle}

      begin{multicols}{2}

      lipsum[3-20]

      end{multicols}

      end{document}






      header-footer






      share|improve this question







      New contributor




      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      Lucas Martins

      162




      162




      New contributor




      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Lucas Martins is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          7
          down vote













          Your document produces the warning



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


          so adding



          setlengthheadheight{45pt}


          to the preamble would make things look better.






          share|improve this answer




























            up vote
            3
            down vote













            use



             usepackage[top=5mm,includehead,headheight=45pt,
            left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}





            share|improve this answer





















              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
              });


              }
              });






              Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.










              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466264%2fmain-text-goes-over-header%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
              7
              down vote













              Your document produces the warning



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


              so adding



              setlengthheadheight{45pt}


              to the preamble would make things look better.






              share|improve this answer

























                up vote
                7
                down vote













                Your document produces the warning



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


                so adding



                setlengthheadheight{45pt}


                to the preamble would make things look better.






                share|improve this answer























                  up vote
                  7
                  down vote










                  up vote
                  7
                  down vote









                  Your document produces the warning



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


                  so adding



                  setlengthheadheight{45pt}


                  to the preamble would make things look better.






                  share|improve this answer












                  Your document produces the warning



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


                  so adding



                  setlengthheadheight{45pt}


                  to the preamble would make things look better.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  David Carlisle

                  480k3811121848




                  480k3811121848






















                      up vote
                      3
                      down vote













                      use



                       usepackage[top=5mm,includehead,headheight=45pt,
                      left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}





                      share|improve this answer

























                        up vote
                        3
                        down vote













                        use



                         usepackage[top=5mm,includehead,headheight=45pt,
                        left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}





                        share|improve this answer























                          up vote
                          3
                          down vote










                          up vote
                          3
                          down vote









                          use



                           usepackage[top=5mm,includehead,headheight=45pt,
                          left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}





                          share|improve this answer












                          use



                           usepackage[top=5mm,includehead,headheight=45pt,
                          left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 2 hours ago









                          Herbert

                          268k23407716




                          268k23407716






















                              Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.










                              draft saved

                              draft discarded


















                              Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.













                              Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.












                              Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.
















                              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%2f466264%2fmain-text-goes-over-header%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

                              Costa Masnaga

                              Fotorealismo

                              Sidney Franklin