* [BUG] problem exporting example block to html
@ 2011-06-05 6:00 Nick Dokos
0 siblings, 0 replies; only message in thread
From: Nick Dokos @ 2011-06-05 6:00 UTC (permalink / raw)
To: emacs-orgmode; +Cc: nicholas.dokos
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-05 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 6:00 [BUG] problem exporting example block to html Nick Dokos
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).