emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: rpgoldman@sift.info
Cc: nicholas.dokos@hp.com, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Having problem with latex export of image file
Date: Tue, 15 Mar 2011 10:39:51 -0400	[thread overview]
Message-ID: <7501.1300199991@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Robert Goldman <rpgoldman@sift.info> of "Tue, 15 Mar 2011 08:48:47 CDT." <4D7F6E3F.6030709@sift.info>

Robert Goldman <rpgoldman@sift.info> 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 <rpgoldman@sift.info> 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.

Nick

  reply	other threads:[~2011-03-15 14:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15  3:48 Having problem with latex export of image file Robert Goldman
2011-03-15  5:04 ` Nick Dokos
2011-03-15 13:48   ` Robert Goldman
2011-03-15 14:39     ` Nick Dokos [this message]
2011-03-15 15:30       ` Nick Dokos
2011-03-17  9:35       ` Bastien
2011-03-19 21:58         ` Robert Goldman

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=7501.1300199991@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rpgoldman@sift.info \
    /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).