Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: Re: html email, math formulas
Date: Thu, 29 Mar 2012 22:56:50 +0200	[thread overview]
Message-ID: <87fwcr5dnx.fsf@mat.ucm.es> (raw)
In-Reply-To: <8762duf49v.fsf@uwo.ca>

>> On Sat, 24 Mar 2012 10:43:40 -0400, Dan Christensen <jdc@uwo.ca> wrote:

   > Uwe Brauer <oub@mat.ucm.es> writes:
   >> Right!!! That it was, many thanks, I recommend including
   >> that code in gnus, but maybe I am really the only one
   >> interested.

   > Can you share your final working code?
Sure:

(defun article-treat-TeX-to-chars ()
  "Translate TeX commands to chars."
  (interactive)
  (save-excursion
    (when (article-goto-body)
      (let ((inhibit-read-only t))
		(TeX-to-char-region (point-min) (point-max))))))



(defun article-treat-org-preview () 
  "Translate TeX commands to png generated by org-preview-latex-fragment
into overlays or extents." 
  (interactive)
  (save-excursion
    (when (article-goto-body)
      (let ((inhibit-read-only t))
		(let ((buffer-file-name ""))
		(org-preview-latex-fragment nil))))))


For the first one you will need Aidain TeX-to-char. I am not
sure whether it is part of mainstream xemacs. I can send it
to you.

Uwe 




  reply	other threads:[~2012-03-29 20:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-18 17:58 apply TeX-to-char-paragraph-or-region to an article Uwe Brauer
2012-03-22 19:58 ` Lars Magne Ingebrigtsen
2012-03-22 21:30   ` Uwe Brauer
2012-03-22 21:37     ` Lars Magne Ingebrigtsen
2012-03-22 21:56       ` html email, math formulas (was: apply TeX-to-char-paragraph-or-region to an article) Uwe Brauer
2012-03-24 14:43         ` html email, math formulas Dan Christensen
2012-03-29 20:56           ` Uwe Brauer [this message]
2012-03-25 13:00         ` Philipp Haselwarter
2012-03-29 20:53           ` Uwe Brauer
2012-03-29 21:02           ` Uwe Brauer
2012-05-07  5:26         ` Eric S Fraga

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=87fwcr5dnx.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).