forked from benlights/programming-cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogrammingnotes.cls
49 lines (36 loc) · 1.29 KB
/
programmingnotes.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{programingnotes}[2017/09/13 Cheat sheet class]
\LoadClass[a4paper, twoside, 8pt]{extarticle}
\RequirePackage{multicol} % columns - not used?
\RequirePackage[left=1.2cm, right=1.2cm, top=2.25cm, bottom=1.25cm]{geometry}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{minted}
\usemintedstyle{pastie}
\RequirePackage{stix}
\RequirePackage{Alegreya} % font
\RequirePackage[compact]{titlesec} % section titles
\titlespacing{\section}{0pt}{\parskip}{0pt}
\titlespacing{\subsection}{0pt}{\parskip}{0pt}
\titlespacing{\subsubsection}{0pt}{\parskip}{0pt}
\RequirePackage{microtype} % typography
\RequirePackage{xcolor}
\RequirePackage{hyperref} % hyperlinks
\RequirePackage{lastpage}
\RequirePackage{paralist} % compact enumeration
\RequirePackage{parskip}
\RequirePackage{fancyhdr} % control of page headers and footers
\newcommand{\manualbreak}{\vspace*{\fill}\columnbreak}
\newcommand{\cmdcore}{$\blacksquare$}
\newcommand{\cmdutil}{$\squarelrblack$}
\newcommand{\cmdvar}{$\square$}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\makeatletter
\fancypagestyle{mypagestyle}
{\newpage \fancyfoot[C]{} \renewcommand{\footrulewidth}{0pt}}
\makeatother
\pagestyle{mypagestyle}
\headsep 5pt