]> git.donarmstrong.com Git - lib.git/blob - templates/latex_shell.Rnw
hippie expand is hippie-exp
[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 \def\newblock{\hskip}
47 \newenvironment{paperquote}{%
48   \begin{quote}%
49      \it
50   }%
51   {\end{quote}}
52 \renewcommand{\textfraction}{0.15}
53 \renewcommand{\topfraction}{0.85}
54 \renewcommand{\bottomfraction}{0.65}
55 \renewcommand{\floatpagefraction}{0.60}
56 %\renewcommand{\baselinestretch}{1.8}
57 \newenvironment{enumerate*}%
58   {\begin{enumerate}%
59     \setlength{\itemsep}{0pt}%
60     \setlength{\parskip}{0pt}}%
61   {\end{enumerate}}
62 \newenvironment{itemize*}%
63   {\begin{itemize}%
64     \setlength{\itemsep}{0pt}%
65     \setlength{\parskip}{0pt}}%
66   {\end{itemize}}
67 \oddsidemargin 0.0in 
68 \textwidth 6in
69 \raggedbottom
70 \clubpenalty = 10000
71 \widowpenalty = 10000
72 \setlength{\emergencystretch}{20em}
73 \renewcommand\Affilfont{\itshape\small}
74 \renewcommand\cite[1]{\autocite{#1}}
75 \pagestyle{fancy}
76 \author{AUTHOR}
77 \title{TITLE}
78 \date{\ }
79 \onehalfspacing
80 % \doublespacing
81                  
82 \begin{document}
83
84 <<load.libraries,echo=FALSE,results="hide",warning=FALSE,message=FALSE,error=FALSE,cache=FALSE>>=
85 opts_chunk$set(dev="cairo_pdf",out.width="\\textwidth",out.height="0.7\\textheight",out.extra="keepaspectratio")
86 #opts_chunk$set(cache=TRUE, autodep=TRUE)
87 options(device = function(file, width = 8, height = 7, ...) {
88   cairo_pdf(tempfile(), width = width, height = height, ...)
89 })
90 library("data.table")
91 library("ggplot2")
92 library("reshape2")
93 library("proto")
94
95
96
97
98 \end{document}