emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Cc: nicholas.dokos@hp.com
Subject: [BUG] problem exporting example block to html
Date: Sun, 05 Jun 2011 02:00:29 -0400	[thread overview]
Message-ID: <15047.1307253629@alphaville.dokosmarshall.org> (raw)

Exporting the following to html:

--8<---------------cut here---------------start------------->8---

* foo

#+begin_example
#+TITLE: foo
* One

One

* Two

Euler says:

#+begin_latex
\[
\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}}
\]
#+end_latex
#+end_example
--8<---------------cut here---------------end--------------->8---

deletes the latex section. The problem is that in
org-export-preprocess-string, by the time that we get to
org-export-select-backend-specific-text(), the example has been wrapped in
BEGIN_HTML/END_HTML and the begin_example/end_example have been translated
into <pre>/</pre>. org-export-select-backend-specific-text() then blindly
deletes the latex section since it does not "belong" to the html backend,
not realizing that it is part of a literal example.

There is also a bug in the latex backend: although the example, including
most of the latex section, is wrapped inside a verbatim environment,
the #+end_latex line has been eaten up - I haven't checked by whom.

GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-04-13
Org-mode version 7.5 (baseline.265.gcfb05)

Nick

                 reply	other threads:[~2011-06-05  6:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=15047.1307253629@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --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).