emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* naming image files before exporting to PDF
@ 2015-02-05 23:42 Timothée Flutre
  2015-02-06  0:18 ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: Timothée Flutre @ 2015-02-05 23:42 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

I am using Emacs 24.3.1 + Org-mode 8.2.10 for my work and would like to
include images (typically output files in PDF from R) in my org files. Such
image files correspond to graphics describing computer simulations. Thus, I
would like to name them as meaningfully as possible, for instance
simul001_a-4_b-0.1.pdf, which would indicate that parameter a was fixed at
4 and parameter b at 0.1 for the first simulation.

In the org file, it would look like this:
#+latex_header: \graphicspath{ {./images/} }
[[file:simul001_a-4_b-0.1.pdf]]

After doing C-c C-e l l, the tex file would look like that:
...
\includegraphics[width=.9\linewidth]{simul001_a-4_b-0.1.pdf}
...

However, after C-c C-e l p, it doesn't work. Instead of the image, the pdf
contains the following sentence, _a-4_b-0.1.pdf _a-4_b-0.1.pdf.

I tested with "simul001.pdf", and it works smoothly.

I tested with "simul001_a_4_b_0_1.pdf", and it doesn't work. Instead of the
image, the pdf contains the following sentence, _a_4_b_0_1.pdf
_a_4_b_0_1.pdf, followed by an empty box containg somethign like
simul001\unhbox \voidb@x \penalty \@M \hskip \z@skip.

I know that LaTeX doesn't like special characters in file names to include.
However, I thought that underscores and hyphens were ok. As I guess I'm not
the only one who wants to name his files meaningfully, I wonder how other
people do. Would anyone have any idea?

TF

[-- Attachment #2: Type: text/html, Size: 1724 bytes --]

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

end of thread, other threads:[~2015-02-06  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-05 23:42 naming image files before exporting to PDF Timothée Flutre
2015-02-06  0:18 ` John Kitchin
2015-02-06  8:06   ` Rainer M Krug
2015-02-06  9:15     ` Timothée Flutre
2015-02-06  9:21     ` Andreas Leha

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