From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Having problem with latex export of image file Date: Tue, 15 Mar 2011 08:48:47 -0500 Message-ID: <4D7F6E3F.6030709@sift.info> References: <4D7EE18C.4030104@sift.info> <4306.1300165488@alphaville.dokosmarshall.org> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Return-path: Received: from [140.186.70.92] (port=37449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzUcF-00044v-7w for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 09:48:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzUcD-0005DV-RB for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 09:48:51 -0400 Received: from mpls.sift.info ([75.146.46.193]:58129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzUcD-0005D6-LD for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 09:48:49 -0400 In-Reply-To: <4306.1300165488@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 To: nicholas.dokos@hp.com Cc: Org Mode 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? A second question: is there any way to set image file extensions /on a per-file basis/? It seems to me, for example, to be quite likely that in some files PDF should be treated as images (since I use pdflatex, pdf seems like the best choice for images), whereas in others maybe not... But it seems like image-file-name-extensions is not something that is expected to be buffer-local.... best, r