Main text goes over header
How could I fix it?
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
New contributor
add a comment |
How could I fix it?
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
New contributor
add a comment |
How could I fix it?
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
New contributor
How could I fix it?
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
header-footer
New contributor
New contributor
New contributor
asked Dec 17 at 19:44
Lucas Martins
905
905
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
use
usepackage[top=5mm,includehead,headheight=45pt,
left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
add a comment |
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
});
}
});
Lucas Martins is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 17 at 20:34
David Carlisle
481k3811121848
481k3811121848
add a comment |
add a comment |
use
usepackage[top=5mm,includehead,headheight=45pt,
left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
add a comment |
use
usepackage[top=5mm,includehead,headheight=45pt,
left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
add a comment |
use
usepackage[top=5mm,includehead,headheight=45pt,
left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
use
usepackage[top=5mm,includehead,headheight=45pt,
left=1.5cm,bottom=2cm,right=1.5cm,headsep=0.3cm]{geometry}
answered Dec 17 at 20:39
Herbert
268k24407716
268k24407716
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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