emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Antoine Levitt <antoine.levitt@gmail.com>
To: auctex-devel@gnu.org
Cc: emacs-orgmode@gnu.org, ding@gnus.org
Subject: Re: org-preview-latex-fragment and preview-copy-region-as-mml
Date: Mon, 30 Jan 2012 12:25:13 +0100	[thread overview]
Message-ID: <87ipjtv3dy.fsf@gmail.com> (raw)
In-Reply-To: 87ehuhfot3.fsf@gilgamesch.quim.ucm.es

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.


_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

  reply	other threads:[~2012-01-30 11:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 10:49 org-preview-latex-fragment and preview-copy-region-as-mml Uwe Brauer
2012-01-30 11:25 ` Antoine Levitt [this message]
2012-01-30 18:23   ` a kludge (was: org-preview-latex-fragment and preview-copy-region-as-mml) Uwe Brauer

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipjtv3dy.fsf@gmail.com \
    --to=antoine.levitt@gmail.com \
    --cc=auctex-devel@gnu.org \
    --cc=ding@gnus.org \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).