emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Malcolm Cook <malcolm.cook@gmail.com>
Cc: Nick Dokos <ndokos@gmail.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: how to handle svg files when exporting orgmode to html and pdf?
Date: Fri, 9 Aug 2013 16:52:56 -0400	[thread overview]
Message-ID: <CAFcZrT2QAmmx5HGLtaw7VuwETGDrS=EFHnsjWRnMjtuW4hcUXw@mail.gmail.com> (raw)
In-Reply-To: <CAAAQmVZ61fw+GFrQSmyUhBp-DsKGd0B-NjouRLjbO6DA9UjJ5A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2158 bytes --]

Hi Malcom,

On Thu, Aug 8, 2013 at 10:04 PM, Malcolm Cook <malcolm.cook@gmail.com> 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!

[-- Attachment #2: testsvg.org --]
[-- Type: application/octet-stream, Size: 161 bytes --]

#+begin_src R :results  graphics output :exports both :file mtcars.svg
library(ggplot2)
qplot(wt, mpg, data = mtcars)
#+end_src

#+RESULTS:
[[file:mtcars.svg]]


[-- Attachment #3: testsvg.tex --]
[-- Type: application/x-tex, Size: 760 bytes --]

  reply	other threads:[~2013-08-09 20:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-18  0:32 how to handle svg files when exporting orgmode to html and pdf? malcolm cook
2013-07-27  6:36 ` Aaron Ecay
2013-08-08 17:46   ` Malcolm Cook
2013-08-08 19:19     ` Nick Dokos
2013-08-08 21:15       ` Cook, Malcolm
2013-08-08 19:36     ` Aaron Ecay
2013-08-08 19:46       ` Malcolm Cook
2013-08-08 21:00         ` Aaron Ecay
2013-08-08 21:11           ` Malcolm Cook
2013-08-08 21:34             ` Aaron Ecay
2013-08-09  2:04               ` Malcolm Cook
2013-08-09 20:52                 ` Aaron Ecay [this message]
2013-08-09 21:01                 ` Cook, Malcolm
2013-10-28 19:18                   ` Cook, Malcolm
2013-10-28 20:02                     ` Aaron Ecay
2013-10-28 22:02                       ` Cook, Malcolm
2013-10-30  6:08                         ` Aaron Ecay
2013-08-09  4:43         ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFcZrT2QAmmx5HGLtaw7VuwETGDrS=EFHnsjWRnMjtuW4hcUXw@mail.gmail.com' \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=malcolm.cook@gmail.com \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).