]> git.donarmstrong.com Git - lib.git/blob - templates/latex_shell.Rnw
update copyright in perl script
[lib.git] / templates / latex_shell.Rnw
1 \documentclass[english,12pt]{article}
2 \usepackage{fontspec}
3 \setmainfont{FreeSerif}
4 \setsansfont{FreeSans}
5 \setmonofont{FreeMono}
6 \usepackage[letterpaper,left=1in,right=1in,top=1in,bottom=1in,headheight=14pt]{geometry}
7 \usepackage{url}
8 \usepackage{fancyhdr}
9 \usepackage{graphicx}
10 \usepackage[bf]{caption}
11 \usepackage{rotating}
12 \usepackage{wrapfig}
13 \usepackage{booktabs}
14 \usepackage{float}
15 \usepackage{multirow}
16 \usepackage{setspace}
17 \usepackage{txfonts}
18 %\usepackage{fancyref}
19 \usepackage{acronym}
20 \usepackage{array}
21 \usepackage{dcolumn}
22 \usepackage{adjustbox}
23 \usepackage{longtable}
24 \usepackage{pdflscape}
25 \usepackage[backend=biber,natbib=true,hyperref=true,style=numeric-comp]{biblatex}
26 \addbibresource{references.bib}
27 %\usepackage[noblocks]{authblk}
28 \usepackage[hyperfigures,bookmarks,colorlinks]{hyperref}
29 %\usepackage[hyperfigures,bookmarks,colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black]{hyperref}
30 % Floats at end for journals
31 % \usepackage[nolists,figuresfirst,nomarkers,heads,nofighead,notabhead]{endfloat}
32 % \AtBeginFigures{\section*{Figure Legends}\renewcommand{\efloatseparator}{\hbox{}}}
33 % \AtBeginTables{\section*{Tables}\renewcommand{\efloatseparator}{\mbox{}}}
34 \usepackage[nomargin,inline,draft]{fixme}
35 \newcommand{\DLA}[1]{\textcolor{red}{\fxnote{DLA: #1}}}
36 \usepackage[x11names,svgnames]{xcolor}
37 \usepackage{texshade}
38 \usepackage{tikz}
39 \usepackage{nameref}
40 \usepackage{zref-xr,zref-user}
41 \newenvironment{narrow}[2]{%
42   \begin{list}{}{%
43       \setlength{\topsep}{0pt}%
44       \setlength{\leftmargin}{#1}%
45       \setlength{\rightmargin}{#2}%
46       \setlength{\listparindent}{\parindent}%
47       \setlength{\itemindent}{\parindent}%
48       \setlength{\parsep}{\parskip}}%
49   \item[]}{\end{list}}
50 \def\newblock{\hskip}
51 \newenvironment{paperquote}{%
52   \begin{quote}%
53      \it
54   }%
55   {\end{quote}}
56 \renewcommand{\textfraction}{0.15}
57 \renewcommand{\topfraction}{0.85}
58 \renewcommand{\bottomfraction}{0.65}
59 \renewcommand{\floatpagefraction}{0.60}
60 %\renewcommand{\baselinestretch}{1.8}
61 \newenvironment{enumerate*}%
62   {\begin{enumerate}%
63     \setlength{\itemsep}{0pt}%
64     \setlength{\parskip}{0pt}}%
65   {\end{enumerate}}
66 \newenvironment{itemize*}%
67   {\begin{itemize}%
68     \setlength{\itemsep}{0pt}%
69     \setlength{\parskip}{0pt}}%
70   {\end{itemize}}
71 \oddsidemargin 0.0in 
72 \textwidth 6.5in
73 \raggedbottom
74 \clubpenalty = 10000
75 \widowpenalty = 10000
76 \pagestyle{fancy}
77 \author{AUTHOR}
78 \title{TITLE}
79 \date{\ }
80 \onehalfspacing
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}