-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
executable file
·126 lines (104 loc) · 3.53 KB
/
preamble.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
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
119
120
121
122
123
124
125
% \usepackage{mathptmx} % Close to times new roman
%\usepackage{newtxtext} % Close to times new roman
% \usepackage{newtxmath} % Close to times new roman
\usepackage{enumitem} % For tighter lists
\usepackage{cutwin,pstricks}
\usepackage{tcolorbox}
\usepackage{xcolor}
% Helvetica
\renewcommand{\rmdefault}{phv}
\renewcommand{\sfdefault}{phv}
\usepackage[font={footnotesize,bf}]{caption}
\usepackage{comment}
\usepackage{epsfig,wrapfig,url}
\usepackage[hidelinks]{hyperref}
\usepackage{pdfpages}
%\usepackage{amsfonts,amsmath,amscd,amsthm}
%\usepackage[mathscr]{euscript}
% Next line gives us superscript citations
%\usepackage[superscript,biblabel]{cite}
\usepackage{caption,subcaption}
\textfloatsep = 0.1in
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{amsmath,amssymb}
\newif\iffinal
\finaltrue
\iffinal
\newcommand\todo[1]{}
\newcommand\ian[1]{}
\else
\newcommand\todo[1]{{\color{red}#1}}
\newcommand\ian[1]{{\color{blue}[Ian: #1]}}
\fi
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textheight}{9.0in}
\setlength{\topmargin}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\footskip}{.5in}
\setlength{\parskip}{.05in}
\setlength{\parindent}{0in}
\usepackage[explicit]{titlesec}
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{#1}[{\titlerule[0.8pt]}]
\usepackage{titlesec}
\titlespacing{\section}{0pt}{*2}{*1.35}
\titlespacing{\subsection}{0pt}{*1.35}{*0.15}
%\titleformat{\subsection}[runin]{\bfseries}{\thesubsection}{1em}{}[.]
%\titleformat{ command }[ shape ]{ format }{ label }{ sep }{ before-code}
%\titleformat{\subsubsection}[runin]{\slshape}{\thesubsubsection}{1em}{}[.]
\titleformat{\subsubsection}[runin]{\bfseries}{\thesubsubsection}{1em}{#1}[.]
\titlespacing{\subsubsection}{0pt}{*0.105}{*1.00}
%\titleformat{\paragraph}[runin]{\bfseries}{\theparagraph}{1em}{}[.]
\titleformat{\paragraph}[runin]{\slshape}{\theparagraph}{1em}{#1}[.]
\titlespacing{\paragraph}{0pt}{*0.105}{*1.00}
\titleformat{\subparagraph}[runin]{}{\thesubparagraph}{1em}{\underline{#1}}[.]
%\titleformat{\subparagraph}[runin]{\bfseries}{\thesubparagraph}{1em}{}[.]
\titlespacing{\subparagraph}{0pt}{*0.105}{*1.00}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{4}
\usepackage{listings} % for code listings
\newcommand\code[1]{{\tt #1}}
\lstdefinestyle{ShellStyleInLine}
{
language=Python,
frame=shadowbox, rulesepcolor=\color{gray},
basicstyle = \ttfamily,
upquote=true,
escapechar=`,
numbers= none,
moredelim=[il][]{--latexlabel},
otherkeywords={self}, % Add keywords here
commentstyle=\color{blue},
keywordstyle=\bfseries\color{black},
emph={MyClass,__init__}, % Custom highlighting
emphstyle=\bfseries\color{myred}, % Custom highlighting style
%frame=tb, % Include this to remove shadows
showstringspaces=false %
}
\definecolor{mGreen}{rgb}{0,0.6,0}
\definecolor{mGray}{rgb}{0.5,0.5,0.5}
\definecolor{mPurple}{rgb}{0.58,0,0.82}
\definecolor{backgroundColour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{CStyle}{
backgroundcolor=\color{backgroundColour},
commentstyle=\color{mGreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{mGray},
stringstyle=\color{mPurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
language=C
}