]> code.communitydata.science - cdsc_tex.git/blobdiff - paper_template/text.tex
fix overflowing DOI urls in bibliography
[cdsc_tex.git] / paper_template / text.tex
index fa17cc9b152637caeae4fba2b4614c3de1e15b81..ee3b2f3293001364bee6b80db5661797c996def8 100644 (file)
@@ -1,20 +1,20 @@
 \documentclass[12pt]{memoir}
 
-% based on kieran healy's memoir modifications
+% article-1 and article-2 styles were originally based on kieran healy's
+% templates
 \usepackage{mako-mem}
 \chapterstyle{article-2}
-\pagestyle{kjh}
 
-\usepackage{ucs}
-\usepackage[utf8x]{inputenc}
+% with article-3 \chapterstyle, change to: \pagestyle{memo}
+\pagestyle{mako-mem}
 
+\usepackage[utf8]{inputenc}
+\usepackage{wrapfig}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
-\renewcommand{\rmdefault}{ugm}
-\renewcommand{\sfdefault}{phv}
 \usepackage[garamond]{mathdesign}
 
-\usepackage[letterpaper,left=1.2in,right=1.2in,top=1.2in,bottom=1.2in]{geometry}
+\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
 
 % packages i use in essentially every document
 \usepackage{graphicx}
 % \usepackage{dcolumn}
 % \usepackage{endfloat}
 
-% import and customize urls (kjh does this as well, it seems)
+% import and customize urls
 \usepackage[usenames,dvipsnames]{color}
 \usepackage[breaklinks]{hyperref}
 
-\hypersetup{colorlinks=true, linkcolor=Blue, citecolor=Black, filecolor=Blue,
+\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
     urlcolor=Blue, unicode=true}
 
 % add bibliographic stuff 
-\usepackage[round]{natbib}
+% add bibliographic stuff 
+\usepackage[american]{babel}
+\usepackage{csquotes}
+\usepackage[natbib=true, style=apa, backend=biber]{biblatex}
+\addbibresource{refs.bib}
+\DeclareLanguageMapping{american}{american-apa}
+
+\defbibheading{secbib}[\bibname]{%
+  \section*{#1}%
+  \markboth{#1}{#1}%
+  \baselineskip 14.2pt%
+  \prebibhook}
+
 \def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
 \def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}
 
-% import vc stuff after running `make vc`: \input{vc} \pagestyle{kjhgit}
+% memoir function to take out of the space out of the whitespace lists
+\firmlists
+
+% LATEX NOTE: these lines will import vc stuff after running `make vc` which
+% will add version control information to the bottom of each page. This can be
+% useful for keeping track of which version of a document somebody has:
+% \input{vc}
+% \pagestyle{mako-mem-git}
 
 \begin{document}
 
 \setlength{\parskip}{4.5pt}
+% LATEX NOTE: Ideal linespacing is usually said to be between 120-140% the
+% typeface size. So, for 12pt (default in this document, we're looking for
+% somewhere between a 14.4-17.4pt \baselineskip.  Single; 1.5 lines; and Double
+% in MSWord are equivalent to ~117%, 175%, and 233%.
 
-\baselineskip 18.5pt
+\baselineskip 16pt
 
 \title{Title}
-\author{Benjamin Mako Hill\\
-        \href{mailto:mako@mit.edu}{mako@mit.edu}}
+\author{Nathan TeBlunthuis\\
+        \href{mailto:nathante@uw.edu}{nathante@uw.edu}}
+\date{}
 
-\published{\textsc{\textcolor{BrickRed}{This document is an
-% unpublished draft.\\ Please do not distribute or cite without
-% permission.}}}
+\published{\textsc{\textcolor{BrickRed}{This document is an
+  unpublished draft.\\ Please do not distribute or cite without
+  permission.}}}
 
 \maketitle
 
+\begin{abstract}
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog.
+\end{abstract}
+
 \section{Section}
 
+% LATEX NOTE: This alphabet below is here so we can measure the line-length of
+% different layouts.  Typesetters suggest that an average line-length of
+% between 45-90 characters and a rule of thumb for typesetting is that you
+% should be able to fit between 2-3 alphabets on one line.  Generally speaking,
+% the shorter the line length, the better -- and the smaller the linespacing
+% can become.  The following line is 3 alphabets (73 characters). 
+
+abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
 The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
 over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
 quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
@@ -65,12 +156,27 @@ brown fox jumps over the lazy dog.  The quick brown fox jumps over the
 lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
 fox jumps over the lazy dog \citep{989866}.
 
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
+
+The quick brown fox jumps over the lazy dog.  The quick brown fox jumps
+over the lazy dog.  The quick brown fox jumps over the lazy dog.  The
+quick brown fox jumps over the lazy dog.  The quick brown fox jumps over
+the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick
+brown fox jumps over the lazy dog.  The quick brown fox jumps over the
+lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown
+fox jumps over the lazy dog \citep{989866}.
 
 % bibliography here
-\renewcommand{\bibsection}{\section{\bibname}\prebibhook}
-\baselineskip 14.2pt
-\bibliography{refs}
-\bibliographystyle{chicago}
+\setcounter{biburlnumpenalty}{9001}
+\printbibliography[title = {References}, heading=secbib]
+
 
 \end{document}
 
+%  LocalWords:  

Community Data Science Collective || Want to submit a patch?