From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: how to handle svg files when exporting orgmode to html and pdf? Date: Thu, 08 Aug 2013 15:19:45 -0400 Message-ID: <87zjsshtwu.fsf@gmail.com> References: <87ppu4mrvq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7Vko-0005FD-0v for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 15:20:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7Vkc-0007qB-Pp for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 15:20:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:46021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7Vkc-0007px-K4 for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 15:19:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V7Vkb-0007AG-7v for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 21:19:57 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Aug 2013 21:19:57 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Aug 2013 21:19:57 +0200 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: emacs-orgmode@gnu.org Malcolm Cook writes: > When I "export to latex as PDF file", I get error "PDF file ./test.pdf > wasn't produced" > In case of difficulties like this, I produce the tex file (C-c C-e l l) and then I process it by hand: pdflatex --shell-escape foo.tex Separates concerns nicely. > Sleuthing, I see the output .tex file includes the following lines: > > \usepackage{svg} > ... > \includegraphics[width=.9\linewidth]{mtcars.png} > @@backend:\includesvg{mtcars} > This looks wrong. You probably want @@latex:\includesvg{mtcars}@@ in your org file. In any case, the output in the tex file should be just \includesvg{mtcars} Also, not sure how the \includegraphics is produced (are you evaluating a source block?) but it should probably not be there, otherwise you are going to get two images in your PDF. -- Nick