-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpreamble.tex
117 lines (97 loc) · 2.67 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
\usepackage[comma,authoryear]{natbib}
\usepackage{float}
\usepackage{graphicx}
\usepackage{setspace}
% \usepackage{kpfonts}
\usepackage{textcomp}
% \usepackage{fullpage}
\usepackage{url}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
%\usepackage{mdframed} % not availble on ubuntu
% -- font styles
\usepackage{tgtermes}
% \usepackage[lf]{venturis}
% \usepackage{times}
% \usepackage[sc]{mathpazo} % Palatino (very readable)
% \usepackage[adobe-utopia]{mathdesign}
% \usepackage{gfsdidot}
% \usepackage[scaled]{beraserif}
% \usepackage[bitstream-charter]{mathdesign}
% \usepackage{mathptmx}
% special math formatting
\usepackage{amsmath}
\floatstyle{ruled}
% -- structural elements
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
%\newfloat{figure}{thp}{lop}
%\floatname{figure}{Figure}
% -- syntax highlighting
\usepackage{listings}
\usepackage[scaled]{beramono}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{caption}
% -- configure captions for figures
\DeclareCaptionFormat{listing}{\par\hrule #1#2#3}
\captionsetup[figure]{%
format=listing,
singlelinecheck=false,
margin=00pt,
font={it,footnotesize,centering}
}
\parskip 12pt
% page margins
\setlength{\textheight}{22cm}
\setlength{\oddsidemargin}{0.25in}
\setlength{\textwidth}{6in}
% I don't know what this does
\def\printcitestart{\unskip $^\bgroup}
\def\printbetweencitations{,}
\def\printcitefinish{\egroup$}
\def\printcitenote#1{\hbox{\sevenrm\space (#1)}}
% TODO: mdframed doesn't work well with ubuntu
% \newenvironment{aside}
% {\begin{mdframed}[style=0,%
% leftline=false,rightline=false,leftmargin=2em,rightmargin=2em,%
% innerleftmargin=0pt,innerrightmargin=0pt,linewidth=0.75pt,%
% skipabove=25pt,skipbelow=25pt]\small}
% {\end{mdframed}}
%% Bibliography configuration
%% ------------------------------
\bibliographystyle{apalike}
% don't show reference label in the bibliography (APA specific)
\makeatletter
\def\@biblabel#1{}
\makeatother
\lstset{
%framesep=5pt,
upquote=true,
breaklines=false,
%postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\hookrightarrow}},
breakatwhitespace=true,
%numbers=left,
language=Java,
basicstyle=\footnotesize\ttfamily,
numberstyle=\footnotesize\ttfamily,
%numbersep=10pt,
tabsize=2,
extendedchars=true,
showtabs=false,
showspaces=false,
showstringspaces=false,
xleftmargin=20pt,
aboveskip=10pt,
% colors
stringstyle=\color{Maroon},
commentstyle=\color{Gray},
rulecolor=\color{Gray},
keywordstyle=\color{Blue},
%backgroundcolor=\color{LightGray!.50}
}
\lstloadlanguages{
Java
}
% Hyphenation rules ------------
%% \hyphenation{Fire-Detection-System}
%% \hyphenation{Emergency-Communication-System}