Publishing a book using org-mode

But why org-mode?

How it works

#+STARTUP: indent showeverything
#+TAGS: noexport sample
#+OPTIONS: toc:nil
#+TODO: TODO(t) DRAFT(f@/!) IN-THE-BOOK(i!) | DONE(d!) CANCELED(c)
* DRAFT Routing and controllers :sample: 
- State "DRAFT" from "30%" [2016-05-30 Mon 21:08]
- State "30%" from "TODO" [2016-05-26 Thu 17:05]
Routing is responsible for matching a URL path with a custom content or functionality in your site.
#+STARTUP: indent showeverything logdrawer
* DRAFT Routing and controllers :sample:
:LOGBOOK:
- State "DRAFT" from "30%" [2016-05-30 Mon 21:08]
- State "30%" from "TODO" [2016-05-26 Thu 17:05]
:END:
Routing is responsible for matching a URL path with a custom content or functionality in your site.
* Drupal permissions and users
:PROPERTIES:
:EXPORT_FILE_NAME: permissions-and-users.txt
:END:
* Frontmatter
:PROPERTIES:
:EXPORT_FILE_NAME: frontmatter.md
:END:
{frontmatter}
* Mainmatter
:PROPERTIES:
:EXPORT_FILE_NAME: mainmatter.md
:END:
{mainmatter}
* Backmatter
:PROPERTIES:
:EXPORT_FILE_NAME: backmatter.md
:END:
{backmatter}

Bonus — generate your book’s preview from emacs

  • You need to generate an API key. The Leanpub site has instructions on how to do this.
  • Install the emacs request library to issue API requests.

--

--

--

Busy building ShapeBlock and maximizing developer happiness.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lakshmi Narasimhan

Lakshmi Narasimhan

Busy building ShapeBlock and maximizing developer happiness.

More from Medium

A First Look at My New Book’s Art

Kindle price promos & free coffee

ALL new scholarships for aspiring authors connected to Colorado

Are There Enough Readers out There for All of Us?