From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: how to handle svg files when exporting orgmode to html and pdf? Date: Thu, 8 Aug 2013 21:15:53 +0000 Message-ID: References: <87ppu4mrvq.fsf@gmail.com> <87zjsshtwu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XYw-0001dW-OO for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7XYp-0004a1-Ut for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:16:02 -0400 Received: from smtp01.stowers.org ([12.201.176.61]:46853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7XYp-0004Zp-Mx for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 17:15:55 -0400 In-Reply-To: <87zjsshtwu.fsf@gmail.com> Content-Language: en-US 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: 'Nick Dokos' , "'emacs-orgmode@gnu.org'" >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. I will try your approach - thanks - I agree > >> Sleuthing, I see the output .tex file includes the following lines: >> >> \usepackage{svg} >> ... >> \includegraphics[width=3D.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?)=20 Yes > but it should probably not be there, otherwise you are >going to get two images in your PDF. I was going to conditionally suppress it depending on value of ox-backend..= ... If I can get this whole gamish to work for me at all.... ~Malcolm > >-- >Nick >