-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic_template.tex
71 lines (60 loc) · 2.73 KB
/
basic_template.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
%%% COMMON WORDS
\newcommand{\TheTitle}{Title}
\newcommand{\TheSubtitle}{Subtitle}
\newcommand{\TheAuthor}{Author}
%%%%%%%%%%%%%%% PRE-AMBLE %%%%%%%%%%%%%%%
%%% IMPORTS %%%
\documentclass[11pt]{article} % \documentclass[font-sz]{doc-type}
\usepackage{inputenc} % Input encoding http://bit.ly/latex-inputenc
\usepackage{geometry} % Document settings http://bit.ly/latex-geometry
\usepackage{mathtools} % Fonts & matrices http://bit.ly/latex-mathtools
\usepackage{graphicx} % Pictures http://bit.ly/latex-graphics
\usepackage{booktabs} % Nicer looking tables http://bit.ly/latex-booktabs
\usepackage{paralist} % Numbered, custom lists http://bit.ly/latex-paralist
\usepackage{listings} % Quoting source code http://bit.ly/latex-listings
\usepackage{subfig} % Advanced figure placement http://bit.ly/latex-subfig
\usepackage[english]{babel} % Multilingual support http://bit.ly/latex-babel
\usepackage{blindtext} % Dummy text http://bit.ly/latex-blindtext
\usepackage{xcolor} % Advanced colors http://bit.ly/label-xcolor
\usepackage{lastpage} % Refer to final page of doc http://bit.ly/latex-lastpage
\usepackage{changepage} % Page specific formatting http://bit.ly/latex-changepage
\usepackage{epstopdf} % Support for .eps images http://bit.ly/latex-epstopdf
\usepackage{hyperref} % Links and metadata http://bit.ly/latex-hyperref
\usepackage{parskip} % Change paragraph indents http://bit.ly/latex-parskip
\usepackage{fancyhdr} % Header and footer control http://bit.ly/latex-fancyhdr
%%% DOCUMENT SETTINGS %%%
\selectlanguage{english}
\geometry{letterpaper} % {letterpaper}, {a5paper}, ...
\geometry{margin=1.15in} % {1in}, {15px}, {2.8pc}, {5pt} etc.
\geometry{portrait} % {portrait, landscape}
\setlength{\parskip}{2pc}
\setlength{\parindent}{2pc}
\hypersetup{hidelinks=true,pdfauthor={\TheAuthor},pdftitle={\TheTitle}}
\pagenumbering{arabic} % {gobble}, {arabic}, {roman}, {alph}. Call again to reset
\pagestyle{fancy} % {empty}, {plain}, {fancy}
% Header
\lhead{}
\chead{\emph{\TheTitle}}
\rhead{\TheAuthor}
\renewcommand{\headrulewidth}{0.5pt} % Line between the header and body.
% Footer
\renewcommand{\footrulewidth}{0.5pt} % Line between the footer and body.
\lfoot{}
\cfoot{}
\rfoot{\textsc{Page \thepage{} of \pageref{LastPage}}}
%%%%%%%%%%%%%%% BODY %%%%%%%%%%%%%%%
\begin{document}
% Omit headers/footers on title page
\thispagestyle{empty}
\centerline{\LARGE{\TheTitle}}
\centerline{\large{\textbf{\TheSubtitle}}}
\vspace{2pc}
\centerline{\large{\TheAuthor}}
\centerline{\large{\today}}
\vspace{20pc}
% Abstract
\blindtext[1]
\newpage
\pagenumbering{arabic}
\Blinddocument
\end{document}