From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81663 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: Re: html email, math formulas Date: Thu, 29 Mar 2012 22:56:50 +0200 Message-ID: <87fwcr5dnx.fsf@mat.ucm.es> References: <87zkbdrdt9.fsf@mat.ucm.es> <87k42cnx28.fsf@mat.ucm.es> <87fwd0nvu0.fsf_-_@mat.ucm.es> <8762duf49v.fsf@uwo.ca> Reply-To: Uwe Brauer NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333054821 24371 80.91.229.3 (29 Mar 2012 21:00:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 21:00:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29943=ding+2Daccount=gmane.org@lists.math.uh.edu Thu Mar 29 23:00:20 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SDMSA-0001R1-Jv for ding-account@gmane.org; Thu, 29 Mar 2012 23:00:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1SDMS9-0001H4-UT for ding-account@gmane.org; Thu, 29 Mar 2012 16:00:17 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SDMS9-0001Gy-3y for ding@lists.math.uh.edu; Thu, 29 Mar 2012 16:00:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SDMS7-0006Nh-Ph for ding@lists.math.uh.edu; Thu, 29 Mar 2012 16:00:17 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SDMS6-0003fx-9Y for ding@gnus.org; Thu, 29 Mar 2012 23:00:14 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDMS5-0001Hx-1B for ding@gnus.org; Thu, 29 Mar 2012 23:00:13 +0200 Original-Received: from 11.pool85-54-11.dynamic.orange.es ([85.54.11.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2012 23:00:13 +0200 Original-Received: from oub by 11.pool85-54-11.dynamic.orange.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2012 23:00:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 11.pool85-54-11.dynamic.orange.es X-Hashcash: 1:20:120329:gmane.emacs.gnus.general::zt2Il+qU9rApTWBb:000000000000000000000000000000000000056Lx User-Agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b31 (linux) Cancel-Lock: sha1:1zVnlM1mSW+fdF5CRiKgotLPvQg= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81663 Archived-At: >> On Sat, 24 Mar 2012 10:43:40 -0400, Dan Christensen wrote: > Uwe Brauer 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