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: Fri, 9 Aug 2013 16:52:56 -0400 Message-ID: References: <87ppu4mrvq.fsf@gmail.com> <874nb0f00a.fsf@gmail.com> <87txizew3h.fsf@gmail.com> <87r4e3euje.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11c2c2b887a21704e389f5a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7tgA-0000X1-7E for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 16:52:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7tg9-0003CT-4s for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 16:52:58 -0400 Received: from mail-qe0-x234.google.com ([2607:f8b0:400d:c02::234]:57512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7tg8-0003CP-V9 for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 16:52:57 -0400 Received: by mail-qe0-f52.google.com with SMTP id cz11so2625722qeb.11 for ; Fri, 09 Aug 2013 13:52:56 -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" --001a11c2c2b887a21704e389f5a6 Content-Type: text/plain; charset=UTF-8 Hi Malcom, On Thu, Aug 8, 2013 at 10:04 PM, Malcolm Cook wrote: > Aaron, > > Thanks for staying with me on this. > > I'm not sure what you're suggesting. > > Nonetheless, I just updated org from `git clone git://orgmode.org/org-mode.git` > > So, now I'm got org-version release_8.0.7-377-gef2d47.dirty. > > Are you suggesting that with this patch.svg created with exporting > graphics :file should now display in the emacs buffer when I toggle > display of inline images? I wish they would. They do not, despite my > adding "svg" to org-export-latex-inline-image-extensions. This I believe relies on your emacs binary having support for svg images. You can check if emacs is linked against librsvg with the following shell command (assuming you are on linux): $ ldd `which emacs` | grep svg Which should give you some line of output like librsvg-2.so.2 => /usr/lib/librsvg-2.so.2 (0xb6a86000) Within emacs, M-: (image-type-available-p 'svg) RET should display t In buffer viewing of svg works for me without any additional setup, upon pressing C-c C-x C-v, in an emacs with svg support. > > Are you suggesting that such a .svg created by org code block would be > appear in the pdf created when I export to latex -> pdf? I wish that > also... that's what I've been trying to accomplish. Yes. I'm attaching the testsvg.org file (slightly modified from the one you sent) and resultant latex export I get from the same git version as you...as you can see, the [[file:mtcars.svg]] link is translated into an \includesvg LaTeX command. Does it work the same for you? > > PS - I see you are/were in PA in linguistics. My first job after my > masters in AI from U Mass was at CMU's psych dept as a lisp programmer > for John Anderson's intelligent tutoring systems. I then went on in > computational linguistics a bit, working on a marcus parser based > natural language processing system at wang labs. Ages ago. Now I'm > in computational biology. The one commonality through it all? Emacs! :) I'm in the doctoral program in linguistics at Penn, and a happy emacs user for several years. Here's to many more! --001a11c2c2b887a21704e389f5a6 Content-Type: application/octet-stream; name="testsvg.org" Content-Disposition: attachment; filename="testsvg.org" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hk5v97710 IytiZWdpbl9zcmMgUiA6cmVzdWx0cyAgZ3JhcGhpY3Mgb3V0cHV0IDpleHBvcnRzIGJvdGggOmZp bGUgbXRjYXJzLnN2ZwpsaWJyYXJ5KGdncGxvdDIpCnFwbG90KHd0LCBtcGcsIGRhdGEgPSBtdGNh cnMpCiMrZW5kX3NyYwoKIytSRVNVTFRTOgpbW2ZpbGU6bXRjYXJzLnN2Z11dCgo= --001a11c2c2b887a21704e389f5a6 Content-Type: application/x-tex; name="testsvg.tex" Content-Disposition: attachment; filename="testsvg.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hk5v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