From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Exporting each subtree, including the headline? Date: Mon, 15 Oct 2018 20:20:20 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000d2b450578487e29" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC7To-0000s9-Do for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 14:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC7Tn-0002qr-EB for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 14:20:36 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:34401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC7Tl-0002ps-SD for emacs-orgmode@gnu.org; Mon, 15 Oct 2018 14:20:34 -0400 Received: by mail-ed1-x529.google.com with SMTP id w19-v6so18776318eds.1 for ; Mon, 15 Oct 2018 11:20:32 -0700 (PDT) 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: Org-mode --0000000000000d2b450578487e29 Content-Type: text/plain; charset="UTF-8" Hi, I am working on publishing a book using LeanPub ( https://leanpub.com/learning-hammerspoon/), produced from an Org source file. I am trying to use the code from https://medium.com/@lakshminp/publishing-a-book-using-org-mode-9e817a56d144, which you can see here: https://gist.githubusercontent.com/badri/4d1bf1f0a24e8db5065e31946355cfe3/raw/86889ba22e381252e11aa3a8678f31023aa10f7e/leanpub-export.el The code works, and each resulting file (one per top-level subtree) contains the corresponding section, but without the headline. I would like the headling to be exported as well. I have been looking around and found this: https://emacs.stackexchange.com/a/2260. This code exports each section including its headline, but each file contains the corresponding section PLUS everything after it. I've been poking around the org functions, but I haven't been able to figure this out. Any ideas? Thanks in advance, --Diego --0000000000000d2b450578487e29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,


The code works, and each resulting file= (one per top-level subtree) contains the corresponding section, but withou= t the headline. I would like the headling to be exported as well.

I have been looking around and found this:=C2=A0https://emacs.stackexchange.com/a/2= 260. This code exports each section including its headline, but each fi= le contains the corresponding section PLUS everything after it.
<= br>
I've been poking around the org functions, but I haven= 9;t been able to figure this out. Any ideas?

Thank= s in advance,
--Diego

--0000000000000d2b450578487e29--