From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lixin Chin Subject: Re: Bug: Unable to nest headings within export blocks [9.0 (9.0-elpa @ c:/Data/Documents/emacs.d/elpa/org-20161102/)] Date: Thu, 3 Nov 2016 13:20:19 +0800 Message-ID: <4cc292f0-13c8-3643-793d-6d7f050dedbe@gmail.com> References: <338ea338-093e-6323-083e-ac8732c44778@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2ARw-0002hf-1m for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 01:20:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2ARs-0007DK-Uy for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 01:20:28 -0400 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]:36378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2ARs-0007DE-No for emacs-orgmode@gnu.org; Thu, 03 Nov 2016 01:20:24 -0400 Received: by mail-pf0-x22f.google.com with SMTP id 189so24946924pfz.3 for ; Wed, 02 Nov 2016 22:20:24 -0700 (PDT) Received: from [130.95.197.213] ([130.95.197.213]) by smtp.gmail.com with ESMTPSA id f23sm8696993pff.59.2016.11.02.22.20.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2016 22:20:22 -0700 (PDT) In-Reply-To: <338ea338-093e-6323-083e-ac8732c44778@gmail.com> 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: emacs-orgmode@gnu.org This seems to be a symptom of the same issue as http://lists.gnu.org/archive/html/emacs-orgmode/2016-10/msg00175.html A workaround is to put the contents of the #+BEGIN_EXPORT ... block into a separate .org file (include.org), and #+INCLUDE it in the main document #+INCLUDE: "include.org" export where "include.org": * Heading other text On 03/11/2016 11:47 AM, Lixin Chin wrote: > 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.