]> git.donarmstrong.com Git - lib.git/blob - templates/latex_shell.Rnw
update copyright year
[lib.git] / templates / latex_shell.Rnw
1 \documentclass[english,12pt]{article}
2 \usepackage{fontspec}
3 \setmainfont{FreeSerif}
4 \setsansfont{FreeSans}
5 \setmonofont{FreeMono}
6 \setmathrm{FreeSerif}
7 \setmathsf{FreeSans}
8 \setmathtt{FreeSerif}
9 \usepackage[letterpaper,left=1in,right=1in,top=1in,bottom=1in,headheight=14pt]{geometry}
10 \usepackage{url}
11 \usepackage{fancyhdr}
12 \usepackage{graphicx}
13 \usepackage[bf]{caption}
14 \usepackage{rotating}
15 \usepackage{wrapfig}
16 \usepackage{booktabs}
17 \usepackage{float}
18 \usepackage{multirow}
19 \usepackage{setspace}
20 \usepackage{acro}
21 \usepackage{array}
22 \usepackage{dcolumn}
23 \usepackage{adjustbox}
24 \usepackage{longtable}
25 \usepackage{pdflscape}
26 \usepackage[backend=biber,natbib=true,hyperref=true,style=numeric-comp]{biblatex}
27 \addbibresource{references.bib}
28 %\usepackage[noblocks,auth-sc]{authblk}
29 \usepackage[hyperfigures,bookmarks,colorlinks]{hyperref}
30 %\usepackage[hyperfigures,bookmarks,colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black]{hyperref}
31 % Floats at end for journals
32 % \usepackage[nolists,figuresfirst,nomarkers,heads,nofighead,notabhead]{endfloat}
33 % \AtBeginFigures{\section*{Figure Legends}\renewcommand{\efloatseparator}{\hbox{}}}
34 % \AtBeginTables{\section*{Tables}\renewcommand{\efloatseparator}{\mbox{}}}
35 \usepackage[nomargin,inline,draft]{fixme}
36 \newcommand{\DLA}[1]{\textcolor{red}{\fxnote{DLA: #1}}}
37 \usepackage[x11names,svgnames]{xcolor}
38 \usepackage{texshade}
39 \usepackage{tikz}
40 \usepackage{nameref}
41 \usepackage{xspace}
42 % this package will stretch the font slightly if necessary.
43 \usepackage{microtype}
44 \usepackage{zref-xr,zref-user}
45 \usepackage[capitalize]{cleveref}
46 \newenvironment{narrow}[2]{%
47   \begin{list}{}{%
48       \setlength{\topsep}{0pt}%
49       \setlength{\leftmargin}{#1}%
50       \setlength{\rightmargin}{#2}%
51       \setlength{\listparindent}{\parindent}%
52       \setlength{\itemindent}{\parindent}%
53       \setlength{\parsep}{\parskip}}%
54   \item[]}{\end{list}}
55 \def\newblock{\hskip}
56 \newenvironment{paperquote}{%
57   \begin{quote}%
58      \it
59   }%
60   {\end{quote}}
61 \renewcommand{\textfraction}{0.15}
62 \renewcommand{\topfraction}{0.85}
63 \renewcommand{\bottomfraction}{0.65}
64 \renewcommand{\floatpagefraction}{0.60}
65 %\renewcommand{\baselinestretch}{1.8}
66 \newenvironment{enumerate*}%
67   {\begin{enumerate}%
68     \setlength{\itemsep}{0pt}%
69     \setlength{\parskip}{0pt}}%
70   {\end{enumerate}}
71 \newenvironment{itemize*}%
72   {\begin{itemize}%
73     \setlength{\itemsep}{0pt}%
74     \setlength{\parskip}{0pt}}%
75   {\end{itemize}}
76 \oddsidemargin 0.0in 
77 \textwidth 6in
78 \raggedbottom
79 \clubpenalty = 10000
80 \widowpenalty = 10000
81 \setlength{\emergencystretch}{20em}
82 \renewcommand\Affilfont{\itshape\small}
83 \renewcommand\cite[1]{\autocite{#1}}
84 \pagestyle{fancy}
85 \author{AUTHOR}
86 \title{TITLE}
87 \date{\ }
88 \onehalfspacing
89 % \doublespacing
90                  
91 \begin{document}
92
93 <<load.libraries,echo=FALSE,results="hide",warning=FALSE,message=FALSE,error=FALSE,cache=FALSE>>=
94 opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.7\\textheight",out.extra="keepaspectratio")
95 #opts_chunk$set(cache=TRUE, autodep=TRUE)
96 options(device = function(file, width = 8, height = 7, ...) {
97   cairo_pdf(tempfile(), width = width, height = height, ...)
98 })
99 library("data.table")
100 library("ggplot2")
101 library("reshape2")
102 library("proto")
103
104
105
106
107 \end{document}