Skip to content

Commit

Permalink
Merge pull request #12 from eddelbuettel/feature/highlight-driver
Browse files Browse the repository at this point in the history
tweak to highlight boxen, rolled minor
  • Loading branch information
eddelbuettel committed Oct 2, 2016
2 parents 2d94e91 + 06ffd90 commit c72f428
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: RcppGSL
Type: Package
Title: 'Rcpp' Integration for 'GNU GSL' Vectors and Matrices
Version: 0.3.0.1
Version: 0.3.0.2
Date: 2016-10-01
Author: Dirk Eddelbuettel and Romain Francois
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Expand Down
6 changes: 2 additions & 4 deletions vignettes/RcppGSL-intro.Rnw
Expand Up @@ -27,10 +27,8 @@
\newcommand{\pkg}[1]{{\fontseries{b}\selectfont #1}}

\newsavebox{\hlbox}
\definecolor{hlBg}{rgb}{0.949019607843137,0.949019607843137,0.949019607843137}
%\definecolor{hlBd}{rgb}{0,0,0}
%\definecolor{hlBg}{rgb}{0.97,0.97,0.97}
\definecolor{hlBd}{rgb}{0.9,0.9,0.9} % border
\definecolor{hlBg}{rgb}{0.950,0.950,0.950} % background
\definecolor{hlBd}{rgb}{0.666,0.666,0.666} % border
\renewenvironment{Hchunk}{\vspace{0.125em}\noindent\begin{lrbox}{\hlbox}\begin{minipage}[b]{.98\linewidth}}%
{\end{minipage}\end{lrbox}\fcolorbox{hlBd}{hlBg}{\usebox{\hlbox}}\vspace{0.125em}}

Expand Down
2 changes: 1 addition & 1 deletion vignettes/buildVignette.R
Expand Up @@ -5,6 +5,6 @@ files <- if (length(commandArgs(TRUE)) == 0) dir(pattern="*.Rnw") else commandAr

## convert all files from Rnw to pdf using the highlight driver
invisible(sapply(files, function(srcfile) {
Sweave(srcfile, driver=highlight::HighlightWeaveLatex(boxes=TRUE))
Sweave(srcfile, driver=highlight::HighlightWeaveLatex()) # highlighting set in Rnw
tools::texi2pdf(gsub(".Rnw", ".tex", srcfile))
}))

0 comments on commit c72f428

Please sign in to comment.