is there a way to open an image, in an external viewer/editor, that
is being previewed by preview-latex?
thx in advance,
aa
> is there a way to open an image, in an external viewer/editor, that
> is being previewed by preview-latex?
Of course. Any PNG viewer will do. For example GNU Emacs.
--
Greetings
Pete
These are my principles and if you don't like them... well, I have
others.
- Groucho Marx
I was looking for some command that would have launched, say, gimp
to edit the image.
There is some support for that in nXhtml. It has two kinds of supports
for images:
- Open an image link in GIMP (gimpedit.el)
- Showing images inline (inlimg.el)
That support is not tailored for .tex files yet however. If you add
that I would be glad to include it.
Thanks a lot. Asa I've got something, if ever, I'll let you know.
Thanks again,
aa
> I was looking for some command that would have launched, say, gimp
> to edit the image.
Open the sub-directory with the PNG images in dired-mode and type v
on the image entries (dired allows more, I think, for example !, but
I use this so seldom...)
--
Greetings
Pete
What is this talk of 'release?' Klingons do not make software
'releases.' Our software 'escapes,' leaving a bloody trail of
designers and quality assurance people in its wake.
The preview-images are displayed as overlays containing a link to
the image-files in there properties.
Here is a rough sketch :
(defun tex-open-preview-at-point ()
(interactive)
(let ((ov (car (overlays-at (point))))
(file (plist-get (cdr (overlay-get ov 'display))
:file)))
(unless file
(error "No preview here"))
(start-process "display" nil "display" file)))
It is some more work, to display the actual image, provided there is one
(like in \includegraphics etc.). AFAICS preview-latex does not
determine this.
But using the overlay region and ffap-file-at-point and expecting the
filename inside '{}' would be a good starting point.
-ap
Something like that is used in the general library inlimg.el in nXhtml
that I mentioned before. Please try to add to that if possible so we
can get a general mechanism for this in Emacs.