Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 2.37 KB

README.md

File metadata and controls

36 lines (22 loc) · 2.37 KB

pandoc-ebook

A sample script for joint HTML/EPUB/DOCX/PDF production from a single Markdown source file using Pandoc. Created for The Future of the Book course in the University of Toronto Faculty of Information.

Usage

Open a terminal in the directory and run the command make. For a list of available commands, run make help.

Sustainable Authorship in Plain Text using Pandoc and Markdown is a general introduction to Pandoc. Creating an e-book with Pandoc explains the basics of EPUB generation.

For an introduction to Make, see Software Carpentry: Automation and Make.

Requirements

  1. Make:

  2. Pandoc: see Installing Pandoc.

  3. If you need PDF production, install TeX Live or another LaTeX distribution (not enabled by default: to generate using Make, run make pdf). (Note that there are other methods of creating PDFs through Pandoc.)

You can most easily install Pandoc and LaTeX on the Mac by installing Homebrew, then pasting the following into the Terminal (be warned that MacTeX is a large installation):

brew install pandoc
brew tap caskroom/cask
brew cask install mactex

You can also generate e-books in Kindle format by combinining Pandoc with KindleGen. To install with Homebrew Cask, run brew cask install kindlegen.

Contributors