Fancyhdr header goes on top of main text












2














I have a problem with headers and footers. When im making header, it goes on the top of my text. Maybe someone can help to fix it.



documentclass[11pt,a4paper,oneside]{article}
usepackage{fancyhdr}
titleformat{section}[block]{Largebfseriesfilcenter}{thesection}{1em}{}
titleformat{subsection}[hang]{bfseriesfilcenter}{thesubsection}{1em}{}
titleformat{subsubsection}[hang]{bfseriesfilcenter}{thesubsubsection}{1em}{}
renewcommand{thesection}{arabic{section}}pagestyle{fancy}
fancyfoot{}
fancyfoot[LE,LO]{MY TEXT}
renewcommand{footrulewidth}{0.4pt}
begin{document}


and this is result, which i get: enter image description here



I hope it is enough info to fix it. Thanks!










share|improve this question




















  • 1




    It's not enough; please make a minimal working example (MWE)
    – egreg
    Aug 22 '13 at 13:37










  • i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
    – user34480
    Aug 22 '13 at 13:45










  • Click the hyper link in @egreg's comment.
    – dustin
    Aug 22 '13 at 13:47






  • 1




    Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
    – MBR
    Aug 22 '13 at 14:40










  • I had this issue because I included usepackage{fullpage}
    – galgalesh
    Dec 14 '18 at 16:20
















2














I have a problem with headers and footers. When im making header, it goes on the top of my text. Maybe someone can help to fix it.



documentclass[11pt,a4paper,oneside]{article}
usepackage{fancyhdr}
titleformat{section}[block]{Largebfseriesfilcenter}{thesection}{1em}{}
titleformat{subsection}[hang]{bfseriesfilcenter}{thesubsection}{1em}{}
titleformat{subsubsection}[hang]{bfseriesfilcenter}{thesubsubsection}{1em}{}
renewcommand{thesection}{arabic{section}}pagestyle{fancy}
fancyfoot{}
fancyfoot[LE,LO]{MY TEXT}
renewcommand{footrulewidth}{0.4pt}
begin{document}


and this is result, which i get: enter image description here



I hope it is enough info to fix it. Thanks!










share|improve this question




















  • 1




    It's not enough; please make a minimal working example (MWE)
    – egreg
    Aug 22 '13 at 13:37










  • i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
    – user34480
    Aug 22 '13 at 13:45










  • Click the hyper link in @egreg's comment.
    – dustin
    Aug 22 '13 at 13:47






  • 1




    Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
    – MBR
    Aug 22 '13 at 14:40










  • I had this issue because I included usepackage{fullpage}
    – galgalesh
    Dec 14 '18 at 16:20














2












2








2







I have a problem with headers and footers. When im making header, it goes on the top of my text. Maybe someone can help to fix it.



documentclass[11pt,a4paper,oneside]{article}
usepackage{fancyhdr}
titleformat{section}[block]{Largebfseriesfilcenter}{thesection}{1em}{}
titleformat{subsection}[hang]{bfseriesfilcenter}{thesubsection}{1em}{}
titleformat{subsubsection}[hang]{bfseriesfilcenter}{thesubsubsection}{1em}{}
renewcommand{thesection}{arabic{section}}pagestyle{fancy}
fancyfoot{}
fancyfoot[LE,LO]{MY TEXT}
renewcommand{footrulewidth}{0.4pt}
begin{document}


and this is result, which i get: enter image description here



I hope it is enough info to fix it. Thanks!










share|improve this question















I have a problem with headers and footers. When im making header, it goes on the top of my text. Maybe someone can help to fix it.



documentclass[11pt,a4paper,oneside]{article}
usepackage{fancyhdr}
titleformat{section}[block]{Largebfseriesfilcenter}{thesection}{1em}{}
titleformat{subsection}[hang]{bfseriesfilcenter}{thesubsection}{1em}{}
titleformat{subsubsection}[hang]{bfseriesfilcenter}{thesubsubsection}{1em}{}
renewcommand{thesection}{arabic{section}}pagestyle{fancy}
fancyfoot{}
fancyfoot[LE,LO]{MY TEXT}
renewcommand{footrulewidth}{0.4pt}
begin{document}


and this is result, which i get: enter image description here



I hope it is enough info to fix it. Thanks!







header-footer fancyhdr






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 22 '13 at 13:44

























asked Aug 22 '13 at 13:35







user34480















  • 1




    It's not enough; please make a minimal working example (MWE)
    – egreg
    Aug 22 '13 at 13:37










  • i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
    – user34480
    Aug 22 '13 at 13:45










  • Click the hyper link in @egreg's comment.
    – dustin
    Aug 22 '13 at 13:47






  • 1




    Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
    – MBR
    Aug 22 '13 at 14:40










  • I had this issue because I included usepackage{fullpage}
    – galgalesh
    Dec 14 '18 at 16:20














  • 1




    It's not enough; please make a minimal working example (MWE)
    – egreg
    Aug 22 '13 at 13:37










  • i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
    – user34480
    Aug 22 '13 at 13:45










  • Click the hyper link in @egreg's comment.
    – dustin
    Aug 22 '13 at 13:47






  • 1




    Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
    – MBR
    Aug 22 '13 at 14:40










  • I had this issue because I included usepackage{fullpage}
    – galgalesh
    Dec 14 '18 at 16:20








1




1




It's not enough; please make a minimal working example (MWE)
– egreg
Aug 22 '13 at 13:37




It's not enough; please make a minimal working example (MWE)
– egreg
Aug 22 '13 at 13:37












i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
– user34480
Aug 22 '13 at 13:45




i dont know if i understood correctly what is MWE, but i tried to put more info in my code. I dont know if thats right
– user34480
Aug 22 '13 at 13:45












Click the hyper link in @egreg's comment.
– dustin
Aug 22 '13 at 13:47




Click the hyper link in @egreg's comment.
– dustin
Aug 22 '13 at 13:47




1




1




Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
– MBR
Aug 22 '13 at 14:40




Looking at your output, I would say that you use more than fancyhdr to produce your document; in particular, the layout of your sections/subsections in not standard. Moreover, still based on the result of your code, I would say that you should play with the different lengths of your page (you can find the different lengths and what are their use in the fancyhdr documentation, page 3), something is probably wrong regarding the textheight, the topmargin or the headheight.
– MBR
Aug 22 '13 at 14:40












I had this issue because I included usepackage{fullpage}
– galgalesh
Dec 14 '18 at 16:20




I had this issue because I included usepackage{fullpage}
– galgalesh
Dec 14 '18 at 16:20










1 Answer
1






active

oldest

votes


















0














You should set the page style to fancy and clean the fancy header with following command:



usepackage{fancyhdr}
setlength{headheight}{15.2pt}
pagestyle{fancy}
renewcommand{headrulewidth}{0pt} % no line in header area
fancyhead{}
chead{your header in center} %lhead and rhead also available





share|improve this answer























  • There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
    – MBR
    Aug 23 '13 at 7:51










  • @MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
    – sajjadG
    Aug 23 '13 at 7:57










  • it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
    – user34480
    Aug 26 '13 at 12:41






  • 1




    @MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
    – sajjadG
    Aug 26 '13 at 12:46











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%2f129566%2ffancyhdr-header-goes-on-top-of-main-text%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









0














You should set the page style to fancy and clean the fancy header with following command:



usepackage{fancyhdr}
setlength{headheight}{15.2pt}
pagestyle{fancy}
renewcommand{headrulewidth}{0pt} % no line in header area
fancyhead{}
chead{your header in center} %lhead and rhead also available





share|improve this answer























  • There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
    – MBR
    Aug 23 '13 at 7:51










  • @MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
    – sajjadG
    Aug 23 '13 at 7:57










  • it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
    – user34480
    Aug 26 '13 at 12:41






  • 1




    @MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
    – sajjadG
    Aug 26 '13 at 12:46
















0














You should set the page style to fancy and clean the fancy header with following command:



usepackage{fancyhdr}
setlength{headheight}{15.2pt}
pagestyle{fancy}
renewcommand{headrulewidth}{0pt} % no line in header area
fancyhead{}
chead{your header in center} %lhead and rhead also available





share|improve this answer























  • There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
    – MBR
    Aug 23 '13 at 7:51










  • @MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
    – sajjadG
    Aug 23 '13 at 7:57










  • it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
    – user34480
    Aug 26 '13 at 12:41






  • 1




    @MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
    – sajjadG
    Aug 26 '13 at 12:46














0












0








0






You should set the page style to fancy and clean the fancy header with following command:



usepackage{fancyhdr}
setlength{headheight}{15.2pt}
pagestyle{fancy}
renewcommand{headrulewidth}{0pt} % no line in header area
fancyhead{}
chead{your header in center} %lhead and rhead also available





share|improve this answer














You should set the page style to fancy and clean the fancy header with following command:



usepackage{fancyhdr}
setlength{headheight}{15.2pt}
pagestyle{fancy}
renewcommand{headrulewidth}{0pt} % no line in header area
fancyhead{}
chead{your header in center} %lhead and rhead also available






share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 23 '13 at 7:55

























answered Aug 22 '13 at 17:44









sajjadG

3631414




3631414












  • There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
    – MBR
    Aug 23 '13 at 7:51










  • @MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
    – sajjadG
    Aug 23 '13 at 7:57










  • it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
    – user34480
    Aug 26 '13 at 12:41






  • 1




    @MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
    – sajjadG
    Aug 26 '13 at 12:46


















  • There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
    – MBR
    Aug 23 '13 at 7:51










  • @MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
    – sajjadG
    Aug 23 '13 at 7:57










  • it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
    – user34480
    Aug 26 '13 at 12:41






  • 1




    @MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
    – sajjadG
    Aug 26 '13 at 12:46
















There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
– MBR
Aug 23 '13 at 7:51




There is already a pagestyle{fancy} hidden in is bit of code, and I strongly suspect that what you say won't help since it is more a problem related to the size of the elements of the page than anything else.
– MBR
Aug 23 '13 at 7:51












@MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
– sajjadG
Aug 23 '13 at 7:57




@MBR I had this problem and solve it by this code. I updated with my working copy. place this before begin{document}
– sajjadG
Aug 23 '13 at 7:57












it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
– user34480
Aug 26 '13 at 12:41




it was very usefull answer, thank yuou. And i have one more question, how to make bigger gap between header line and main text?
– user34480
Aug 26 '13 at 12:41




1




1




@MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
– sajjadG
Aug 26 '13 at 12:46




@MindaugasTruklickas I'm glad it could help. For your new question take a look at tex.stackexchange.com/questions/85178/… and tex.stackexchange.com/questions/10896/…
– sajjadG
Aug 26 '13 at 12:46


















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%2f129566%2ffancyhdr-header-goes-on-top-of-main-text%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

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents