…es. Modify the install scrip to be called from a regular session so the user can install it themselves later.
…ding in .onLoad
particularly for use with fontspec (practically ubiquitous in xelatex documents) Note: the actual fonts used (Times, Courier) may not be available everywhere. For details on the potential ae conflict of Sweave and fontspec, see, e.g., http://www.theresearchkitchen.com/archives/118
if xelatex is called with -8bit option, generated makefile is not malformed, and does not need to be hacked with sed or perl see for example, http://tex.stackexchange.com/a/14776
…ht definitions (they are currently always printed.) Set the options to any other value than NULL to disable printing of the definitions e.g. options(pgfSweaveNoHighlight=TRUE)
…mvent the check at startup, `options(pgfversion = "2.10")`; This gets the package load time down to a bare minimum, the rest of the time is from loading other packages: $Rcpp  0.314 $parser  0.044 $codetools  0.029 $formatR  0.029 $filehash  0.094 $stashR  0.067 $tikzDevice  0.094 $highlight  0.088 $pgfSweave  0.044 packs <- c('Rcpp', 'parser', 'codetools', 'formatR', 'filehash', 'tikzDevice', 'highlight', 'stashR', 'pgfSweave') ti <- list() for(p in packs) ti[[p]] <- system.time(suppressPackageStartupMessages(library(p,character.only=TRUE)))
Sweave keeps track of what lines in the weaved output correspond to what lines in the source. This is useful for programs like the patchDVI library, which allow one to click on a spot in the compiled PDF file and be taken to the line in the Rnw file which generated that portion of the PDF. Previously, pgfSweave was mangling this info. This commit introduces a helper function through which all code-chunk output should be passed. As a side effect, it moves a lot of bolierplate into the helper function, cleaning up the body of the pgfSweaveRunCode function.