1 \documentclass[12pt]{memoir}
3 % article-1 and article-2 styles were originally based on kieran healy's
6 \chapterstyle{article-2}
8 % with article-3 \chapterstyle, change to: \pagestyle{memo}
11 \usepackage[utf8]{inputenc}
15 knit_hooks$set(document = function(x) {
16 sub('\\usepackage[]{color}',
17 '\\usepackage[usenames,dvipsnames]{color}', x, fixed = TRUE)
19 opts_chunk$set(fig.path="figures/knitr-")
21 source("resources/preamble.R")
24 \usepackage[T1]{fontenc}
26 \usepackage[garamond]{mathdesign}
28 \usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
30 % packages i use in essentially every document
32 \usepackage{enumerate}
34 % packages i use in many documents but leave off by default
35 % \usepackage{amsmath, amsthm, amssymb}
36 % \usepackage{dcolumn}
37 % \usepackage{endfloat}
39 % import and customize urls
40 \usepackage[breaklinks]{hyperref}
41 \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
42 urlcolor=Blue, unicode=true}
44 % list of footnote symbols for \thanks{}
46 \renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
47 \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
48 \or \ddagger\ddagger \else\@ctrerr\fi}}
50 \newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]}
52 % add bibliographic stuff
53 \usepackage[american]{babel}
55 \usepackage[natbib=true, style=apa, backend=biber]{biblatex}
56 \addbibresource{refs.bib}
57 \DeclareLanguageMapping{american}{american-apa}
59 \defbibheading{secbib}[\bibname]{%
65 \def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
66 \def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}
68 % memoir function to take out of the space out of the whitespace lists
71 % LATEX NOTE: these lines will import vc stuff after running `make vc` which
72 % will add version control information to the bottom of each page. This can be
73 % useful for keeping track of which version of a document somebody has:
75 % \pagestyle{mako-mem-git}
77 % LATEX NOTE: this alternative line will just input a timestamp at the
78 % build process, useful for sharelatex
79 % \pagestyle{mako-mem-sharelatex}
83 \setlength{\parskip}{4.5pt}
84 % LATEX NOTE: Ideal linespacing is usually said to be between 120-140% the
85 % typeface size. So, for 12pt (default in this document, we're looking for
86 % somewhere between a 14.4-17.4pt \baselineskip. Single; 1.5 lines; and Double
87 % in MSWord are equivalent to ~117%, 175%, and 233%.
93 \href{mailto:youremail@uw.edu}{youremail@uw.edu}}
96 \published{\textsc{\textcolor{BrickRed}{This document is an
97 unpublished draft.\\ Please do not distribute or cite without
103 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
104 over the lazy dog. The quick brown fox jumps over the lazy dog. The
105 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
106 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
107 brown fox jumps over the lazy dog. The quick brown fox jumps over the
108 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
109 fox jumps over the lazy dog.
114 % LATEX NOTE: This alphabet below is here so we can measure the line-length of
115 % different layouts. Typesetters suggest that an average line-length of
116 % between 45-90 characters and a rule of thumb for typesetting is that you
117 % should be able to fit between 2-3 alphabets on one line. Generally speaking,
118 % the shorter the line length, the better -- and the smaller the linespacing
119 % can become. The following line is 3 alphabets (73 characters).
121 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
123 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
124 over the lazy dog. The quick brown fox jumps over the lazy dog. The
125 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
126 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
127 brown fox jumps over the lazy dog. The quick brown fox jumps over the
128 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
129 fox jumps over the lazy dog \citep{989866}.
131 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
132 over the lazy dog. The quick brown fox jumps over the lazy dog. The
133 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
134 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
135 brown fox jumps over the lazy dog. The quick brown fox jumps over the
136 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
137 fox jumps over the lazy dog \citep{989866}.
139 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
140 over the lazy dog. The quick brown fox jumps over the lazy dog. The
141 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
142 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
143 brown fox jumps over the lazy dog. The quick brown fox jumps over the
144 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
145 fox jumps over the lazy dog \citep{989866}.
149 <<test_table, echo=FALSE>>=
150 kable(form.copy, format="latex")
152 \caption{This is a test table. There are \Sexpr{f(nrow(form.copy))} rows in the table.}
156 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
157 over the lazy dog. The quick brown fox jumps over the lazy dog. The
158 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
159 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
160 brown fox jumps over the lazy dog. The quick brown fox jumps over the
161 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
162 fox jumps over the lazy dog \citep{989866}.
164 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
165 over the lazy dog. The quick brown fox jumps over the lazy dog. The
166 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
167 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
168 brown fox jumps over the lazy dog. The quick brown fox jumps over the
169 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
170 fox jumps over the lazy dog \citep{989866}.
172 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
173 over the lazy dog. The quick brown fox jumps over the lazy dog. The
174 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
175 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
176 brown fox jumps over the lazy dog. The quick brown fox jumps over the
177 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
178 fox jumps over the lazy dog \citep{989866}.
180 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
181 over the lazy dog. The quick brown fox jumps over the lazy dog. The
182 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
183 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
184 brown fox jumps over the lazy dog. The quick brown fox jumps over the
185 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
186 fox jumps over the lazy dog \citep{989866}.
188 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
189 over the lazy dog. The quick brown fox jumps over the lazy dog. The
190 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
191 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
192 brown fox jumps over the lazy dog. The quick brown fox jumps over the
193 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
194 fox jumps over the lazy dog \citep{989866}.
196 The quick brown fox jumps over the lazy dog. The quick brown fox jumps
197 over the lazy dog. The quick brown fox jumps over the lazy dog. The
198 quick brown fox jumps over the lazy dog. The quick brown fox jumps over
199 the lazy dog. The quick brown fox jumps over the lazy dog. The quick
200 brown fox jumps over the lazy dog. The quick brown fox jumps over the
201 lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
202 fox jumps over the lazy dog \citep{989866}.
205 \setcounter{biburlnumpenalty}{9001}
206 \printbibliography[title = {References}, heading=secbib]