-
Notifications
You must be signed in to change notification settings - Fork 18
/
knitr.Rtex
executable file
·40 lines (33 loc) · 1.01 KB
/
knitr.Rtex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\documentclass[a4paper,11pt]{article}
%\usepackage[T1]{fontenc}
%\usepackage[latin1]{inputenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsthm,amsfonts}
%\usepackage{tabularx}
\usepackage{graphicx}
%\usepackage{booktabs}
\usepackage{natbib}
\usepackage{color}
\setlength{\textwidth}{430pt}
\setlength{\oddsidemargin}{7pt}
\setlength{\marginparwidth}{7pt}
\setlength{\parindent}{0mm}
\setlength{\parskip}{3mm}
\setlength{\topmargin}{2pt}
\usepackage{listings}
\usepackage{inconsolata}
\begin{document}
\section*{Summary \\ \today{}}.
<<echo=FALSE>>=
options(width=60)
listing <- function(x, options) {
paste("\\begin{lstlisting}[basicstyle=\\ttfamily,breaklines=true]\n",
x, "\\end{lstlisting}\n", sep = "")
}
knit_hooks$set(source=listing, output=listing)
@
% Investigate each group separately
<<groupcheck, message=FALSE, warning=FALSE, cache=FALSE, echo=FALSE, fig=true, fig.width=7, fig.height=7, out.width='.6\\linewidth', fig.path='figure-univariate/', fig.align='center'>>=
}
@
\end{document}