LyXHeader alternating with pages

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Cavelcade
Posts: 5
Joined: Mon Aug 20, 2012 2:22 am

Header alternating with pages

Post by Cavelcade »

Hi all,

I am hoping to submit for review a paper I've written with the supervisor of my final year project, however, there is one issue I haven't been able to get past yet.

Here is an example, if you have access to the journal, of the format I need. The journal is Econometric Theory.

If you don't have access to it, here is my problem described in words anyway- how do I get it so that, as a left header on even pages it has the Authors and, as a right header on odd pages it has a foreshortened title for the paper. Also, the page number should appear with them.

Any help would be greatly appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Cavelcade
Posts: 5
Joined: Mon Aug 20, 2012 2:22 am

Header alternating with pages

Post by Cavelcade »

Solved using the fancyhdr package. Adding the following to the preamble solved my problem:

Code: Select all

\usepackage{fancyhdr} 

\pagestyle{fancy}

\fancyhf{}

\fancyhead[LE,RO]{}
\fancyhead[LE]{\sffamily \bfseries \thepage \mdseries \ AUTHOR NAMES HERE}
\fancyhead[RO]{\sffamily \mdseries  RUNNING TITLE HERE \bfseries \thepage} 

\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.0pt}
Post Reply