-
Notifications
You must be signed in to change notification settings - Fork 0
/
includes.tex
157 lines (141 loc) · 4.62 KB
/
includes.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%\usepackage{fullpage}
\usepackage{geometry}
\geometry{
top=1.0in, % <-- you want to adjust this
inner=1.0in,
outer=1.0in,
bottom=1.0in,
headheight=3ex, % <-- and this
headsep=2ex, % <-- and this
}
\usepackage{palatino,mathpazo}
\usepackage{pgfgantt}
\usepackage{times}
\usepackage{xspace}
\usepackage{wrapfig}
\usepackage{caption}
%\usepackage{subfigure}
\usepackage{subcaption}
\usepackage{url}
\usepackage{xcolor} % For 'revision' marks in draft versions
\usepackage{titlesec}
\usepackage{caption} % more control over caption settings (e.g. font)
\usepackage{rotating} % allow height=, etc. in graphics
\usepackage{pdfpages}
\usepackage{ifthen}
\usepackage[plainpages=false]{hyperref}
\usepackage{verbatim}
\usepackage{listings} % To pretty print code
\usepackage{fancyvrb}
\usepackage{multicol}
\usepackage{mathtools}
\usepackage{fancyhdr}
%\usepackage{babel}
\usepackage{paralist, tabularx}
\usepackage{enumitem} % help with spacing {AS}
\usepackage{graphicx} % \includegraphics defn
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\lstset{language= C}
\lstset{framexleftmargin= 3mm, rulesepcolor= \color{black}}
%\lstset{numberstyle=\tiny, numbers=left, numbersep= 5pt, xleftmargin= 12pt}
\lstset{firstnumber= 1, stepnumber= 1}
\lstset{showstringspaces= false}
\lstset{gobble=0}
\lstset{linewidth=\textwidth}
\lstset{keepspaces= true}
\lstset{showspaces= false}
\hypersetup{colorlinks=false,
pageanchor=true,
pdfpagemode=None,
plainpages=false,
pdfview=FitH,
pdfstartview=FitH}
\urlstyle{same}
%\renewcommand\url{\begingroup\urlstyle{sf}\Url} % put url font in sf
\renewcommand{\floatpagefraction}{0.8}
\parindent=2.0em
\advance\baselineskip by-1pt
\parskip=0.1ex minus 0.1ex
%Tight itemizes and enumerates
\makeatletter
\def\tightitemize{\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth
\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}{\setlength{\topsep}{-\parskip}\setlength{\leftmargin}{\labelwidth}\setlength{\parsep}{0in}\setlength{\itemsep}{0in}\setlength{\parskip}{0in}\def\makelabel##1{\hss\llap{##1}}}\fi}
\let\endtightitemize =\endlist
\def\tightenumerate{%
\ifnum \@enumdepth >\thr@@\@toodeep\else
\advance\@enumdepth\@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\expandafter
\list
\csname label\@enumctr\endcsname
{\setlength{\topsep}{-\parskip}\setlength{\parsep}{0in}\setlength{\itemsep}{0in}\setlength{\parskip}{0in}\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
\fi}
\let\endtightenumerate =\endlist
\titlespacing{\paragraph}{0pt}{*1}{*3}
%Control whether comments render or not in the generated .pdf
\newboolean{draft}
\setboolean{draft}{true}
\ifthenelse{\boolean{draft}}
{
\newcommand{\patrick}[1]{\textcolor{orange}{[PATRICK: #1]}}
\newcommand{\ep}[1]{\textcolor{green}{[ENRICO: #1]}}
\newcommand{\dongwan}[1]{\textcolor{blue}{[DONGWAN: #1]}}
\newcommand{\selena}[1]{\textcolor{purple}{[SELENA: #1]}}
\newcommand{\melanie}[1]{\textcolor{blue}{[MELANIE: #1]}}
\newcommand{\editmark}{\marginpar{\colorbox{yellow}{\sf Update}}}
\newcommand{\reminder}[1]{\textcolor{red}{\textit{\textsc{#1}}}}
}
{
\newcommand{\pgb}[1]{}
\newcommand{\ep}[1]{}
\newcommand{\dws}[1]{}
\newcommand{\selena}[1]{}
\newcommand{\melanie}[1]{}
\newcommand{\editmark}{}
\newcommand{\reminder}[1]{}
}
\rhead{}
\chead{}
\lhead{}
\rhead{IUSE:CUE NMIX+CS}
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}
\newcommand{\nhalf}{$N_\frac{1}{2}$}
\newcommand{\smartincludepdf}[3]{
% Set headers and TOC entry
\markright{#1}
\IfFileExists{#2.pdf}{
% Use fancy page style to put headers and page numbers on the
% included pages for easier navigation. With luck, the included
% pages will not overlap these marks.
\addcontentsline{toc}{section}{\numberline {}#1}
\includepdf[pages=-,pagecommand={\thispagestyle{#3}}]{#2}
}{
% If the desired PDF file doesn't exist, warn about it but continue
\addcontentsline{toc}{section}{\numberline {}#1 {\color{red}*** MISSING! ***}}
\begin{center}
\textbf{\color{red}\Large No file found for '#1'!\\
Tried #2.tex and #2.pdf} \\
\end{center}
}
}
\hyphenation{sto-chas-tic} \pagestyle{plain}
\def\I{{I}}
\def\Tc{{T_{compute,}}}
\def\Ti{{T_{interference,}}}
\def\Te{{T_{execution,}}}
\def\p{\epsilon}
\def\pp{\phi}
\def\fc{{f_{c}}}
\def\ff{{f_{int}}}
\def\fe{{f_{e}}}
\def\FX{{F_{X_P}}}
\def\Fe{{F_e}}
\def\X{{X}}
\def\J{{J}}
\def\FXb{{F_{\Te|\Ti_1}}}
\def\Tes{{T_{execution}}}
\input{mymacros}