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

Reply via email to