Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Please help me to design pages with a different title on odd and even pages:

I mean I would like to have for example

  • name of author on odd pages.
  • name of article on even pages.

How can I do it?

Many thanks,

share|improve this question
1  
with "different title" do you mean different header? If yes, you should take a look at the fancyhdr package –  Spike Jul 21 '12 at 14:07

1 Answer 1

This request only seems viable in the context of headers. As such, here's a fancyhdr implementation using a standard document class (article):

enter image description here

\documentclass[twoside]{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\fancypagestyle{mypagestyle}{%
  \fancyhf{}% Clear header/footer
  \fancyhead[OC]{An Author}% Author on Odd page, Centred
  \fancyhead[EC]{A title}% Title on Even page, Centred
  \fancyfoot[C]{\thepage}%
  \renewcommand{\headrulewidth}{.4pt}% Header rule of .4pt
}
\pagestyle{mypagestyle}
\title{A title}
\author{An Author}
\begin{document}
\maketitle
\section{A section}\lipsum[1-20]
\end{document}

twoside is required to allow Odd and Even side varying page styles, but you most likely already use this class option.

Since the \maketitle macro is "self-destructing" and thereby erases \@author and \@title, you need to either make a copy of it into a different macro, or write the author and title in the respective headers manually.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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