emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Is LaTeX pdf export that uses pgfSweave possible?


From: Mikhail Titov
Subject: [O] Is LaTeX pdf export that uses pgfSweave possible?
Date: Thu, 15 Sep 2011 18:07:24 -0500

Hello!

First of all I’m not good at lisp as of now. I’d like to have an extra export 
option when I press C-c C-e that would create <dot>Rnw file instead of 
<dot>tex, pass it through pgfSweave in running R session.

I have the following to use pgfSweave in R session:

-------8<--------------------------------------------------------------->8-------
 
(defun ess-swv-pgfweave ()
   "Run pgfSweave on the current .Rnw file."
   (interactive)
   (ess-execute "library(pgfSweave)")
   (ess-swv-run-in-R "pgfSweave"))

(define-key noweb-minor-mode-map "\M-ns" 'ess-swv-pgfweave)

(easy-menu-add-item noweb-minor-mode-menu '("Sweaving, Tangling, ...") 
["pgfSweave" ess-swv-pgfweave t])
-------8<--------------------------------------------------------------->8-------

So I thought I'd somehow hook up altogether as I like an idea of folding things 
while make Beamer slides, but same time I like neatness of pgfSweave...

I don't know if there might be problems passing through constructs like

<<stuff>>=
stuff
@

untouched into <dot>Rnw file.

I'm aware of babel for R but I can't use LaTeX in plots with it :(

Mikhail






reply via email to

[Prev in Thread] Current Thread [Next in Thread]