-
Notifications
You must be signed in to change notification settings - Fork 45
/
headers.tex
30 lines (25 loc) · 913 Bytes
/
headers.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
\documentclass[12pt]{report} % to have chapters
\usepackage{fancyhdr} % to change header and footers
\usepackage{blindtext} % to quickly get a full document
\usepackage{times}
\title{Some document with redefined footer on every page}
\author{David Haberth\"ur}
\pagestyle{fancy} % Turn on the style
\fancyhf{} % Start with clearing everything in the header and footer
% Set the right side of the footer to be the page number
\fancyfoot[R]{\thepage}
% Redefine plain style, which is used for titlepage and chapter beginnings
% From http://tex.stackexchange.com/a/30230/828
\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyfoot[R]{\thepage}%
}
\usepackage{titlesec}
%\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}
\titleformat{\chapter}{\Large\bfseries}{\thechapter}{1em}{}
\begin{document}
\maketitle
% Input some blind text
\blinddocument
\end{document}