auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] org-preview-latex-fragment and preview-copy-region-as


From: Antoine Levitt
Subject: Re: [AUCTeX-devel] org-preview-latex-fragment and preview-copy-region-as-mml
Date: Mon, 30 Jan 2012 12:25:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

30/01/12 11:49, Uwe Brauer
> Hello
>
> I am starting to use org-preview-latex-fragment also in non
> org buffers, including message buffers.
>
> What would be extremely helpful is to actually send the
> images generates in the message buffers as images.
>
> Preview-latex provides such a functionality
> preview-copy-region-as-mml, from  a LaTeX buffer.
>
> Of course the 2 preview functions org-preview and the
> latex-preview function work differently. I had a look 
> preview-copy-region-as-mml  and it is not clear to me how to
> make if work for png generated by org-preview-latex-fragment
> in a message buffer. 
>
> Maybe some of the maintainers of org mode or auctex are
> interested in having a look?
>
> Uwe Brauer 

(ccing gnus mailing list, in case someone is interested)

I ran into that the other day.

I think it would be very useful to have preview-buffer work
on non-latex buffers.

http://www.gnu.org/software/auctex/manual/preview-latex.html#ToDo has
the following paragraph which suggests this might not be trivial:

The current ‘gs.el’ interface is fundamentally flawed, not only because
of a broken implementation. A general batchable and daemonizable
rendering infrastructure that can work on all kinds of preview images
for embedding into buffers is warranted. The current implementation has
a rather adhoc flavor and is not easily extended. It will not work
outside of AUCTeX, either.

An additional convenience would be integration within gnus. Typical use
cases are:

- I receive a plain text mail from someone discussing maths, with inline
  $\frac a b$. Ideally, I would just press a binding that would render the
  maths with preview-buffer.

- I want to send math in an email. I would write inline $\frac a b$, and
  gnus would create a multipart message with the $$s in the plain text
  part, and images in the HTML part.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]