-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsettings.tex
executable file
·65 lines (56 loc) · 1.51 KB
/
settings.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
%% Objects numbering
\counterwithout{figure}{section}
\counterwithout{equation}{section}
\counterwithout{section}{chapter}
% Lengths and indenting
\setlength{\textwidth}{16.5cm}
\setlength{\marginparwidth}{1.5cm}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.15cm}
\setlength{\textheight}{22cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\topmargin}{0cm}
\setlength{\headheight}{0cm}
\setlength{\headsep}{0cm}
% lslisting style for python
\lstset{
basicstyle=\ttfamily,
breaklines=true,
commentstyle=\color{green},
keepspaces=true,
keywordstyle=\color{blue},
language=Python,
morekeywords={off},
showstringspaces=false,
stringstyle=\color{purple},
title=\lstname
}
% lslisting style for matlab
\lstset{
basicstyle=\ttfamily,
breaklines=true,
commentstyle=\color{green},
keepspaces=true,
keywordstyle=\color{blue},
language=Matlab,
morekeywords={off},
showstringspaces=false,
stringstyle=\color{purple},
title=\lstname
}
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\expandafter\def\expandafter\normalsize\expandafter{%
\normalsize
\setlength\abovedisplayskip{4pt}
\setlength\belowdisplayskip{4pt}
\setlength\abovedisplayshortskip{4pt}
\setlength\belowdisplayshortskip{4pt}
}
% define colors for cheatsheet
%https://en.wikibooks.org/wiki/LaTeX/Colors#Predefined_colors
\definecolor{sectionColor}{HTML}{FF7F00}
\definecolor{subsectionColor}{HTML}{EE0000}
\definecolor{subsubsectionColor}{HTML}{EE6600}
\renewcommand{\familydefault}{\sfdefault}