-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample23.tex
60 lines (41 loc) · 1.01 KB
/
example23.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
\documentclass[openany]{book}
\usepackage{lipsum}
\usepackage{chappg}
\renewcommand{\chappgsep}{--}
\usepackage{boxedminipage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\bigskip
\noindent
\begin{boxedminipage}{\textwidth}
This is example 23 in the fancyhdr documentation.
We use the page number style ``n--m'' where ``n'' is the chapter number and ``m'' is the page number (relative to the current chapter).
This is done using the \texttt{chappg} package. In the front matter (Table of Contents), we use small roman numerals.
\begin{verbatim}
\usepackage{chappg}
\renewcommand{\chappgsep}{--}
. . .
\clearpage
\pagenumbering{bychapter}
\end{verbatim}
\end{boxedminipage}
\clearpage
\pagenumbering{bychapter}
\chapter{Introduction}
\lipsum
\section{The Problem}
\lipsum[1]
\section{Evaluation}
\lipsum
Some more text.
Some more text.
Some more text.
Some more text.
\chapter{Another chapter}
\lipsum[2]
\section{Another section}
\lipsum[3-5]
\end{document}