-
Notifications
You must be signed in to change notification settings - Fork 21
/
template.tex
63 lines (53 loc) · 1.84 KB
/
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
\documentclass[a4paper, twoside, 8pt]{extreport}
\usepackage[
left=1.2cm,
right=1.2cm,
top=2.25cm,
bottom=1.25cm]{geometry}
\usepackage{multicol}
\usepackage{fancyhdr} % extensive control of page headers and footers
\makeatletter
\fancypagestyle{mypagestyle}
{\newpage \fancyfoot[C]{} \renewcommand{\footrulewidth}{0pt}}
\makeatother
\pagestyle{mypagestyle}
\headsep 5pt
\usepackage{minted} % highlighted source code
\usepackage[usenames,dvipsnames]{color} % colour control
\usepackage{xcolor} % driver-independent color extensions
\usepackage{amssymb} % provides an extended symbol collection
\usepackage{enumitem} % control layout of itemize, enumerate, description
\newenvironment{enumx} {
\begin{enumerate}[leftmargin=*]
\setlength{\topsep}{0pt}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}
{\end{enumerate}}
\newenvironment{itemx} {
\begin{itemize}[leftmargin=*,noitemsep,topsep=0pt]
%\setlength{\itemsep}{0pt}
%\setlength{\parskip}{0pt}
%$\setlength{\parsep}{0pt}
}
{\end{itemize}}
\usepackage{parskip} % layout with zero \parindent, non-zero \parskip
\usepackage{titlesec} % selects alternative section titles
\titlespacing\section{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
\titlespacing\subsection{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
\titlespacing\subsubsection{0pt}{6pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
\usepackage{lastpage} % reference last page
\usepackage{Alegreya}
\newcommand{\manualbreak}{\vspace*{\fill}\columnbreak}
\newcommand{\cmd}{$\blacksquare$}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\renewcommand{\footrulewidth}{0.4pt}
\fancyhead[LE,LO]{??? -- notes}
\fancyhead[RO,RE]{date: \today}
\fancyfoot[RF]{author: Remigiusz Suwalski}
\fancyfoot[LF]{page \thepage/\pageref{LastPage}}
Sample text.
\end{document}