emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mosè Giordano" <giordano.mose@libero.it>
To: emacs-orgmode@gnu.org
Subject: Exporting to HTML, LaTeX header is not recovered in the Org buffer
Date: Sun, 1 Dec 2013 19:24:38 +0100	[thread overview]
Message-ID: <CAKtYQqSvoKCnnUdW4QeH5C7=R+rPJJYyfBkVX=Ue8xYgsiHJxg@mail.gmail.com> (raw)

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è

P.S.: please keep me in CC, I'm not subscribed to the list.

             reply	other threads:[~2013-12-01 18:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-01 18:24 Mosè Giordano [this message]
2013-12-03 20:08 ` Exporting to HTML, LaTeX header is not recovered in the Org buffer Nicolas Goaziou
2013-12-13 19:22   ` Mosè Giordano

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKtYQqSvoKCnnUdW4QeH5C7=R+rPJJYyfBkVX=Ue8xYgsiHJxg@mail.gmail.com' \
    --to=giordano.mose@libero.it \
    --cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).