From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: graphics for html and latex / pdf export? Date: Thu, 04 Sep 2014 14:05:07 +0200 Message-ID: References: <87r3zs1uyh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPVn8-00052c-0n for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 08:05:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPVn1-0005Rx-HK for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 08:05:29 -0400 Received: from mail-we0-f177.google.com ([74.125.82.177]:62146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPVn1-0005Rs-BC for emacs-orgmode@gnu.org; Thu, 04 Sep 2014 08:05:23 -0400 Received: by mail-we0-f177.google.com with SMTP id u56so9953050wes.8 for ; Thu, 04 Sep 2014 05:05:20 -0700 (PDT) Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id lq8sm19138134wjb.49.2014.09.04.05.05.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Sep 2014 05:05:19 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Thu, 04 Sep 2014 13:07:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable OK - ignore my comment concerning R - this is working. I am just trying it out. HTML works perfectly.=20 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 =20 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 =E2=80=9Cby-backend=E2=80=9D in the mailing list archive= s for other >> relevant examples. >> >> Hope this is helpful, =2D-=20 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUCFV8AAoJENvXNx4PUvmCYi8IAIMv9/URjPyO5U/L3VamX06B ctE4E8M1A5TQYhBhJVKPEjFO2eAqcG7LYcGv1JkXvclDjVmo8it0bGtJXBOqMS+L tnXnFLi3q2g99NHlptw1RffEx56AgrLs7OG7ay7DC42FHfzcftfQ8izSpTmElb4J O/ItxKW2/u7uDsVRTEK40QRR1T3+xdkwHD8IdSB+gXsKLrfKP+VKFzbu23CyY72+ M5BpjlcziszZekFbHoweCs+LIAPBOwN+0Udt5V5JfyMfDmU+HuZXmv3gjvxVm14O xaxrjjQie7CHdptCZS8fA8vZrpvwJm9X9AJZtaiJDZsN+d/uS/+eFHAvZv2+77A= =EcXu -----END PGP SIGNATURE----- --=-=-=--