emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: "Martin G. Skjæveland" <martige@ifi.uio.no>
Cc: emacs-orgmode@gnu.org
Subject: [babel] Re: problem including graphics
Date: Mon, 09 Nov 2009 11:44:16 -0500	[thread overview]
Message-ID: <87639jmyvz.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <4AF80EE2.6070606@ifi.uio.no> ("Martin G. Skjæveland"'s message of "Mon, 09 Nov 2009 13:45:22 +0100")

"Martin G. Skjæveland" <martige@ifi.uio.no> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2009-11-09 16:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 12:45 problem including graphics "Martin G. Skjæveland"
2009-11-09 16:44 ` Dan Davison [this message]

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=87639jmyvz.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=martige@ifi.uio.no \
    /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).