Created
February 25, 2015 19:42
-
-
Save LeeMendelowitz/1c9e7e181c8b7b8e3504 to your computer and use it in GitHub Desktop.
Knitr Latex Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{article} | |
\usepackage[sc]{mathpazo} | |
\usepackage[T1]{fontenc} | |
\usepackage{amsmath} | |
\usepackage[top=1in, bottom=1in, left=1.5in, right = 1.5in, marginparwidth=0.0in, marginparsep=0.25in]{geometry} | |
% \geometry{verbose,tmargin=0.75in,bmargin=0.75in,lmargin=0.75in,rmargin=0.75in} %Commented out in favor of the marginnote settings | |
\setcounter{secnumdepth}{2} | |
\setcounter{tocdepth}{2} | |
\usepackage{url} | |
\usepackage[unicode=true,pdfusetitle, | |
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2, | |
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false] | |
{hyperref} | |
\usepackage{fancyhdr} | |
\pagestyle{fancy} | |
\fancyhf{} | |
\renewcommand{\headrulewidth}{0pt} | |
% Stuff for floats | |
\usepackage{float} | |
\restylefloat{figure} % allow for the H specifier | |
\usepackage{datetime} | |
\mdyyyydate | |
\settimeformat{ampmtime} | |
\renewcommand*{\noon}{\pmname} | |
% \cfoot{Report generated at \today, \currenttime} | |
\usepackage[absolute,overlay,showboxes]{textpos} | |
\setlength{\TPHorizModule}{1in} | |
\setlength{\TPVertModule}{1in} | |
\TPMargin{0.05in} | |
\hypersetup{ | |
pdfstartview={XYZ null null 1}} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\begin{document} | |
\pagenumbering{gobble} | |
\title{Title goes here} | |
\date{\today} | |
\author{Author} | |
\maketitle | |
<<setup, include=FALSE, cache=FALSE>>= | |
library(knitr) | |
library(xtable) | |
opts_chunk$set(fig.path='figure/minimal-', fig.align='center', fig.show='hold') | |
options(replace.assign=TRUE,width=90) | |
@ | |
Here's a figure: | |
\begin{figure}[ht] | |
<<, cache=FALSE, results='hide', echo=FALSE, results='hide', warning=FALSE, fig.height=6, fig.width=8>>= | |
ggplot(...) | |
@ | |
\caption{...} | |
\end{figure} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment