emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting images in latex with a relative path
@ 2015-06-17 10:39 Alan Schmitt
  2015-06-17 11:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2015-06-17 10:39 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

Hello,

I'm fetching images using org-download, which creates links of the form:

 [[~/work/talks/Formal_JavaScript/images/Adobe_logo_2015-06-17_12:22:02.gif]]

Unfortunately these links are not exported when I export to latex, I get
this output:

 \url{file:///Users/schmitta/work/talks/Formal_JavaScript/images/Adobe_logo_2015-06-17_12:22:02.gif}

Is there a way to get an inline image instead? I see the manual requires
the link to start with "file:" or with ".", could it also work with "~"?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: exporting images in latex with a relative path
  2015-06-17 10:39 exporting images in latex with a relative path Alan Schmitt
@ 2015-06-17 11:54 ` Nicolas Goaziou
  2015-06-17 12:38   ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2015-06-17 11:54 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> I'm fetching images using org-download, which creates links of the form:
>
>  [[~/work/talks/Formal_JavaScript/images/Adobe_logo_2015-06-17_12:22:02.gif]]
>
> Unfortunately these links are not exported when I export to latex, I get
> this output:
>
>  \url{file:///Users/schmitta/work/talks/Formal_JavaScript/images/Adobe_logo_2015-06-17_12:22:02.gif}
>
> Is there a way to get an inline image instead? I see the manual requires
> the link to start with "file:" or with ".", could it also work with
> "~"?

It already works with "~", but ".gif" is not recognized, by default, as
a valid extension for images. You can configure
`org-latex-inline-image-rules'.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: exporting images in latex with a relative path
  2015-06-17 11:54 ` Nicolas Goaziou
@ 2015-06-17 12:38   ` Alan Schmitt
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Schmitt @ 2015-06-17 12:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

On 2015-06-17 13:54, Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> It already works with "~", but ".gif" is not recognized, by default, as
> a valid extension for images. You can configure
> `org-latex-inline-image-rules'.

Ah, thank you. Org was doing the smart thing here: including gifs in
a latex document is not a great idea …

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-17 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 10:39 exporting images in latex with a relative path Alan Schmitt
2015-06-17 11:54 ` Nicolas Goaziou
2015-06-17 12:38   ` Alan Schmitt

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).