From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Org-Mode List <emacs-orgmode@gnu.org>
Subject: image link inconsistency in org-mode 6.36c
Date: Wed, 09 Jun 2010 00:14:01 +0200 [thread overview]
Message-ID: <BFBC5FFC-20E8-40FB-9C84-85A88E845624@nf.mpg.de> (raw)
[-- 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
reply other threads:[~2010-06-08 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BFBC5FFC-20E8-40FB-9C84-85A88E845624@nf.mpg.de \
--to=vollmar@nf.mpg.de \
--cc=emacs-orgmode@gnu.org \
/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 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.