Re: [O] make new links show as figures?

2013-10-31 Thread Alan Schmitt
r...@rickster.com writes: On 2013-10-26 08:10, John Kitchin wrote: Other than having to repeat yourself, wouldn't the [[custom:file.ext][file:file.png]] syntax allow for most/all of the use cases mentioned? rick Yes, I think [[custom:file.ext][file:file.png]] would cover all those

Re: [O] make new links show as figures?

2013-10-31 Thread Rick Frankel
On 2013-10-31 06:04, Alan Schmitt wrote: r...@rickster.com writes: So it turns out that this is a REALLY simple patch (two characters): +++ b/lisp/org.el @@ -18853,7 +18853,7 @@ BEG and END default to the buffer boundaries. (widen) (setq beg (or beg (point-min)) end (or end (point-max)))

Re: [O] make new links show as figures?

2013-10-31 Thread Cook, Malcolm
So it turns out that this is a REALLY simple patch (two characters): +++ b/lisp/org.el @@ -18853,7 +18853,7 @@ BEG and END default to the buffer boundaries. (widen) (setq beg (or beg (point-min)) end (or end (point-max))) (goto-char beg) - (let ((re (concat

Re: [O] make new links show as figures?

2013-10-31 Thread Rick Frankel
On 2013-10-31 12:20, Cook, Malcolm wrote: So it turns out that this is a REALLY simple patch (two characters): +++ b/lisp/org.el @@ -18853,7 +18853,7 @@ BEG and END default to the buffer boundaries. (widen) (setq beg (or beg (point-min)) end (or end (point-max))) (goto-char beg) -

Re: [O] make new links show as figures?

2013-10-31 Thread Alan Schmitt
r...@rickster.com writes: So, I've done some testing of the export functions (html and latex only) and found the following behaviors with this patch: - HTML - image in description only displayed if the protocol (file:) is included. - LaTeX - same, required file: protocol in description -

Re: [O] make new links show as figures?

2013-10-30 Thread Rick Frankel
On 2013-10-26 08:10, John Kitchin wrote: Other than having to repeat yourself, wouldn't the [[custom:file.ext][file:file.png]] syntax allow for most/all of the use cases mentioned? rick Yes, I think [[custom:file.ext][file:file.png]] would cover all those cases. So it turns out that this is

Re: [O] make new links show as figures?

2013-10-26 Thread John Kitchin
I realize that. I offered this approach as an alternative, as I believe I can add the functionality to expand inline images in the description portion, but i don't see a way to make the link portion accept aliases for the file: protocol without major changes to link handling. Even then, it

Re: [O] make new links show as figures?

2013-10-25 Thread Rick Frankel
On 2013-10-24 17:48, John Kitchin wrote: I don't think making chemdraw a babel language is the answer here. The way I know chemdraw is as a standalone binary executable that is all gui. there is no scripting. maybe you could build an xml file by hand, but i would never dream of that! maybe I am

Re: [O] make new links show as figures?

2013-10-24 Thread Alan Schmitt
Hi Rick and John, r...@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

Re: [O] make new links show as figures?

2013-10-24 Thread Carsten Dominik
On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: Hi Rick and John, r...@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

Re: [O] make new links show as figures?

2013-10-24 Thread Rick Frankel
On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: Hi Rick and John, r...@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

Re: [O] make new links show as figures?

2013-10-24 Thread John Kitchin
I don't think making chemdraw a babel language is the answer here. The way I know chemdraw is as a standalone binary executable that is all gui. there is no scripting. maybe you could build an xml file by hand, but i would never dream of that! maybe I am missing how you would use it.

Re: [O] make new links show as figures?

2013-10-24 Thread Rick Frankel
Carsten- On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: 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

Re: [O] make new links show as figures?

2013-10-24 Thread Rick Frankel
Carsten- On 2013-10-24 06:08, Carsten Dominik wrote: On 24.10.2013, at 09:28, Alan Schmitt alan.schm...@polytechnique.org wrote: 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

Re: [O] make new links show as figures?

2013-10-23 Thread Rick Frankel
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.