]> 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 c3927cbb49b7f4a1fd1330ae8c311117a47abe55..ee3b2f3293001364bee6b80db5661797c996def8 100644 (file)
@@ -8,9 +8,8 @@
 % with article-3 \chapterstyle, change to: \pagestyle{memo}
 \pagestyle{mako-mem}
 
-\usepackage{ucs}
-\usepackage[utf8x]{inputenc}
-
+\usepackage[utf8]{inputenc}
+\usepackage{wrapfig}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 \usepackage[garamond]{mathdesign}
     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})}
 
@@ -58,7 +69,7 @@
 \baselineskip 16pt
 
 \title{Title}
-\author{Nathan TeGrotenhuis\\
+\author{Nathan TeBlunthuis\\
         \href{mailto:nathante@uw.edu}{nathante@uw.edu}}
 \date{}
 
@@ -162,10 +173,9 @@ 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-processed}
-\bibliographystyle{apalike}
+\setcounter{biburlnumpenalty}{9001}
+\printbibliography[title = {References}, heading=secbib]
+
 
 \end{document}
 

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