How do I add a footer in LyX file when using IEEE Transactions class?
-
Possible duplicate of tex.stackexchange.com/questions/110177/… but Werner's alternate answer is useful.– scottkostyDec 2, 2015 at 2:52
1 Answer
First change the Document > Settings... > Page Layout and change the page style to fancy:
Then add to your Document > Settings... > LaTeX Preamble
\fancyfoot[L]{Left footer}
\fancyfoot[C]{Center footer}
\fancyfoot[R]{Right footer}
% Update \maketitle to change page style for first page
\let\oldmaketitle\maketitle
\renewcommand{\maketitle}{%
\oldmaketitle
\thispagestyle{fancy}% Title page has fancy
}
The adjustment of \maketitle
adds the footer to the first page, which has a different style based on the IEEE document class. If you don't want it, then you can just remove that part of the code.
-
Two questions: How to remove the top line? And why do I get the footer on all pages? Dec 2, 2015 at 19:00
-
1@zygimantus: To remove the top line (or header rule), add
\renewcommand{\headrulewidth}{0pt}
to the preamble. You didn't specify where you want the footers to appear, so my solution suggests it to appear on all pages. Where do you want it?– Werner ♦Dec 2, 2015 at 19:06 -
-
@zygimantus: Okay, then change the page layout heading style back to "Default".– Werner ♦Dec 2, 2015 at 19:18
-
1@zygimantus: Change the page layout heading style to "fancy" and add
\pagestyle{headings}
at the end of the preamble.– Werner ♦Dec 2, 2015 at 19:33