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.

How to create header using package fancyhdr like the below format? It is like mirror page.

LO PN | PN RE

         |
         | 

LO - Left ODD

PN - Pagenumber

RE - RightEven

I want a output in latex.

Thanks in advance.

and Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt}

share|improve this question
    
Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt} –  user6830 Aug 8 '11 at 10:20
    
What do you mean "send example for this code"? –  Seamus Aug 8 '11 at 10:27
add comment

1 Answer

Did you give up on the fancyhdr manual before page 7?

\documentclass{book}
\usepackage{fancyhdr,lipsum}
\pagestyle{fancy}
\fancyhead[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\lipsum\lipsum
\end{document}
share|improve this answer
    
Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt} –  user6830 Aug 8 '11 at 10:20
add comment

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.