From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-mime-htmlize and org-preview-latex-fragment Date: Mon, 26 Mar 2012 07:31:19 -0400 Message-ID: <878vinr2mg.fsf@gmx.com> References: <87vclwe04f.fsf@mat.ucm.es> <87limsdzrl.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCAWB-00074E-Bo for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCAW5-00013W-Kf for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:30 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:38317) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SCAW5-000132-D8 for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 10:03:25 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Brauer Cc: emacs-orgmode@gnu.org Uwe Brauer writes: >>> On Thu, 22 Mar 2012 23:34:08 +0100, Uwe Brauer wrote: > > > > Now org-mime-htmlize allows me to htmlize a message buffer > > but seems not to work with org-preview-latex-fragment > > either the png is not exported or I obtain an error message > > of the sort: > > > Unknown conversion type nil for latex fragments. > I am very confused the code in question contains a line of > the sort: > (org-export-with-LaTeX-fragments "dvipng") > > Uwe Brauer > So the functionality seems to be implemented? > This functionality certainly used to work (and was one of my main reasons for using org-mime-htmlize). There is a new error in the `org-export-string' function when `org-export-with-LaTeX-fragments' is set to "dvipng" which is causing export to fail. To exercise this bug run the following elisp snippet. (let ((org-export-with-LaTeX-fragments "dvipng")) (org-export-string "A fraction $\\frac{1}{2}$." 'html "/tmp/")) Which throws the following error. org-format-latex: Unknown conversion type nil for latex fragments Once this bug is fixed the use of LaTeX to generated inline images with Org-mime should work once again. Best, -- Eric Schulte http://cs.unm.edu/~eschulte/