From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Subject: Exporting to HTML, LaTeX header is not recovered in the Org buffer Date: Sun, 1 Dec 2013 19:24:38 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnBi7-0002F5-Jn for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:25:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnBi0-00077e-B7 for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:25:39 -0500 Received: from outrelay08.libero.it ([212.52.84.112]:46167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnBhz-00075R-Ou for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 13:25:32 -0500 Received: from mail-vc0-f181.google.com (209.85.220.181) by outrelay08.libero.it (8.6.033) (authenticated as giordano.mose@libero.it) id 52817A1203FFB5AC for emacs-orgmode@gnu.org; Sun, 1 Dec 2013 19:25:19 +0100 Received: by mail-vc0-f181.google.com with SMTP id ks9so7912526vcb.12 for ; Sun, 01 Dec 2013 10:25:18 -0800 (PST) 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: emacs-orgmode@gnu.org Hi folks, in order to export to HTML LaTeX fragments (not necessarily math fragments) as PNG pictures, I set --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \newenvironment{dummy}{}{} #+OPTIONS: tex:dvipng --8<---------------cut here---------------end--------------->8--- and insert LaTeX fragments in `dummy' environments. This is useful for showing the aspect of a LaTeX fragment without compiling, cropping, and converting to PNG an external LaTeX file. Are there better ways to do that? For example --8<---------------cut here---------------start------------->8--- #+TITLE: foo #+LATEX_HEADER: \usepackage{lipsum} \newenvironment{dummy}{}{} #+OPTIONS: tex:dvipng \begin{dummy} \lipsum[1] \end{dummy} --8<---------------cut here---------------end--------------->8--- used to work until Org < 8 (of course with `LaTeX:dvipng' instead of `tex:dvipng'), but with the new HTML exporter the LaTeX header is recovered inside the `org-create-formula-image-with-dvipng' function while being in the ` *temp*' buffer, so the LATEX_HEADER option set in the Org file is discarded. Is it an intended behavior? Or is it a bug? I'm running Org 8.2.3c (20131125) from Elpa. Thank you, bye, Mos=C3=A8 P.S.: please keep me in CC, I'm not subscribed to the list.