Modify the header and footer












2















I want to obtain in the header like the following



enter image description here



And in the footer



enter image description here



        documentclass[12pt,a4paper]{report}

usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page

newcommand{clearemptydoublepage}{%
newpage{pagestyle{plain}cleardoublepage}}

setlength{headheight}{14.5pt}

fancyhead[L,R]{bfseriesthepage}% Left Even, Right Odd
fancyhead[L]{bfseriesrightmark} % Left Odd
fancyhead[R]{bfseriesleftmark} % Right Even
rhead{textbf{thepage}} %{textsl{rightmark}}
lhead{textsl{nouppercase{leftmark}}}%{textbf{thepage}}



begin{document}
chapter{Semigroup theory and sesquilinear forms}
newpage
cc

begin{thebibliography}{999}
newpage
bibitem{ax}{O. Rhandi,} {...,} ....
end{thebibliography}

end{document}



I don't understand how to add footer. Also after compilation I get in the header




enter image description here










share|improve this question

























  • Where is the problem right now?

    – Johannes_B
    Dec 9 '18 at 8:23











  • Is en.wikibooks.org/wiki/LaTeX/… helping?

    – Johannes_B
    Dec 9 '18 at 8:24











  • I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

    – Schüler
    Dec 9 '18 at 8:24











  • @Johannes_B Please see my edit.

    – Schüler
    Dec 9 '18 at 8:28











  • fancyfoot{}?

    – JouleV
    Dec 9 '18 at 8:30
















2















I want to obtain in the header like the following



enter image description here



And in the footer



enter image description here



        documentclass[12pt,a4paper]{report}

usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page

newcommand{clearemptydoublepage}{%
newpage{pagestyle{plain}cleardoublepage}}

setlength{headheight}{14.5pt}

fancyhead[L,R]{bfseriesthepage}% Left Even, Right Odd
fancyhead[L]{bfseriesrightmark} % Left Odd
fancyhead[R]{bfseriesleftmark} % Right Even
rhead{textbf{thepage}} %{textsl{rightmark}}
lhead{textsl{nouppercase{leftmark}}}%{textbf{thepage}}



begin{document}
chapter{Semigroup theory and sesquilinear forms}
newpage
cc

begin{thebibliography}{999}
newpage
bibitem{ax}{O. Rhandi,} {...,} ....
end{thebibliography}

end{document}



I don't understand how to add footer. Also after compilation I get in the header




enter image description here










share|improve this question

























  • Where is the problem right now?

    – Johannes_B
    Dec 9 '18 at 8:23











  • Is en.wikibooks.org/wiki/LaTeX/… helping?

    – Johannes_B
    Dec 9 '18 at 8:24











  • I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

    – Schüler
    Dec 9 '18 at 8:24











  • @Johannes_B Please see my edit.

    – Schüler
    Dec 9 '18 at 8:28











  • fancyfoot{}?

    – JouleV
    Dec 9 '18 at 8:30














2












2








2


0






I want to obtain in the header like the following



enter image description here



And in the footer



enter image description here



        documentclass[12pt,a4paper]{report}

usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page

newcommand{clearemptydoublepage}{%
newpage{pagestyle{plain}cleardoublepage}}

setlength{headheight}{14.5pt}

fancyhead[L,R]{bfseriesthepage}% Left Even, Right Odd
fancyhead[L]{bfseriesrightmark} % Left Odd
fancyhead[R]{bfseriesleftmark} % Right Even
rhead{textbf{thepage}} %{textsl{rightmark}}
lhead{textsl{nouppercase{leftmark}}}%{textbf{thepage}}



begin{document}
chapter{Semigroup theory and sesquilinear forms}
newpage
cc

begin{thebibliography}{999}
newpage
bibitem{ax}{O. Rhandi,} {...,} ....
end{thebibliography}

end{document}



I don't understand how to add footer. Also after compilation I get in the header




enter image description here










share|improve this question
















I want to obtain in the header like the following



enter image description here



And in the footer



enter image description here



        documentclass[12pt,a4paper]{report}

usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page

newcommand{clearemptydoublepage}{%
newpage{pagestyle{plain}cleardoublepage}}

setlength{headheight}{14.5pt}

fancyhead[L,R]{bfseriesthepage}% Left Even, Right Odd
fancyhead[L]{bfseriesrightmark} % Left Odd
fancyhead[R]{bfseriesleftmark} % Right Even
rhead{textbf{thepage}} %{textsl{rightmark}}
lhead{textsl{nouppercase{leftmark}}}%{textbf{thepage}}



begin{document}
chapter{Semigroup theory and sesquilinear forms}
newpage
cc

begin{thebibliography}{999}
newpage
bibitem{ax}{O. Rhandi,} {...,} ....
end{thebibliography}

end{document}



I don't understand how to add footer. Also after compilation I get in the header




enter image description here







header-footer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 '18 at 8:28







Schüler

















asked Dec 9 '18 at 8:22









SchülerSchüler

28819




28819













  • Where is the problem right now?

    – Johannes_B
    Dec 9 '18 at 8:23











  • Is en.wikibooks.org/wiki/LaTeX/… helping?

    – Johannes_B
    Dec 9 '18 at 8:24











  • I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

    – Schüler
    Dec 9 '18 at 8:24











  • @Johannes_B Please see my edit.

    – Schüler
    Dec 9 '18 at 8:28











  • fancyfoot{}?

    – JouleV
    Dec 9 '18 at 8:30



















  • Where is the problem right now?

    – Johannes_B
    Dec 9 '18 at 8:23











  • Is en.wikibooks.org/wiki/LaTeX/… helping?

    – Johannes_B
    Dec 9 '18 at 8:24











  • I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

    – Schüler
    Dec 9 '18 at 8:24











  • @Johannes_B Please see my edit.

    – Schüler
    Dec 9 '18 at 8:28











  • fancyfoot{}?

    – JouleV
    Dec 9 '18 at 8:30

















Where is the problem right now?

– Johannes_B
Dec 9 '18 at 8:23





Where is the problem right now?

– Johannes_B
Dec 9 '18 at 8:23













Is en.wikibooks.org/wiki/LaTeX/… helping?

– Johannes_B
Dec 9 '18 at 8:24





Is en.wikibooks.org/wiki/LaTeX/… helping?

– Johannes_B
Dec 9 '18 at 8:24













I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

– Schüler
Dec 9 '18 at 8:24





I don't know how to add footer. Also I want to omit chpater and include only the name of the chapter.

– Schüler
Dec 9 '18 at 8:24













@Johannes_B Please see my edit.

– Schüler
Dec 9 '18 at 8:28





@Johannes_B Please see my edit.

– Schüler
Dec 9 '18 at 8:28













fancyfoot{}?

– JouleV
Dec 9 '18 at 8:30





fancyfoot{}?

– JouleV
Dec 9 '18 at 8:30










2 Answers
2






active

oldest

votes


















3














With fancyhdr:



schuelerHeaderFooter2



documentclass[12pt,a4paper]{report}

usepackage{mwe}% Just for the example
usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page% A line of zero width in invisible

%newcommand{clearemptydoublepage}{%
%newpage{pagestyle{plain}cleardoublepage}}%That doesn't make any sense at all in a oneside document

setlength{headheight}{14.5pt}

renewcommand{chaptermark}[1]{markboth{#1}{}}
rhead{thepage}
lhead{leftmark}
lfoot{The title of the work}
rfoot{Carl Capybara}
cfoot{}



begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]

end{document}





share|improve this answer


























  • Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

    – Schüler
    Dec 9 '18 at 9:24











  • @Schüler I wouldn't use it.

    – Johannes_B
    Dec 9 '18 at 9:35











  • Yes I mean in what case one should use it? Thanks.

    – Schüler
    Dec 9 '18 at 9:38











  • @Schüler Never. It is nonsense.

    – Johannes_B
    Dec 9 '18 at 10:01











  • My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

    – Schüler
    Dec 9 '18 at 10:19



















1














With scrlayer-scrpage as shown in the Wikibook.



schuelerHeaderFooter



documentclass[headsepline,footsepline]{report}
usepackage{mwe}% just for the example

usepackage[markcase=noupper,% remove the uppercasing
automark
]{scrlayer-scrpage}

addtokomafont{pagehead}{sffamily}
addtokomafont{pagefoot}{sffamily}

ifoot*{Is life on Mars possible?}
ofoot*{Walter Wombat}
cfoot*{}
ohead*{pagemark}
ihead{leftmark}

renewcommand{chaptermarkformat}{}
setlength{footheight}{24.0pt}

begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]
end{document}





share|improve this answer


























  • @moewe Yes, sure. I forgot about that. Thanks

    – Johannes_B
    Dec 9 '18 at 8:46











  • Good, I just wanted to make sure I hadn't missed anything really obvious.

    – moewe
    Dec 9 '18 at 8:49













  • @Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

    – Schüler
    Dec 9 '18 at 8:49











  • @Schüler rfoot{Name}?

    – Johannes_B
    Dec 9 '18 at 8:54











  • Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

    – Schüler
    Dec 9 '18 at 8:57











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%2f463909%2fmodify-the-header-and-footer%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









3














With fancyhdr:



schuelerHeaderFooter2



documentclass[12pt,a4paper]{report}

usepackage{mwe}% Just for the example
usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page% A line of zero width in invisible

%newcommand{clearemptydoublepage}{%
%newpage{pagestyle{plain}cleardoublepage}}%That doesn't make any sense at all in a oneside document

setlength{headheight}{14.5pt}

renewcommand{chaptermark}[1]{markboth{#1}{}}
rhead{thepage}
lhead{leftmark}
lfoot{The title of the work}
rfoot{Carl Capybara}
cfoot{}



begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]

end{document}





share|improve this answer


























  • Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

    – Schüler
    Dec 9 '18 at 9:24











  • @Schüler I wouldn't use it.

    – Johannes_B
    Dec 9 '18 at 9:35











  • Yes I mean in what case one should use it? Thanks.

    – Schüler
    Dec 9 '18 at 9:38











  • @Schüler Never. It is nonsense.

    – Johannes_B
    Dec 9 '18 at 10:01











  • My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

    – Schüler
    Dec 9 '18 at 10:19
















3














With fancyhdr:



schuelerHeaderFooter2



documentclass[12pt,a4paper]{report}

usepackage{mwe}% Just for the example
usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page% A line of zero width in invisible

%newcommand{clearemptydoublepage}{%
%newpage{pagestyle{plain}cleardoublepage}}%That doesn't make any sense at all in a oneside document

setlength{headheight}{14.5pt}

renewcommand{chaptermark}[1]{markboth{#1}{}}
rhead{thepage}
lhead{leftmark}
lfoot{The title of the work}
rfoot{Carl Capybara}
cfoot{}



begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]

end{document}





share|improve this answer


























  • Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

    – Schüler
    Dec 9 '18 at 9:24











  • @Schüler I wouldn't use it.

    – Johannes_B
    Dec 9 '18 at 9:35











  • Yes I mean in what case one should use it? Thanks.

    – Schüler
    Dec 9 '18 at 9:38











  • @Schüler Never. It is nonsense.

    – Johannes_B
    Dec 9 '18 at 10:01











  • My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

    – Schüler
    Dec 9 '18 at 10:19














3












3








3







With fancyhdr:



schuelerHeaderFooter2



documentclass[12pt,a4paper]{report}

usepackage{mwe}% Just for the example
usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page% A line of zero width in invisible

%newcommand{clearemptydoublepage}{%
%newpage{pagestyle{plain}cleardoublepage}}%That doesn't make any sense at all in a oneside document

setlength{headheight}{14.5pt}

renewcommand{chaptermark}[1]{markboth{#1}{}}
rhead{thepage}
lhead{leftmark}
lfoot{The title of the work}
rfoot{Carl Capybara}
cfoot{}



begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]

end{document}





share|improve this answer















With fancyhdr:



schuelerHeaderFooter2



documentclass[12pt,a4paper]{report}

usepackage{mwe}% Just for the example
usepackage{fancyhdr}
pagestyle{fancy}

renewcommand{headrulewidth}{1.pt}% filet en haut de page
renewcommand{footrulewidth}{0.pt}% filet en bas de page% A line of zero width in invisible

%newcommand{clearemptydoublepage}{%
%newpage{pagestyle{plain}cleardoublepage}}%That doesn't make any sense at all in a oneside document

setlength{headheight}{14.5pt}

renewcommand{chaptermark}[1]{markboth{#1}{}}
rhead{thepage}
lhead{leftmark}
lfoot{The title of the work}
rfoot{Carl Capybara}
cfoot{}



begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]

end{document}






share|improve this answer














share|improve this answer



share|improve this answer








answered Dec 9 '18 at 9:06


























community wiki





Johannes_B














  • Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

    – Schüler
    Dec 9 '18 at 9:24











  • @Schüler I wouldn't use it.

    – Johannes_B
    Dec 9 '18 at 9:35











  • Yes I mean in what case one should use it? Thanks.

    – Schüler
    Dec 9 '18 at 9:38











  • @Schüler Never. It is nonsense.

    – Johannes_B
    Dec 9 '18 at 10:01











  • My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

    – Schüler
    Dec 9 '18 at 10:19



















  • Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

    – Schüler
    Dec 9 '18 at 9:24











  • @Schüler I wouldn't use it.

    – Johannes_B
    Dec 9 '18 at 9:35











  • Yes I mean in what case one should use it? Thanks.

    – Schüler
    Dec 9 '18 at 9:38











  • @Schüler Never. It is nonsense.

    – Johannes_B
    Dec 9 '18 at 10:01











  • My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

    – Schüler
    Dec 9 '18 at 10:19

















Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

– Schüler
Dec 9 '18 at 9:24





Thank you. Does we use this newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}} in twoside? Also I think I should add renewcommand{footrulewidth}{1.pt}. Thank you.

– Schüler
Dec 9 '18 at 9:24













@Schüler I wouldn't use it.

– Johannes_B
Dec 9 '18 at 9:35





@Schüler I wouldn't use it.

– Johannes_B
Dec 9 '18 at 9:35













Yes I mean in what case one should use it? Thanks.

– Schüler
Dec 9 '18 at 9:38





Yes I mean in what case one should use it? Thanks.

– Schüler
Dec 9 '18 at 9:38













@Schüler Never. It is nonsense.

– Johannes_B
Dec 9 '18 at 10:01





@Schüler Never. It is nonsense.

– Johannes_B
Dec 9 '18 at 10:01













My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

– Schüler
Dec 9 '18 at 10:19





My question when exactely we add newcommand{clearemptydoublepage}{% newpage{pagestyle{plain}cleardoublepage}}? Is it in twoside document ? Or in other case? Thanks a lot for your help.

– Schüler
Dec 9 '18 at 10:19











1














With scrlayer-scrpage as shown in the Wikibook.



schuelerHeaderFooter



documentclass[headsepline,footsepline]{report}
usepackage{mwe}% just for the example

usepackage[markcase=noupper,% remove the uppercasing
automark
]{scrlayer-scrpage}

addtokomafont{pagehead}{sffamily}
addtokomafont{pagefoot}{sffamily}

ifoot*{Is life on Mars possible?}
ofoot*{Walter Wombat}
cfoot*{}
ohead*{pagemark}
ihead{leftmark}

renewcommand{chaptermarkformat}{}
setlength{footheight}{24.0pt}

begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]
end{document}





share|improve this answer


























  • @moewe Yes, sure. I forgot about that. Thanks

    – Johannes_B
    Dec 9 '18 at 8:46











  • Good, I just wanted to make sure I hadn't missed anything really obvious.

    – moewe
    Dec 9 '18 at 8:49













  • @Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

    – Schüler
    Dec 9 '18 at 8:49











  • @Schüler rfoot{Name}?

    – Johannes_B
    Dec 9 '18 at 8:54











  • Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

    – Schüler
    Dec 9 '18 at 8:57
















1














With scrlayer-scrpage as shown in the Wikibook.



schuelerHeaderFooter



documentclass[headsepline,footsepline]{report}
usepackage{mwe}% just for the example

usepackage[markcase=noupper,% remove the uppercasing
automark
]{scrlayer-scrpage}

addtokomafont{pagehead}{sffamily}
addtokomafont{pagefoot}{sffamily}

ifoot*{Is life on Mars possible?}
ofoot*{Walter Wombat}
cfoot*{}
ohead*{pagemark}
ihead{leftmark}

renewcommand{chaptermarkformat}{}
setlength{footheight}{24.0pt}

begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]
end{document}





share|improve this answer


























  • @moewe Yes, sure. I forgot about that. Thanks

    – Johannes_B
    Dec 9 '18 at 8:46











  • Good, I just wanted to make sure I hadn't missed anything really obvious.

    – moewe
    Dec 9 '18 at 8:49













  • @Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

    – Schüler
    Dec 9 '18 at 8:49











  • @Schüler rfoot{Name}?

    – Johannes_B
    Dec 9 '18 at 8:54











  • Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

    – Schüler
    Dec 9 '18 at 8:57














1












1








1







With scrlayer-scrpage as shown in the Wikibook.



schuelerHeaderFooter



documentclass[headsepline,footsepline]{report}
usepackage{mwe}% just for the example

usepackage[markcase=noupper,% remove the uppercasing
automark
]{scrlayer-scrpage}

addtokomafont{pagehead}{sffamily}
addtokomafont{pagefoot}{sffamily}

ifoot*{Is life on Mars possible?}
ofoot*{Walter Wombat}
cfoot*{}
ohead*{pagemark}
ihead{leftmark}

renewcommand{chaptermarkformat}{}
setlength{footheight}{24.0pt}

begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]
end{document}





share|improve this answer















With scrlayer-scrpage as shown in the Wikibook.



schuelerHeaderFooter



documentclass[headsepline,footsepline]{report}
usepackage{mwe}% just for the example

usepackage[markcase=noupper,% remove the uppercasing
automark
]{scrlayer-scrpage}

addtokomafont{pagehead}{sffamily}
addtokomafont{pagefoot}{sffamily}

ifoot*{Is life on Mars possible?}
ofoot*{Walter Wombat}
cfoot*{}
ohead*{pagemark}
ihead{leftmark}

renewcommand{chaptermarkformat}{}
setlength{footheight}{24.0pt}

begin{document}
chapter{Manta Ray}
blindtext
section{Taxonomy}
blindtext[10]
chapter{Mobula}
blindtext
section{Life style}
blindtext[10]
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 9 '18 at 8:44


























community wiki





2 revs, 2 users 77%
Johannes_B














  • @moewe Yes, sure. I forgot about that. Thanks

    – Johannes_B
    Dec 9 '18 at 8:46











  • Good, I just wanted to make sure I hadn't missed anything really obvious.

    – moewe
    Dec 9 '18 at 8:49













  • @Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

    – Schüler
    Dec 9 '18 at 8:49











  • @Schüler rfoot{Name}?

    – Johannes_B
    Dec 9 '18 at 8:54











  • Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

    – Schüler
    Dec 9 '18 at 8:57



















  • @moewe Yes, sure. I forgot about that. Thanks

    – Johannes_B
    Dec 9 '18 at 8:46











  • Good, I just wanted to make sure I hadn't missed anything really obvious.

    – moewe
    Dec 9 '18 at 8:49













  • @Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

    – Schüler
    Dec 9 '18 at 8:49











  • @Schüler rfoot{Name}?

    – Johannes_B
    Dec 9 '18 at 8:54











  • Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

    – Schüler
    Dec 9 '18 at 8:57

















@moewe Yes, sure. I forgot about that. Thanks

– Johannes_B
Dec 9 '18 at 8:46





@moewe Yes, sure. I forgot about that. Thanks

– Johannes_B
Dec 9 '18 at 8:46













Good, I just wanted to make sure I hadn't missed anything really obvious.

– moewe
Dec 9 '18 at 8:49







Good, I just wanted to make sure I hadn't missed anything really obvious.

– moewe
Dec 9 '18 at 8:49















@Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

– Schüler
Dec 9 '18 at 8:49





@Johannes_B I want to use my codes. If I add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, could you please help me in footer with my codes? Thanks a lot.

– Schüler
Dec 9 '18 at 8:49













@Schüler rfoot{Name}?

– Johannes_B
Dec 9 '18 at 8:54





@Schüler rfoot{Name}?

– Johannes_B
Dec 9 '18 at 8:54













Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

– Schüler
Dec 9 '18 at 8:57





Please copy my codes and add renewcommand{chaptermark}[1]{markboth{#1}{}} renewcommand{sectionmark}[1]{markright{thesection #1}} the problem of header is solved. However, even with rfoot{Name} I don't get what I hope. Thank you for your help.

– Schüler
Dec 9 '18 at 8:57


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463909%2fmodify-the-header-and-footer%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

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...