forked from gyollin/quantstrat-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boilerPlateUW.tex
162 lines (136 loc) · 4.81 KB
/
boilerPlateUW.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
158
159
160
161
% preamble for UW formatted latex/beamer slides
\usetheme{Madrid}
\definecolor{darkpurple}{rgb}{.1255,.2431,.5882} % 57-39-91
\definecolor{purple}{rgb}{.2235,.1529,.3569} % huskies official purple
\definecolor{purple1}{rgb}{.1765,.1216,.2784} % darkest
\definecolor{purple2}{rgb}{.3098,.2118,.4902} % lighter than official
\definecolor{purple3}{rgb}{.4392,.3020,.7020} % very light
\definecolor{purple4}{rgb}{.6078,.5098,.7882} % lightest
\definecolor{gold}{rgb}{.8863,.8157,.4275}
\definecolor{blu}{rgb}{.0,.0,.50}
% note: beamer output size: 128mm x 96mm (5.04in x 3.78in)
\setbeamercolor{frametitle}{fg=gold,bg=purple}
\usecolortheme{dolphin}
\setbeamercolor*{palette primary}{use=structure,fg=gold,bg=purple}
\setbeamercolor*{palette secondary}{use=structure,fg=gold,bg=purple}
\setbeamercolor*{palette tertiary}{use=structure,fg=gold,bg=purple}
\setbeamercolor*{palette quaternary}{fg=white,bg=black}
\newcommand{\vb}{\vspace{\baselineskip}}
\newcommand{\vh}{\vspace{.5\baselineskip}}
\newcommand{\vq}{\vspace{.25\baselineskip}}
\newcommand{\vm}{\vspace{-.5\baselineskip}}
\newenvironment<>{noteblock}[1]{%
\setbeamercolor*{block title}{bg=purple4,fg=gold}% These two lines added
\setbeamercolor*{block body}{bg=purple4!60}% to the "block" env. definition
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\newenvironment<>{myboldblock}[1]{%
\setbeamercolor*{block title}{bg=gray!20,fg=black}% These two lines added
\setbeamercolor*{block body}{bg=gray!5}% to the "block" env. definition
\begin{actionenv}#2%
\def\insertblocktitle{\footnotesize{\textbf{#1}}}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\newenvironment<>{mylistingblock}[1]{%
\setbeamercolor*{block title}{bg=blue!10,fg=black}% These two lines added
\setbeamercolor*{block body}{bg=gray!2}% to the "block" env. definition
\begin{actionenv}#2%
\def\insertblocktitle{\footnotesize{\textbf{#1}}}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\newenvironment<>{bluenote}[1]{%
\setbeamercolor*{block title}{bg=blue,fg=white}% These two lines added
\setbeamercolor*{block body}{bg=blue!20}% to the "block" env. definition
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\newenvironment<>{mydefinition}[1]{%
\setbeamercolor*{block title}{bg=blue!50,fg=black}% These two lines added
\setbeamercolor*{block body}{bg=blue!20}% to the "block" env. definition
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
\setlength{\labelsep}{1.0em}
\newenvironment{mydescription}[1]
{\begin{list}{}%
{\renewcommand\makelabel[1]{\color{blu}{##1}\hfill}%
\settowidth\labelwidth{\makelabel{#1}}%
\setlength\leftmargin{\labelwidth}
\addtolength\leftmargin{\labelsep}}}
{\end{list}}
\setlength{\labelsep}{1.0em}
\newenvironment{bethdescription}[1]
{\begin{list}{}%
{\renewcommand\makelabel[1]{\color{blu}\hfill{##1}}%
\settowidth\labelwidth{\makelabel{#1}}%
\setlength\leftmargin{\labelwidth}
\addtolength\leftmargin{\labelsep}}}
{\end{list}}
\newenvironment{myindentpar}[1]%
{\begin{list}{}%
{\setlength{\leftmargin}{#1}}%
\item[]%
}
{\end{list}}
\setbeamercolor{postit}{fg=purple,bg=gold}
\setbeamercolor{block body}{bg=gray!10}
\setbeamercolor{block title}{bg=gray!20,fg=black}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% package below is to fix the error "No room for a new \dimen" which showed up in August of 2014
\usepackage{etex}
\usepackage{booktabs}
%\usepackage{ctable}
\setlength{\heavyrulewidth}{0.1 em}
\newcommand {\otoprule}{\midrule[\heavyrulewidth]}
\usepackage{ulem}
\usepackage{listings}
\usepackage[absolute,overlay,showboxes]{textpos}
% line below is commented out to avoid grid display when using
% the package handoutWithNotes
%\usepackage[colorgrid,texcoord]{eso-pic}
\usepackage{tikz}
\usetikzlibrary{shapes.callouts}
\usepackage{multirow}
\usepackage{colortbl}
\setlength{\jot}{10pt}
%adjust the TPHorizModule and TPHorizModule units to the displayed mm %grid
\TPGrid{128}{96}
\TPMargin{5pt}
\textblockrulecolour{red}
\TPshowboxesfalse
%\textblockcolour{gray!20}
%puts a graphic at the absolute position described by the grid
%#1 x, #2 y, #3 width, #4 height, #5 graphic
\newcommand\putpic[5]{%
\begin{textblock}{#3}(#1,#2)
\includegraphics[width=#3\TPHorizModule,
height=#4\TPVertModule]{#5}
\end{textblock}
}
\newcommand{\code}[1]{\texttt{#1}}
\setbeamertemplate{navigation symbols}{}
% the following 2 lines
% fix the Corrupted NFSS tables problem
% and produce a document with no font related warnings
\usepackage{lmodern}
\usepackage[T1]{fontenc}
%\usepackage[noae]{Sweave}