From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: how to handle svg files when exporting orgmode to html and pdf? Date: Thu, 08 Aug 2013 17:00:50 -0400 Message-ID: <87txizew3h.fsf@gmail.com> References: <87ppu4mrvq.fsf@gmail.com> <874nb0f00a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XKP-0007Qh-2N for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7XKG-0007Iv-LK for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:01:01 -0400 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:34603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XKG-0007Io-Go for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:00:52 -0400 Received: by mail-qc0-f171.google.com with SMTP id n10so989065qcw.16 for ; Thu, 08 Aug 2013 14:00:52 -0700 (PDT) In-Reply-To: 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: Malcolm Cook Cc: Nick Dokos , emacs-orgmode@gnu.org 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=E2=80=99t 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=E2=80=99t 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 =E2=80=9Czz=E2=80=9D should not be there. Could a stray =E2=80=9Czz=E2= =80=9D have gotten into the svg.sty file? The svg package doesn=E2=80=99t 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... --=20 Aaron Ecay