From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: make new links show as figures? Date: Thu, 24 Oct 2013 09:45:03 -0400 Message-ID: References: <20c923d8f003b0f570dad32bfb8adcbd@mail.rickster.com> <57E3D773-303E-4E29-AACE-A0D7C78C7F01@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZLDp-0004Lt-9o for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 09:45:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZLDl-0003Xm-2O for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 09:45:09 -0400 Received: from [204.62.15.78] (port=34575 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZLDk-0003OU-UZ for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 09:45:04 -0400 In-Reply-To: <57E3D773-303E-4E29-AACE-A0D7C78C7F01@gmail.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: Carsten Dominik Cc: Alan Schmitt , emacs-orgmode@gnu.org, John Kitchin On 2013-10-24 06:08, Carsten Dominik wrote: > On 24.10.2013, at 09:28, Alan Schmitt > 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. > > 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- In terms of inlining images in the description portion per the linked posting, do you think that it should depended on the value if the =include-linked= argument? (IMHO no, since the default usage of `org-display-inline-images' doesn't set this argument). I would be glad to take a stab at this enhancement. John- In reviewing `org-display-inline-images', and the handling of org links in general, i see no safe (and not overly complex) way of making added link types expand inline images. In the case mentioned, i still feel that adding chemdraw as a babel language is the correct approach. However, if we add the expansion of images in the description, would that work: [[chemdraw:file.cdxml][file:file.png]] rick