[Rcpp-commits] r1375 - pkg/Rcpp/inst/doc/Rcpp-modules
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon May 31 10:02:48 CEST 2010
Author: romain
Date: 2010-05-31 10:02:47 +0200 (Mon, 31 May 2010)
New Revision: 1375
Modified:
pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
Log:
boxes around the R code
Modified: pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw 2010-05-30 19:34:55 UTC (rev 1374)
+++ pkg/Rcpp/inst/doc/Rcpp-modules/Rcpp-modules.Rnw 2010-05-31 08:02:47 UTC (rev 1375)
@@ -12,6 +12,19 @@
\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