From: Malcolm Cook <malcolm.cook@gmail.com>
To: Malcolm Cook <malcolm.cook@gmail.com>,
emacs-orgmode@gnu.org, Nick Dokos <ndokos@gmail.com>
Subject: Re: how to handle svg files when exporting orgmode to html and pdf?
Date: Thu, 8 Aug 2013 16:11:49 -0500 [thread overview]
Message-ID: <CAAAQmVYUZdY3oSe7XRCgq3hMY-+KXuXyzgSQwaLNRh3huAogog@mail.gmail.com> (raw)
In-Reply-To: <87txizew3h.fsf@gmail.com>
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 <aaronecay@gmail.com> 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’t 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’t 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 “zz” should not be there. Could a stray “zz” have gotten into the
> svg.sty file?
>
> The svg package doesn’t 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
next prev parent reply other threads:[~2013-08-08 21:12 UTC|newest]
Thread overview: 20+ 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 [this message]
2013-08-08 21:34 ` Aaron Ecay
2013-08-09 2:04 ` Malcolm Cook
2013-08-09 20:52 ` Aaron Ecay
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
-- strict thread matches above, loose matches on Subject: below --
2013-07-18 0:25 Malcolm Cook
2013-07-18 0:47 ` Suvayu Ali
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAAQmVYUZdY3oSe7XRCgq3hMY-+KXuXyzgSQwaLNRh3huAogog@mail.gmail.com \
--to=malcolm.cook@gmail.com \
--cc=emacs-orgmode@gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.