-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestfancycenter.tex
75 lines (55 loc) · 1.84 KB
/
testfancycenter.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
\documentclass[openany]{book}
\usepackage{lipsum}
\usepackage{calc}
\usepackage{boxedminipage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[c]{\fancycenter{AAA}{BBBBBBBBBBBBBBB}{CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC}}
\fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers
\renewcommand{\headrulewidth}{0pt} % and the line
}
\begin{document}
\tableofcontents
\bigskip
\begin{boxedminipage}{\textwidth}
This document is a test for the \verb|\fancycenter| command. It puts a header with 3 fields in an extended header, including the margin par area. It also redefines pagestyle \texttt{plain}.
\begin{verbatim}
\fancyhf{}
\fancyhead[c]{\fancycenter{AAA}{BBBBBBBBBBBBBBB}
{CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC}}
\fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}
\end{verbatim}
\end{boxedminipage}
\chapter{Introduction}
Here comes a marginpar.
\marginpar{Donec bibendum quam in tellus. Nullam cur- sus pulvinar
lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum
pellentesque felis eu massa.}
\lipsum
\section{The Problem}
\label{sec:problem}
Here comes a marginpar.
\marginpar{Donec bibendum quam in tellus. Nullam cur- sus pulvinar
lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum
pellentesque felis eu massa.}
\lipsum[1]
\section{Evaluation}
Here comes a marginpar.
\marginpar{Donec bibendum quam in tellus. Nullam cur- sus pulvinar
lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum
pellentesque felis eu massa.}
\lipsum
Some more text.
Some more text.
Some more text.
Some more text.
\section{Another section}
Here comes a marginpar.
\marginpar{Donec bibendum quam in tellus. Nullam cur- sus pulvinar
lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum
pellentesque felis eu massa.}
\lipsum[3]
\end{document}