From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: [BUG] problem exporting example block to html Date: Sun, 05 Jun 2011 02:00:29 -0400 Message-ID: <15047.1307253629@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT6O2-00082r-2N for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 02:00:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QT6O1-0005yY-2H for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 02:00:34 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:64783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT6O0-0005yR-NU for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 02:00:33 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMA00H44ZCTFRB1@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 05 Jun 2011 01:00:30 -0500 (CDT) 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 Cc: nicholas.dokos@hp.com 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
/
. 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