emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: emacs-orgmode@gnu.org
Subject: Re: graphics for html and latex / pdf export?
Date: Thu, 04 Sep 2014 14:05:07 +0200	[thread overview]
Message-ID: <m27g1jbngs.fsf@krugs.de> (raw)
In-Reply-To: <m2fvg7bq5g.fsf@krugs.de> (Rainer M. Krug's message of "Thu, 04 Sep 2014 13:07:07 +0200")

[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]

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 <Rainer@krugs.de> writes:

> Aaron Ecay <aaronecay@gmail.com> 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:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

  reply	other threads:[~2014-09-04 12:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03 16:15 graphics for html and latex / pdf export? Rainer M Krug
2014-09-03 17:21 ` Aaron Ecay
2014-09-04 11:07   ` Rainer M Krug
2014-09-04 12:05     ` Rainer M Krug [this message]
2014-09-04 12:12       ` Thorsten Jolitz
2014-09-04 12:19         ` Rainer M Krug

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27g1jbngs.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).