From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Unable to nest headings within export blocks [9.0 (9.0-elpa @ c:/Data/Documents/emacs.d/elpa/org-20161102/)] Date: Sat, 05 Nov 2016 08:41:44 +0100 Message-ID: <878tsybcg7.fsf@nicolasgoaziou.fr> References: <338ea338-093e-6323-083e-ac8732c44778@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2vbo-0002cE-IY for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 03:41:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2vbj-0000Wf-Jp for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 03:41:48 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47230) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2vbj-0000VK-De for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 03:41:43 -0400 In-Reply-To: <338ea338-093e-6323-083e-ac8732c44778@gmail.com> (Lixin Chin's message of "Thu, 3 Nov 2016 11:47:57 +0800") 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" To: Lixin Chin Cc: emacs-orgmode@gnu.org Hello, Lixin Chin writes: > As per the subject, when a heading line is included within a > `#+BEGIN_EXPORT backend ... #+END_EXPORT' block, it breaks the parsing > of the block, which is instead split into multiple `paragraph' elements. > > See the attached example (test.org), and associate exports (test.tex) > and (test.html). > > Tested with `emacs -Q -l minimal-org.el', with the org package installed > from http://orgmode.org/elpa/, org-20161102. > > * Test heading > > #+BEGIN_EXPORT latex > Text which should appear in \LaTeX{} exports, but not HTML. > #+END_EXPORT > > #+BEGIN_EXPORT html > * HTML only heading > Text which should appear in HTML exports, but not \LaTeX{}. > #+END_EXPORT You need to escape the pseudo-headline with a comma. #+BEGIN_EXPORT html ,* HTML only heading Text which should appear in HTML exports, but not \LaTeX{}. #+END_EXPORT Regards, -- Nicolas Goaziou