From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: make new links show as figures? Date: Thu, 24 Oct 2013 09:28:34 +0200 Message-ID: References: <20c923d8f003b0f570dad32bfb8adcbd@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZFLa-0000pX-J2 for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 03:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZFLU-0007OY-S0 for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 03:28:46 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:44370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZFLU-0007OH-LJ for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 03:28:40 -0400 In-reply-to: <20c923d8f003b0f570dad32bfb8adcbd@mail.rickster.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rick Frankel Cc: emacs-orgmode@gnu.org, John Kitchin 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. Alan