emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[babel] Re: [Orgmode] problem including graphics


From: Dan Davison
Subject: [babel] Re: [Orgmode] problem including graphics
Date: Mon, 09 Nov 2009 11:44:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

"Martin G. Skjæveland" <address@hidden> writes:

> Hi all,
>
> I have a problem including dot generated graphics in my export.
>
> The code is
>
> #+begin_src dot :file ./test.pdf :cmdline -Tpdf
> digraph test  {
> Hello -> World;
> };
> #+end_src

Hi Martin and all,

Please note that if you have org-babel activated, then exporting
any #+begin_src XXX block will make use of org-babel, and therefore that
any problems may be org-babel problems (and therefore that a [babel]
subject tag may be appropriate.) I think it's reasonable to treat this
as a [babel] thread for now.

Having said that, I'm not knowledgable enough about the export mechanics
to have come up with any good suggestions here. Could you cut down your
large file until you find a reasonably small version that still shows
the problem, and then post that?

Fwiw:

Org-babel should have inserted

[[file:./test.pdf]]

which should export to

\includegraphics[width=10em]{./test.pdf}

I can get something similar to the \hyperref by using a named link

[[file:./test.pdf][./test.pdf]]

which exports to

\href{file:///tmp/test.pdf}{./test.pdf}

(I don't know what the difference is between href and hyperref nor what
determines which is used.)

Dan

>
> When I export to latex it turns into
>
> \hyperref[./test.pdf]{file:./test.pdf}
>
> However, then I tried this in a separate document (to make this small
> example) it works fine and exports to
>
> \includegraphics[width=10em]{./test.pdf}
>
> So now my question is why is the same code in different documents
> interpreted different? Both documents have the same #+OPTIONS
> settings. My working document is a large document, so perhaps there
> are other bits of my document that interfere, but they shouldn't,
> right?



>
> Thanks!
> Martin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]