emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] how to handle svg files when exporting orgmode to html and pdf?


From: Aaron Ecay
Subject: Re: [O] how to handle svg files when exporting orgmode to html and pdf?
Date: Thu, 08 Aug 2013 17:00:50 -0400
User-agent: Notmuch/0.15.2+171~ge2f30a2 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu)

Hi Malcom,

It looks like there are two things going on.  The first is that you
are (as Nick suspected) including the file twice in the document.  You
should change the header of the babel block to output a SVG file:

#+begin_src R :results  graphics output :exports both :file mtcars.svg
                                                                   ^^^

Then you don’t need the #+BEGIN/END_LATEX bit.

The other bit is the svg package failing somehow.  Does the mtcars.svg
file exist in the same directory?  (It isn’t being generated by the
babel block, for example).  Is the inkscape binary you installed on your
$PATH?  I am suspicious about this line from the log file:

,----
| ! LaTeX Error: File `mtcars.zzpdf_tex' not found.
`----

The “zz” should not be there.  Could a stray “zz” have gotten into the
svg.sty file?

The svg package doesn’t have the greatest error reporting; if
you keep having trouble it may be helpful to add \usepackage{trace} to
the top of the document, and \traceon just before the \includesvg
command, to try to see in more detail what steps it is trying (and
possibly failing).  This will generate a voluminous log file...

-- 
Aaron Ecay



reply via email to

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