X-Git-Url: https://code.communitydata.science/cdsc_tex.git/blobdiff_plain/387b8f07dbbc81669246dae7b348ab592e70e7b1..d02648e69375636dbd26754833af438befaa54b4:/paper_template/text.tex diff --git a/paper_template/text.tex b/paper_template/text.tex index c3927cb..ec7173d 100644 --- a/paper_template/text.tex +++ b/paper_template/text.tex @@ -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} @@ -33,8 +32,27 @@ \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue, urlcolor=Blue, unicode=true} +% list of footnote symbols for \thanks{} +\makeatletter +\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or + \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger + \or \ddagger\ddagger \else\@ctrerr\fi}} +\makeatother +\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]} + % add bibliographic stuff -\usepackage[round]{natbib} +\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})} @@ -47,6 +65,10 @@ % \input{vc} % \pagestyle{mako-mem-git} +% LATEX NOTE: this alternative line will just input a timestamp at the +% build process, useful for sharelatex +% \pagestyle{mako-mem-sharelatex} + \begin{document} \setlength{\parskip}{4.5pt} @@ -58,7 +80,7 @@ \baselineskip 16pt \title{Title} -\author{Nathan TeGrotenhuis\\ +\author{Nathan TeBlunthuis\\ \href{mailto:nathante@uw.edu}{nathante@uw.edu}} \date{} @@ -162,10 +184,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}