-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample3.tex
27 lines (23 loc) · 1.13 KB
/
example3.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\documentclass[twoside]{article}
\usepackage{lipsum}
\usepackage{boxedminipage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\fancyhead[RO,LE]{\textbf{The performance of new graduates}}
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,CE]{From: K. Grant}
\fancyfoot[CO,RE]{To: Dean A. Smith}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\section*{Twosided}
\label{sec:twosided}
\begin{boxedminipage}{\textwidth}
This is example 3 in the fancyhdr documentation. It has simple headers and footers:
On odd pages the header has {``\textbf{The performance of new graduates}''} in the right-hand side corner and the footer has ``From: K. Grant'' on the left, ``To: Dean A. Smith'' in the center, and the page number on the right. Just like example 1. On even pages it is mirrored: the header has {``\textbf{The performance of new graduates}''} in the left-hand side corner and the footer has ``From: K. Grant'' on the right, ``To: Dean A. Smith'' in the center, and the page number on the left.
\end{boxedminipage}
\bigskip
\lipsum
\end{document}