[Rcpp-commits] r1886 - in pkg/Rcpp/inst/doc: . Rcpp-quickref

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jul 30 11:36:14 CEST 2010


Author: romain
Date: 2010-07-30 11:36:14 +0200 (Fri, 30 Jul 2010)
New Revision: 1886

Added:
   pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref-fake.Rnw
   pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref.Rnw
Modified:
   pkg/Rcpp/inst/doc/Makefile
Log:
shell of quickref

Modified: pkg/Rcpp/inst/doc/Makefile
===================================================================
--- pkg/Rcpp/inst/doc/Makefile	2010-07-30 09:30:56 UTC (rev 1885)
+++ pkg/Rcpp/inst/doc/Makefile	2010-07-30 09:36:14 UTC (rev 1886)
@@ -8,16 +8,18 @@
 ## on Ubuntu so for Dirk will insist on pdflatex and this variable helps
 whoami=$(shell whoami)
 
-all: clean index.html Rcpp-unitTests.pdf Rcpp-introduction.pdf Rcpp-modules.pdf Rcpp-package.pdf Rcpp-FAQ.pdf Rcpp-extending.pdf Rcpp-sugar.pdf
+all: clean index.html Rcpp-unitTests.pdf Rcpp-introduction.pdf Rcpp-modules.pdf Rcpp-package.pdf Rcpp-FAQ.pdf Rcpp-extending.pdf Rcpp-sugar.pdf Rcpp-quickref.pdf
 
 clean:
 	touch Rcpp-unitTests.pdf
+	touch Rcpp-quickref.pdf
 	touch Rcpp-sugar.pdf
 	touch Rcpp-introduction.pdf
 	touch Rcpp-modules.pdf
 	touch Rcpp-FAQ.pdf
 	touch Rcpp-extending.pdf
 	rm Rcpp-introduction.pdf
+	rm Rcpp-quickref.pdf
 	rm Rcpp-sugar.pdf
 	rm Rcpp-unitTests.pdf
 	rm Rcpp-modules.pdf
@@ -142,7 +144,7 @@
 else
 	Rscript -e "tools::texi2dvi( 'Rcpp-sugar.tex', pdf = TRUE, clean = TRUE )"
 endif
-	# rm -fr Rcpp-sugar.tex
+	rm -fr Rcpp-sugar.tex
 	rm -fr Rcpp-sugar.bbl
 	rm -fr Rcpp-sugar.blg
 	rm -fr Rcpp-sugar.aux
@@ -150,4 +152,27 @@
 	rm -fr Rcpp-sugar.log
 	rm Rcpp-sugar.Rnw
 	cp Rcpp-sugar/Rcpp-sugar-fake.Rnw Rcpp-sugar.Rnw
+
+Rcpp-quickref.pdf : Rcpp-quickref/Rcpp-quickref.Rnw
+	touch Rcpp-quickref.Rnw
+	rm Rcpp-quickref.Rnw
+	cp -f Rcpp-quickref/Rcpp-quickref.Rnw .
+	Rscript -e "require(highlight); driver <- HighlightWeaveLatex(boxes = TRUE, bg = 'white' ); Sweave( 'Rcpp-quickref.Rnw', driver = driver ); "
+	Rscript -e "tools::texi2dvi( 'Rcpp-quickref.tex', pdf = TRUE, clean = FALSE )"
+	# bibtex Rcpp-quickref
+ifeq ($(whoami),edd)
+	pdflatex Rcpp-quickref
+	pdflatex Rcpp-quickref
+else
+	Rscript -e "tools::texi2dvi( 'Rcpp-quickref.tex', pdf = TRUE, clean = TRUE )"
+endif
+	rm -fr Rcpp-quickref.tex
+	rm -fr Rcpp-quickref.bbl
+	rm -fr Rcpp-quickref.blg
+	rm -fr Rcpp-quickref.aux
+	rm -fr Rcpp-quickref.out
+	rm -fr Rcpp-quickref.log
+	rm Rcpp-quickref.Rnw
+	cp Rcpp-quickref/Rcpp-quickref-fake.Rnw Rcpp-quickref.Rnw
+
 	

Added: pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref-fake.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref-fake.Rnw	                        (rev 0)
+++ pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref-fake.Rnw	2010-07-30 09:36:14 UTC (rev 1886)
@@ -0,0 +1,34 @@
+\documentclass[8pt,twocolumn,a4paper]{article}
+%\VignetteIndexEntry{Rcpp-quickref}
+
+\setlength{\hoffset}{-0.8in}
+\setlength{\voffset}{-0.8in}
+
+\setlength{\marginparwidth}{0pt}
+\setlength{\marginparsep}{0pt}
+\setlength{\oddsidemargin}{0pt}
+\setlength{\headheight}{0pt}
+\setlength{\topmargin}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\footskip}{0pt}
+\setlength{\textheight}{27cm}
+\setlength{\textwidth}{20cm}
+
+\usepackage[colorlinks]{hyperref}
+
+<<echo=FALSE,print=FALSE>>=
+options( width= 50)
+library( "Rcpp" )
+rcpp.version <- packageDescription( "Rcpp" )$Version
+@
+% closing $ needed here
+
+\author{Romain Fran\c{c}ois \and Dirk Eddelbuettel}
+\title{Rcpp \Sexpr{rcpp.version}: Quick Reference Guide}
+
+\begin{document}
+\maketitle
+\thispagestyle{empty}
+
+\end{document}
+

Added: pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref.Rnw	                        (rev 0)
+++ pkg/Rcpp/inst/doc/Rcpp-quickref/Rcpp-quickref.Rnw	2010-07-30 09:36:14 UTC (rev 1886)
@@ -0,0 +1,35 @@
+\documentclass[8pt,twocolumn,a4paper]{article}
+%\VignetteIndexEntry{Rcpp-quickref}
+
+\setlength{\hoffset}{-0.8in}
+\setlength{\voffset}{-0.8in}
+
+\setlength{\marginparwidth}{0pt}
+\setlength{\marginparsep}{0pt}
+\setlength{\oddsidemargin}{0pt}
+\setlength{\headheight}{0pt}
+\setlength{\topmargin}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\footskip}{0pt}
+\setlength{\textheight}{27cm}
+\setlength{\textwidth}{20cm}
+
+\usepackage[colorlinks]{hyperref}
+
+<<echo=FALSE,print=FALSE>>=
+options( width= 50)
+library( "Rcpp" )
+rcpp.version <- packageDescription( "Rcpp" )$Version
+@
+% closing $ needed here
+
+\author{Romain Fran\c{c}ois \and Dirk Eddelbuettel}
+\title{Rcpp \Sexpr{rcpp.version}: Quick Reference Guide}
+
+\begin{document}
+\maketitle
+\thispagestyle{empty}
+
+
+\end{document}
+



More information about the Rcpp-commits mailing list