From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: make new links show as figures? Date: Thu, 24 Oct 2013 12:08:59 +0200 Message-ID: <57E3D773-303E-4E29-AACE-A0D7C78C7F01@gmail.com> References: <20c923d8f003b0f570dad32bfb8adcbd@mail.rickster.com> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZHqm-0002fB-6I for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:09:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZHqg-00064P-Qo for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:09:07 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:60549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZHqg-00064H-Jz for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:09:02 -0400 Received: by mail-wg0-f52.google.com with SMTP id f12so2091417wgh.7 for ; Thu, 24 Oct 2013 03:09:01 -0700 (PDT) In-Reply-To: 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: Alan Schmitt Cc: Rick Frankel , emacs-orgmode@gnu.org, John Kitchin On 24.10.2013, at 09:28, Alan Schmitt = wrote: > Hi Rick and John, >=20 > rick@rickster.com writes: >=20 >> On 2013-10-22 21:53, John Kitchin wrote: >>> Is it possible to define new links that would be rendered as inline=20= >>> images? >>>=20 >>> I am imagining something like >>>=20 >>> chemdraw:benzene.png >>>=20 >>> which would show the benzene.png file inline, but when I click on it >>> would open a chemdraw file for editing. >>=20 >> unfortunately, it seems that `org-display-inline-images' has a >> hardcoded regex which searches only for =3Dfile:=3D links. >>=20 >> Wouldn't a better way be to define =3Dchemdraw=3D as a babel = language? >>=20 >> ob-plantuml, ob-dot and ob-mscgen are all examples of babel languages >> which generate images. >=20 > 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 >=20 > Alan >=20