* image link inconsistency in org-mode 6.36c
@ 2010-06-08 22:14 Stefan Vollmar
0 siblings, 0 replies; only message in thread
From: Stefan Vollmar @ 2010-06-08 22:14 UTC (permalink / raw
To: Org-Mode List
[-- Attachment #1.1: Type: text/plain, Size: 1800 bytes --]
Hi,
I have observed an inconsistency with handling image links in org-mode 6.36c, in particular with the caption-option. Here is a minimal org-file to demonstrate my point:
file:image1.png
#+CAPTION: My Caption1.
file:image1.png
#+CAPTION: My Caption2.
[[file:image1.png]]
If displayed in org-mode, the image links all look the same. When exporting to HTML, the first image is rendered as expected, the second instance will be ignored and the third instance is displayed with a (combined!) caption text of "My Caption1. My Caption2."
Using org-toggle-inline-images, only the last instances will yield an image in Emacs. If one deletes the last line, org-toggle-inline-images comments "No inline images to display".
The problem came up today, when we added a caption in an older org-mode file which used the simple "file:"-syntax (no square brackets): the previously working image vanished and the caption text was found many paragraphs later in the next image caption (and only spotted by coincidence).
This is potentially dangerous behaviour. As a consequence, we will change all our image links to the "[[file:...]]" syntax which will solve the problem for us.
However, I would suggest that the simple "file:"-syntax should no longer be supported, except when explicitly enabled by a new flag (an option which might be desirable for backward compatibility). Or is there some hidden benefit in the "file:"-syntax other than being marginally shorter?
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-08 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 22:14 image link inconsistency in org-mode 6.36c Stefan Vollmar
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.