Monthly Archives: December 2009

Local texmf tree on Mac OS X

This is mostly a reference for a me but also a good reminder for those using TeXLive on Mac OS X (a.k.a. MacTeX). From the document “What Is Installed.pdf” in /Applications/TeX:

Incidentally, if you want to add files to TEX Live for one particular user, install them in a similar tree ~/Library/texmf where ~/Library is the Library folder in that user’s home directory. The folder texmf and other folders for the tree will have to be created. For instance, TEX will find any file in ~/Library/texmf/tex or a subfolder of this location, LATEX will find any file in ~/Library/texmf/tex/latex or a subfolder of this location, and BibTEX will find any .bib file in ~/Library/texmf/bibtex/bib or a subfolder of this location, and any .bst file in ~/Library/texmf/bibtex/bst or a subfolder of this location. It is not necessary to use texhash when adding files to this local tree.

pgfSweave now on CRAN

At long last pgfSweave has finally made its way to CRAN.

http://cran.r-project.org/web/packages/pgfSweave/index.html

The pgfSweave R package is about speed and style of graphics. For speed, the package provides capabilities for “caching” graphics generated with Sweave on top of the caching funcitonality of cacheSweave. For style the pgfSweave package facilitates the integration of R graphics with LaTeX reports through the tikzDevice package and eps2pgf utility. With these tools, figure labels are converted to LaTeX strings so they match the style of the document and the full range of LaTeX math symbols/equations are available.

The backbone of pgfSweave is a a new driver for Sweave (pgfSweaveDriver). The driver provides new chunk options tikz, pgf and external on top of the cache option provided by cacheSweave.

This package started as a fork (hack) of cacheSweave to suit our own narrow purposes and has since become a valuable tool for much of our own work. We hope you will find it useful as well.

-Cameron Bracken and Charlie Sharpsteen

swfDevice: Help Wanted (Windows Build) and Outlook

swfDevice is an R package I am developing that produces swf (flash) files natively from R.

If anyone can step up and help get a working windows build up and running that would be great! I have little expertise with windows and I am just about stuck as what to do next. The task involved linking to some precompiled dlls and such since ming depends on libpng, zlib, libungig and freetype. If you would like to help, send me an email (cameron.bracken [at] gmail.com).

Todo before initial CRAN release:

  • Working windows build that does not crash when any operation is performed
  • option to wrap swf output in HTML

Todo in the future (possibly before initial release but probably not):

Device features

  • xCharOffset yCharOffset
  • yLineBias
  • ipr: pixels per inch
  • cra: default character size in pixels
  • canClip: will be much harder than tikzDevice
  • canChangeGamma
  • canHAdj: not supported
  • startps: ditto
  • hasTextUTF8: should be possible with ming
  • wantSymbolUTF8: ditto

Implement remaining graphics parameters

  • gamma
  • lend
  • ljoin
  • lmitre
  • lineheight

Graphics primitives

  • metricInfo (is currently returning the same metrics for all characters, this is bad but does not severely affect the text placement)
  • textUTF8
  • strWidthUTF8