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}
margins fancyhdr
add a comment |
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}
margins fancyhdr
add a comment |
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}
margins fancyhdr
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
margins fancyhdr
edited 3 hours ago
Kurt
34.4k846157
34.4k846157
asked 4 hours ago
Rod
1345
1345
add a comment |
add a comment |
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:
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
add a comment |
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.
Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight
to 65pt
is sufficient:
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}
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
add a comment |
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:
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
add a comment |
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:
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
add a comment |
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:
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:
answered 3 hours 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
3 hours ago
add a comment |
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
Thank you @Kurt, I tried 81pt inside of usepage{geometry} but it did not work, but your solution works as I expected.
– Rod
3 hours ago
add a comment |
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.
Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight
to 65pt
is sufficient:
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}
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
add a comment |
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.
Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight
to 65pt
is sufficient:
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}
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
add a comment |
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.
Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight
to 65pt
is sufficient:
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}
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.
Below is a similar example with an oversized image requiring at least 63.60004pt; setting headheight
to 65pt
is sufficient:
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}
answered 3 hours 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
3 hours ago
add a comment |
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
Thank you @Werner, your solution adjusts the header but body text seems to be misaligned, at least in my example.
– Rod
3 hours ago
add a comment |
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%2f463256%2foverlapping-body%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