[Rcpp-commits] r1376 - in pkg/Rcpp/inst/doc: . Rcpp-modules

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 31 10:55:11 CEST 2010


Author: romain
Date: 2010-05-31 10:55:11 +0200 (Mon, 31 May 2010)
New Revision: 1376

Modified:
   pkg/Rcpp/inst/doc/Makefile
   pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
Log:
using new highlight options

Modified: pkg/Rcpp/inst/doc/Makefile
===================================================================
--- pkg/Rcpp/inst/doc/Makefile	2010-05-31 08:02:47 UTC (rev 1375)
+++ pkg/Rcpp/inst/doc/Makefile	2010-05-31 08:55:11 UTC (rev 1376)
@@ -33,7 +33,7 @@
 	rm Rcpp-modules.Rnw 
 	cp -f Rcpp-modules/Rcpp-modules.Rnw .
 	( cd snippets ; Rscript highlight.R ; cd .. )
-	Rscript -e "require(highlight); driver <- HighlightWeaveLatex(); Sweave( 'Rcpp-modules.Rnw', driver = driver ); "
+	Rscript -e "require(highlight); driver <- HighlightWeaveLatex(boxes = TRUE); Sweave( 'Rcpp-modules.Rnw', driver = driver ); "
 	Rscript -e "tools::texi2dvi( 'Rcpp-modules.tex', pdf = TRUE, clean = FALSE )"
 	bibtex Rcpp-modules
 	Rscript -e "tools::texi2dvi( 'Rcpp-modules.tex', pdf = TRUE, clean = TRUE )"

Modified: pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw	2010-05-31 08:02:47 UTC (rev 1375)
+++ pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw	2010-05-31 08:55:11 UTC (rev 1376)
@@ -11,20 +11,6 @@
 \author{Dirk Eddelbuettel \and Romain Fran\c{c}ois}
 \title{Exposing C++ functions and classes with Rcpp modules}
 
-
-\definecolor{gray}{rgb}{0.95,0.95,0.95}
-\newsavebox{\highlightbox}
-\renewenvironment{Hchunk}%
-{%
-\vspace{1em}\noindent\begin{lrbox}{\highlightbox}%
-\begin{minipage}[b]{.9\textwidth}%
-}%
-{%
-\end{minipage}%
-\end{lrbox}%
-\fcolorbox{gray}{gray}{\usebox{\highlightbox}}%
-\vspace{1em}}%
-
 \begin{document}
 \maketitle
 



More information about the Rcpp-commits mailing list