From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Having problem with latex export of image file Date: Tue, 15 Mar 2011 11:30:41 -0400 Message-ID: <7930.1300203041@alphaville.dokosmarshall.org> References: <4D7EE18C.4030104@sift.info> <4306.1300165488@alphaville.dokosmarshall.org> <4D7F6E3F.6030709@sift.info> <7501.1300199991@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=51041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzWDA-0006Ra-HO for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 11:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzWD5-0004mx-Tq for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 11:31:04 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:61649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzWD5-0004mO-Pc for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 11:30:59 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LI300KU0V355760@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:30:48 -0500 (CDT) In-reply-to: Message from Nick Dokos of "Tue, 15 Mar 2011 10:39:51 EDT." <7501.1300199991@alphaville.dokosmarshall.org> 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 Cc: nicholas.dokos@hp.com, Org Mode , rpgoldman@sift.info Nick Dokos wrote: > Robert Goldman wrote: > > > X-TagToolbar-Keys: D20110315084847273 > > Content-Type: text/plain; charset=ISO-8859-1 > > Content-Transfer-Encoding: 7bit > > > > On 3/15/11 Mar 15 -12:04 AM, Nick Dokos wrote: > > > Robert Goldman wrote: > > > > > >> I have the following in my org file: > > >> > > >> #+CAPTION: Sample (partial) plan graph. > > >> #+LABEL: fig:sampleGraph > > >> #+ATTR_LaTeX: width=.9\textwidth > > >> [[plan-with-tc-start.pdf]] > > >> > > >> which I believe should give me a figure. However, when I run this > > >> through the latex export I get the following instead: > > >> > > >> \hyperref[plan-with-tc-start.pdf]{plan-with-tc-start.pdf} > > >> > > >> I pushed "pdf" onto image-file-name-extensions but that doesn't seem to > > >> make any difference. > > >> > > >> I figure there's something simple I'm doing wrong, but I can't figure > > >> out what that is. > > >> > > >> Thanks for any advice! > > >> > > > > > > Try > > > > > > [[./plan-with-tc-start.pdf]] > > > > Thanks. That did fix it. Question: what's the rule about file names > > here? Is it that there must be a non-empty directory part? Or > > something else? > > > > From observation of effects, it seems to me that in LaTeX export: > > o plain file names in links get hyperref'ed, e.g [[image.pdf] > o pathnames in links get a figure environment and \includegraphics, e.g. [[./image.pdf]] > o file: type links get \includegraphics without a figure environment, e.g. [[file:image.pdf]] > > I didn't look very hard, but I didn't find documentation on these. > But I seem to recall some discussion of this on the ML a long time ago. > > In HTML export, everything is a link. What happens in other exports, > I have no idea. > This is right (I think) as far as it goes, but it misses the larger point: the effect of #+CAPTION. See http://thread.gmane.org/gmane.emacs.orgmode/17814/focus=18537 for more details. Nick