-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmhocheatsheet.sty
119 lines (95 loc) · 3.61 KB
/
mhocheatsheet.sty
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
%
% Author: Mark H. Olson
% Website: https://mholson.com
% Github: https://github.com/mholson
%
% File: mhocheatsheet.sty
% Created: 2022-05-03
%
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mhocheatsheet}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\RequirePackage{geometry}
\geometry{paper=a4paper,landscape, left=6mm,right=6mm, top=8mm,bottom=4mm}
\pagestyle{empty}
\RequirePackage{tikz}
\RequirePackage{multicol}
\RequirePackage{mhocolorpalettesthlmnord}
\RequirePackage{mhotables}
\RequirePackage{mhomacros}
\RequirePackage[unicode]{hyperref}
\hypersetup{
colorlinks=true,
% You might want to disable color links for you final draft.
%colorlinks=false,
linkcolor=Blue,
citecolor=Blue,
urlcolor=Blue,
}
% > > > Load Packages
\RequirePackage{mhotheorems}
% > > > Fonts
\RequirePackage{mhofonts}
% \RequirePackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
% \RequirePackage{libertinus-otf}
% > > > Formatting
\newcommand{\framebreak}{}
\newcommand{\tablepagebreak}{}
\newenvironment{EnvUplevel}
{\par\bigskip\vbox\bgroup
% We set \leftskip to provide the correct left margin for whatever
% is inside of the environment:
\leftskip=\@totalleftmargin
\advance\leftskip-\leftmargin
% We adjust \@totalleftmargin (and linewidth?) in case there's a
% solution environment inside of the environment:
\advance\@totalleftmargin-\leftmargin
\advance\linewidth\leftmargin
}
{\egroup\nobreak}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Enumerated Lists
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\RequirePackage[shortlabels]{enumitem}
\setlist{noitemsep,itemindent=0pt,leftmargin=1.4em,nosep}
\setlist[1]{labelindent=\parindent} % < Usually a good idea
\setlist[itemize]{leftmargin=*}
\setlist[itemize,1]{label=\cBlue{\(\circledcirc\)}}
\setlist[itemize,2]{label=\cBlue{\(\bullet\)}}
\setlist[itemize,3]{\cBlue{\(\triangleright\)}}
\setlist[enumerate]{labelsep=*, leftmargin=2pc}
\setlist[enumerate,1]{label = \arabic*.,
ref = \arabic*}
%\setlist[enumerate,1]{label = (\cRed{\alph*}),
% ref = \theenumi.\emph{\alph*}}
\setlist[enumerate,2]{label = \cRed{\roman*}),
ref = \theenumii.\roman*}
\setlist[description]{font=\sffamily\bfseries}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Boxes
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\providecommand{\sectionbox}[1]{{\fboxsep0.2em\hspace*{-1.5\fboxsep}%
\fcolorbox{SteelI}{SnowI}{%
\parbox{0.99\columnwidth}{%
\raggedright #1}}}}
\setlength{\parskip}{0.5em}
\renewcommand{\arraystretch}{1.12}
% make boxes robust for verbatim
\RequirePackage{cprotect}
\let\oldsectionbox\sectionbox
\outer\def\sectionbox{\icprotect\oldsectionbox}
\setkomafont{disposition}{\color{Teal}}
\setkomafont{section}{\color{Teal}\Large}
\setkomafont{subsection}{\color{Teal}\large}
\setkomafont{subsubsection}{\normalsize}
\renewcommand*{\thesection}{\Alph{section}}
\RedeclareSectionCommand[beforeskip=-6pt, afterskip=3sp]{section}
\RedeclareSectionCommand[beforeskip=-2pt, afterskip=3sp]{subsection}
\RedeclareSectionCommand[beforeskip=-2pt, afterskip=3sp]{subsubsection}
\endinput
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
% End of file `mhocheatsheet.sty'.
%=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=