-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample30.tex
76 lines (53 loc) · 1.33 KB
/
example30.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\documentclass{report}
\usepackage{lipsum}
\usepackage{boxedminipage}
\usepackage[a5paper]{geometry}
\usepackage{graphicx}
\graphicspath{{Images}}
\usepackage{fancyhdr}
\fancyhead[L]{Example 30}
\fancyhead[R]{\rightmark}
\fancyfoot[R]{\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\put(5,-20){\includegraphics[width=1cm]{pic\thepage}}
\end{picture}}
\begin{document}
\pagenumbering{roman}
\thispagestyle{plain}
\tableofcontents
\bigskip
\noindent
\begin{boxedminipage}{\textwidth}
This is example 30 in the fancyhdr documentation.
It shows a movie in the righthand footer in all pages after this one. Just flip very fast through the pages to see it.
\begin{verbatim}
\fancyhead[L]{Example 30}
\fancyhead[R]{\rightmark}
\fancyfoot[R]{\setlength{\unitlength}{1mm}
\begin{picture}(0,0)
\put(5,-20){%
\includegraphics[width=1cm]{pic\thepage}}
\end{picture}}
...
\fancypagestyle{plain}{%
\fancyhead{}\renewcommand{\headrule}{}}
\end{verbatim}
\end{boxedminipage}
\newpage
\pagestyle{fancy}
\fancypagestyle{plain}{%
\fancyhead{}\renewcommand{\headrule}{}}
\pagenumbering{arabic}
\chapter{Introduction}
\lipsum[1-4]
\section{The Problem}
\label{sec:problem}
\lipsum
\section{Evaluation}
\lipsum[3-6]
\chapter{Another chapter}
\label{cha:another-chapter}
\lipsum
\section{Another section}
\lipsum[3-4]
\end{document}