OK - ignore my comment concerning R - this is working. I am just trying it out. HTML works perfectly. I am just struggling with pdf. I have to set the org-latex-pdf-process to "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" and, due to security concerns, only want to set it via file local variable. But I somehow don't manage it. ,---- | # Local Variables: | # org-latex-pdf-process: "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" | # End: `---- Does not work ("No valid command to process pdf"). How can I set the command as a file local variable? Rainer Rainer M Krug writes: > Aaron Ecay writes: > >> Hi Rainer, >> >> One option is to use svg graphics, which are supported in latex (via the >> svg package from CTAN) and in HTML (on almost all modern browsers: >> ). The svg latex package supports >> compiling with pdflatex out of the box and lualatex with a little >> hackery; xelatex is not supported (you also need to install inkscape and >> compile with a flag that allows latex code to execute shell commands). > > svg does not work easily, as I have to use the cairo package in R to use > it, so I have to add this manually. Nevertheless, I could do this in a > session in a block before. > >> >> Otherwise, you might be looking for something like this worg page: >> . > > That one works nicely when generating the graphs on export - but I > would like to do no evaluations on export to have the org file as a > "output" itself. > > Thanks a lot, > > Rainer > >> >> And also search “by-backend” in the mailing list archives for other >> relevant examples. >> >> Hope this is helpful, -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982