Is there a way to place the same footer line on every page? Right now, I have a chapter called introduction and in my introduction.tex
file I have specified a footer line that needs to be added. But the problem is, when the pdf file is being generated, the footer line I specified is only on the last page of the chapter. But I want it on every page in the chapter. Could someone please tell me how I can accomplish this?
[Tex/LaTex] Same footer line on every page
header-footer
Best Answer
To get a footer line on every page of the document, one could use the fancyhdr package, maybe along the lines of the following minimum working example (MWE):
It's the "Message of the day" string that you'll want to change, for sure.
If the text in the footer line needs to be displayed in bold face and/or italics, you could do so by inserting the commands
\bfseries
and/or\itshape
prior to the "Message of the day" string.Addendum Two more points:
\fancyfoot[RE,LO]{Message of the day}
from the preamble and, instead, issue the command\fancyfoot[RE,LO]{Message for Chapter xx}
immediately after the respective\chapter
command.book
document class, the first page of a chapter uses the pagestyle "plain" (page number centered in footer line, no other header and/or footer information) even if the other pages follow a different pagestyle (such as "fancy"). If you want to display your chapter-specific footer lines on the first page of a chapter as well, you should issue the command\thispagestyle{fancy}
after the respective\chapter
command.