emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Exporting each subtree, including the headline?
Date: Mon, 15 Oct 2018 20:20:20 +0200	[thread overview]
Message-ID: <CAGY83Efacsz0A+9KdJj8rKUOaDtkabZDK+TYTKmFZb19rsoHWA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1558 bytes --]

             reply	other threads:[~2018-10-15 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15 18:20 Diego Zamboni [this message]
2018-10-17  6:58 ` Exporting each subtree, including the headline? Diego Zamboni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGY83Efacsz0A+9KdJj8rKUOaDtkabZDK+TYTKmFZb19rsoHWA@mail.gmail.com \
    --to=diego@zzamboni.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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