emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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

#+TITLE: foo
* One


* Two

Euler says:

\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}} \over {2}}
--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 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-04-13
Org-mode version 7.5 (baseline.265.gcfb05)


^ 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


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).