emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: Rick Frankel <rick@rickster.com>,
	emacs-orgmode@gnu.org, John Kitchin <jkitchin@andrew.cmu.edu>
Subject: Re: make new links show as figures?
Date: Thu, 24 Oct 2013 12:08:59 +0200	[thread overview]
Message-ID: <57E3D773-303E-4E29-AACE-A0D7C78C7F01@gmail.com> (raw)
In-Reply-To: <m238nrdt5p.fsf@polytechnique.org>


On 24.10.2013, at 09:28, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:

> Hi Rick and John,
> 
> rick@rickster.com writes:
> 
>> On 2013-10-22 21:53, John Kitchin wrote:
>>> Is it possible to define new links that would be rendered as inline 
>>> images?
>>> 
>>> I am imagining something like
>>> 
>>> chemdraw:benzene.png
>>> 
>>> which would show the benzene.png file inline, but when I click on it
>>> would open a chemdraw file for editing.
>> 
>> unfortunately, it seems that `org-display-inline-images' has a
>> hardcoded regex which searches only for =file:= links.
>> 
>> Wouldn't a better way be to define =chemdraw= as a babel language?
>> 
>> ob-plantuml, ob-dot and ob-mscgen are all examples of babel languages
>> which generate images.
> 
> This may be related to a question I had a couple weeks ago (see
> http://article.gmane.org/gmane.emacs.orgmode/77567). The current logic
> seems to be to display inline images when the link points to an image,
> it would be great to extend it when the description, or part of the
> link, points to an image.

Indeed, currently this is not possible.  I would be interested to get a patch to this effect.

- Carsten

> 
> Alan
> 

  reply	other threads:[~2013-10-24 10:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23  1:53 make new links show as figures? John Kitchin
2013-10-23 13:54 ` Rick Frankel
2013-10-24  7:28   ` Alan Schmitt
2013-10-24 10:08     ` Carsten Dominik [this message]
2013-10-24 13:45       ` Rick Frankel
2013-10-24 21:48         ` John Kitchin
2013-10-25 16:49           ` Rick Frankel
2013-10-26 12:10             ` John Kitchin
2013-10-30 16:02               ` Rick Frankel
2013-10-31 10:04                 ` Alan Schmitt
2013-10-31 15:47                   ` Rick Frankel
2013-10-31 16:20                     ` Cook, Malcolm
2013-10-31 16:55                       ` Rick Frankel
2013-10-31 17:06                     ` Alan Schmitt
2013-10-24 23:41       ` Rick Frankel
2013-10-25  1:18       ` Rick Frankel

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=57E3D773-303E-4E29-AACE-A0D7C78C7F01@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --cc=rick@rickster.com \
    /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).