From mboxrd@z Thu Jan 1 00:00:00 1970 From: Malcolm Cook Subject: Re: how to handle svg files when exporting orgmode to html and pdf? Date: Thu, 8 Aug 2013 16:11:49 -0500 Message-ID: References: <87ppu4mrvq.fsf@gmail.com> <874nb0f00a.fsf@gmail.com> <87txizew3h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XVP-0005GA-Am for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:12:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7XVM-00035i-4M for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:12:23 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:58802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XVL-00035Z-VP for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:12:20 -0400 Received: by mail-ie0-f178.google.com with SMTP id f4so2808828iea.37 for ; Thu, 08 Aug 2013 14:12:19 -0700 (PDT) In-Reply-To: <87txizew3h.fsf@gmail.com> 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 , emacs-orgmode@gnu.org, Nick Dokos Aaron, Yeah, the zz was added by me whilst sleuthing. Sorry for the confusion. I added it across the board though. Before I added it, the message had been 'mtcars.zzpdf_tex' not found.' I know with org I can directly :export :file basename.svg The thing I am trying to accomplish is to find an approach that works for both org export to html and org export to latex->pdf without having to edit the org document in between exports. When I do :export :file basename.svg the resulting pdf does not inline the svg. Rather it contains a link to it. I thought the dance with the svg package was a way of accomplishing my aim. Do you see a better way? Thanks! -- Malcolm Cook h - 913.642.5257 c - 913.226.1542 w - 816.926.4449 On Thu, Aug 8, 2013 at 4:00 PM, Aaron Ecay wrote: > 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=92t 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=92t 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 =93zz=94 should not be there. Could a stray =93zz=94 have gotten int= o the > svg.sty file? > > The svg package doesn=92t 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