From: Lennart Borgman <lennart.borgman@gmail.com>
To: Andreas Politz <politza@fh-trier.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: opening images in auctex
Date: Mon, 23 Nov 2009 01:04:23 +0100 [thread overview]
Message-ID: <e01d8a50911221604u5478fc8bveef254e9c3327532@mail.gmail.com> (raw)
In-Reply-To: <87pr7anmat.fsf@fh-trier.de>
On Mon, Nov 23, 2009 at 12:59 AM, Andreas Politz <politza@fh-trier.de> wrote:
> andrea abelli <andrea@abelli.org> writes:
>
>> Hi,
>>
>> is there a way to open an image, in an external viewer/editor, that
>> is being previewed by preview-latex?
>>
>> thx in advance,
>> aa
>
>
> 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.
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.
prev parent reply other threads:[~2009-11-23 0:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-22 16:32 opening images in auctex andrea abelli
2009-11-22 20:30 ` Peter Dyballa
[not found] ` <mailman.11286.1258921821.2239.help-gnu-emacs@gnu.org>
2009-11-22 20:40 ` andrea abelli
2009-11-22 21:00 ` Lennart Borgman
[not found] ` <mailman.11290.1258923681.2239.help-gnu-emacs@gnu.org>
2009-11-22 21:22 ` andrea abelli
2009-11-22 21:43 ` Peter Dyballa
2009-11-22 23:59 ` Andreas Politz
2009-11-23 0:04 ` Lennart Borgman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50911221604u5478fc8bveef254e9c3327532@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=politza@fh-trier.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.