[Uwgarp-commits] r8 - pkg/GARPFRM/vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Nov 18 22:48:08 CET 2013


Author: rossbennett34
Date: 2013-11-18 22:48:08 +0100 (Mon, 18 Nov 2013)
New Revision: 8

Added:
   pkg/GARPFRM/vignettes/sample_vignette.Rnw
Log:
Adding sample vignette

Added: pkg/GARPFRM/vignettes/sample_vignette.Rnw
===================================================================
--- pkg/GARPFRM/vignettes/sample_vignette.Rnw	                        (rev 0)
+++ pkg/GARPFRM/vignettes/sample_vignette.Rnw	2013-11-18 21:48:08 UTC (rev 8)
@@ -0,0 +1,64 @@
+\documentclass[a4paper]{article}
+\usepackage[OT1]{fontenc}
+\usepackage{Sweave}
+\usepackage{Rd}
+\usepackage{amsmath}
+\usepackage{hyperref}
+\usepackage{url}
+\usepackage[round]{natbib}
+\usepackage{bm}
+\usepackage{verbatim}
+\usepackage[latin1]{inputenc}
+\bibliographystyle{abbrvnat}
+
+\let\proglang=\textsf
+%\newcommand{\pkg}[1]{{\fontseries{b}\selectfont #1}}
+%\newcommand{\R}[1]{{\fontseries{b}\selectfont #1}}
+%\newcommand{\email}[1]{\href{mailto:#1}{\normalfont\texttt{#1}}}
+%\newcommand{\E}{\mathsf{E}}
+%\newcommand{\VAR}{\mathsf{VAR}}
+%\newcommand{\COV}{\mathsf{COV}}
+%\newcommand{\Prob}{\mathsf{P}}
+
+\renewcommand{\topfraction}{0.85}
+\renewcommand{\textfraction}{0.1}
+\renewcommand{\baselinestretch}{1.5}
+\setlength{\textwidth}{15cm} \setlength{\textheight}{22cm} \topmargin-1cm \evensidemargin0.5cm \oddsidemargin0.5cm
+
+\usepackage[latin1]{inputenc}
+% or whatever
+
+\usepackage{lmodern}
+\usepackage[T1]{fontenc}
+% Or whatever. Note that the encoding and the font should match. If T1
+% does not look nice, try deleting the line with the fontenc.
+
+\begin{document}
+
+\title{Title of the vignette}
+\author{author of the vignette}
+
+\maketitle
+
+\begin{abstract}
+Explain the purpose of the vignette
+\end{abstract}
+
+\tableofcontents
+
+\section{This is a section}
+\subsection{This is a subsection}
+
+<<ex1>>=
+# This is code
+x <- rnorm(10)
+print(x)
+@
+
+<<ex2>>=
+# Include plots
+plot(x)
+@
+
+
+\end{document}



More information about the Uwgarp-commits mailing list