From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Math formatting in HTML export - The Org Manual Date: Wed, 15 Oct 2014 08:21:57 +0100 Message-ID: <871tq9ol0q.fsf@ucl.ac.uk> References: <878ukktcpz.fsf@pinto.chemeng.ucl.ac.uk> <8738asarzm.fsf@gmail.com> <87mw8zm7th.fsf@ucl.ac.uk> <87lhoitqnm.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeIuR-0001On-8I for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 03:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeIuJ-0002YR-Nh for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 03:22:11 -0400 Received: from mail-db3on0138.outbound.protection.outlook.com ([157.55.234.138]:26743 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeIuJ-0002YK-GB for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 03:22:03 -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: Joseph Vidal-Rosset Cc: "Liste-emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain On Wednesday, 15 Oct 2014 at 07:59, Joseph Vidal-Rosset wrote: [...] > Yes, I'm using precisely org-mime-htmlize with gnus when want to send > messages with png images. But with minted in my setup (to export correctly > html), the preview function does not work and then org-mime-htmlize > fails... Interesting. The following has three LaTeX equations, one without any org LaTeX directives, one for inline use and one for LaTeX blocks. Only the first works. (please accept my apologies for sending an HTML formatted email to this list ;-) * test This is a test of the equations: \begin{equation} y = \sqrt{x} \end{equation} Alternatively, using LaTeX directives: first, the single line ~#+latex~ directive for an equation inline, say, #+LATEX: y = f(x) followed by a begin/end latex block: * summary The last one has disappeared completely. The second is there in the raw email but has not been translated. Only the first case works. The export engine must work differently when exporting as a string? It is indeed surprising that the whole begin/end latex block is removed from the raw text version, as you indicated in your OP. This behaviour does seem rather strange. Looking at org-mime.el, it is not obvious (to me) what is wrong. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-450-gbc9a58 --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

Table of Contents

On Wednesday, 15 Oct 2014 at 07:59, Joseph Vidal-Rosset wrote:

[…]

> Yes, I'm using precisely org-mime-htmlize with gnus when want to send
> messages with png images. But with minted in my setup (to export correctly
> html), the preview function does not work and then org-mime-htmlize
> fails…

Interesting. The following has three LaTeX equations, one without any org LaTeX directives, one for inline use and one for LaTeX blocks. Only the first works.

(please accept my apologies for sending an HTML formatted email to this list ;-)

1 test

This is a test of the equations:

\begin{equation}
y = \sqrt{x}
\end{equation}

Alternatively, using LaTeX directives: first, the single line #+latex directive for an equation inline, say,

followed by a begin/end latex block:

2 summary

The last one has disappeared completely. The second is there in the raw email but has not been translated. Only the first case works. The export engine must work differently when exporting as a string? It is indeed surprising that the whole begin/end latex block is removed from the raw text version, as you indicated in your OP.

This behaviour does seem rather strange. Looking at org-mime.el, it is not obvious (to me) what is wrong.


Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-450-gbc9a58
--==-=-= Content-Type: image/png Content-ID: <_tmp_ltxpng_latex2910f8Z_c8b273a09cc52bc7773376bcf189a21d680017cb.png> Content-Disposition: inline; filename="latex2910f8Z_c8b273a09cc52bc7773376bcf189a21d680017cb.png" Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAegAAAATCAMAAABsrG5QAAAAWlBMVEX///8AAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAACxH1ioAAAAHXRSTlMARGa7iXYQ7yLdVDKrmc1OLg6vfl7fz78+nx5u j+Id7nYAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAHjSURBVGgF7VnbksIgDA3YO3Srot1W5f9/c0Oh jLpi5WGXOiYzWmhDCeeQkAJAlHDtJaodKb8XAix/L3s/19puezX28+6q8lJxU7ykRkqpEeg6a8HB XsZIe1gW2YDU0yCw25t+BzVq2/+g4uwgh47DK5m2cp48OKKhjwreghw6GXVxHR8dr57oCzLP+Abf kr2QZslphea8FTyXcT2T9n8isO1db57obg9FDmUFUDeLlojWqDQVsFI0mtKyRcCSKXTfrmtP9NAD K0QJUMzEyY0XdmeoxPmARAPkNTa4e0jVFSGg5tzLEw1msc4wDDdIdkgy5BWlmhzalKQvmRrJ6hAI EF2i67bhNZcJPYV169BmUOVymF/d2D/KoADRJmrX3CHxKHTLL3xYualQQGUaENcrnjqH6TMaDfSh e3vEGvLG9LT+BmwXWqDP4w+l0ZBjvOe0RgfAWsPt4XcyZu7wlsv5w/qxmV8SCufQQnLGs9yy/lib 7iZHwGZcJ7XXF3Uy1qiztenJEm0UGl05h7bq9L9yBEa31e3N7JFujlHb5GPPpJZmU4XkXRA43Z1i THXNIFva2+SoRPJGCKjrU0qA0WyJ8iabU+7wSJZmQrglPUmCwM0R9M3hdBJzqNM/Q2DKwdzbTfkH MtMPBq8mV1cAAAAASUVORK5CYII= --==-=-=-- --=-=-=--