Skip to content

A sample script for joint print/HTML/EPUB production.

License

Notifications You must be signed in to change notification settings

htlin222/pandoc-ebook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A sample script for joint print/HTML/EPUB production.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 50.9%
  • CSS 49.1%