From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: [babel] Re: problem including graphics Date: Mon, 09 Nov 2009 11:44:16 -0500 Message-ID: <87639jmyvz.fsf@stats.ox.ac.uk> References: <4AF80EE2.6070606@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7XLu-0006YV-Ts for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 11:44:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7XLp-0006W5-BU for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 11:44:26 -0500 Received: from [199.232.76.173] (port=53607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7XLp-0006VT-5d for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 11:44:21 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:45358) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7XLo-0006Ko-EA for emacs-orgmode@gnu.org; Mon, 09 Nov 2009 11:44:20 -0500 In-Reply-To: <4AF80EE2.6070606@ifi.uio.no> ("Martin G. =?utf-8?Q?Skj=C3=A6?= =?utf-8?Q?veland=22's?= message of "Mon, 09 Nov 2009 13:45:22 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Martin_G=2E_Skj=C3=A6veland?= Cc: emacs-orgmode@gnu.org "Martin G. Skj=C3=A6veland" 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=3D10em]{./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=3D10em]{./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