emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] graphics for html and latex / pdf export?


From: Rainer M Krug
Subject: Re: [O] graphics for html and latex / pdf export?
Date: Thu, 04 Sep 2014 14:05:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

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 <address@hidden> writes:

> Aaron Ecay <address@hidden> 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:
>> <http://caniuse.com/#feat=svg>).  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:
>> <http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3>.
>
> 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:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: pgpH952cZGByT.pgp
Description: PGP signature


reply via email to

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