1

How do I add a footer in LyX file when using IEEE Transactions class?

1
2

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
}

enter image description here

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.

6
  • Two questions: How to remove the top line? And why do I get the footer on all pages? – zygimantus Dec 2 '15 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 '15 at 19:06
  • I want the footer on the first page only. – zygimantus Dec 2 '15 at 19:15
  • @zygimantus: Okay, then change the page layout heading style back to "Default". – Werner Dec 2 '15 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 '15 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.