Epub HTML

Post tags: | epub | epub_authoring | pandoc |

pandoc.org/epub Creating an ebook with pandoc

google group pandoc-discuss

pandoc.org/MANUAL Creating EPUBs with pandoc

pandoc.org/MANUAL Metadata blocks Extension: pandoc_title_block

        % title
        % author(s) (separated by semicolons)
        % date
        

pandoc.org/MANUAL Metadata blocks Extension: yaml_metadata_block

A YAML metadata block is a valid YAML object, delimited by a line of three hyphens (—) at the top and a line of three hyphens (—) or three dots (…) at the bottom. A YAML metadata block may occur anywhere in the document, but if it is not at the beginning, it must be preceded by a blank line. (Note that, because of the way pandoc concatenates input files when several are provided, you may also keep the metadata in a separate YAML file and pass it to pandoc as an argument, along with your Markdown files

pandoc.org/MANUAL Using variables in templates

Variable names are sequences of alphanumerics, -, and _, starting with a letter. A variable name surrounded by $ signs will be replaced by its value. For example, the string $title$ in

<title>$title$</title>

will be replaced by the document title.

Default template for epub

pandoc -D epub

pandoc epub default template in AbiWord

pandoc.org/MANUAL Epub Metadata

pandoc.org/MANUAL YAML metadata

A YAML metadata block is a valid YAML object, delimited by a line of three hyphens (—) at the top and a line of three hyphens (—) or three dots (…) at the bottom. A YAML metadata block may occur anywhere in the document, but if it is not at the beginning, it must be preceded by a blank line. (Note that, because of the way pandoc concatenates input files when several are provided, you may also keep the metadata in a separate YAML file and pass it to pandoc as an argument, along with your Markdown files:

        pandoc chap1.md chap2.md chap3.md metadata.yaml -s -o book.html
        

GNU make manual

A real book

To see what this would look like for a real book, let’s convert Scott Chacon’s book Pro Git, which he wrote using pandoc’s markdown variant and released under a Creative Commons license. (If you use the book, please consider buying a copy to help support his excellent work.)

pandoc.org/MANUAL Creating EPUBs with pandoc

rachelandrew.co.uk/archives HTML, EPUB, MOBI, PDF, WTF - creating an ebook

Nanoc to epub

rubyredbricks.com/blog Quick and dirty epub with nanoc

rubyredbricks.com/blog More epub with Nanoc

pandoc markdown to epub

github.com/johnpaulada/pandoc-markdown-book-template

github.com/evangoer Pandoc Markdown ebook template

This project defines a skeleton repo for creating ebooks out of Pandoc Markdown. Pandoc is a great tool for writing ebooks with simple to moderately complex formatting, but I’ve found that in practice, creating an EPUB isn’t quite as simple as just running pandoc -o book.epub book.md.

The author of Pandoc has written a short tutorial for creating EPUB files with Pandoc. This repo just expands on MacFarlane’s tutorial a bit and wraps things up in a Makefile.

pandoc.org/MANUAL pandoc extension yaml metadata block

storyhack.com/2012/07/10 Using Pandoc to Build Your ePub eBook by Bryce Beattie

gabrielgambetta.com/tgl How I wrote and published my novel using only open source tools

dublincore.org/documents Dublin Core Metadata Element Set, Version 1.1

chronicle.com/blogs Make Your Own E-Books with Pandoc by Lincoln Mullen

TeX LaTeX

Peter Krautzberger on the web What's the best TeX-to-HTML or TeX-to-ePUB converter?

larjona.wordpress.com/2013/05/10 LaTeX to ePub, experiments with multiformat publishing

In this article I publish the recipes and results obtained in my 5 experiments, so anybody can get an idea of how powerful are the free software tools for this kind of tasks, and which ones to try (or not to try) for her particular case. If you want to know the method that worked best for me, go to the 5th attempt.

  1. LaTeX memoir class.
  2. LaTeX geometry class.
  3. Pandoc (old version)
  4. Pandoc (new version)
  5. ¡Good!: text4ht + Calibre

mcneill.io/pandoc Pandoc, Markdown, XeLaTeX, EPUB By jeffmcneill on 17-Aug-17

CSS for epub

$5.99 Amazon Kindle Zen of eBook Formatting: A Step-by-step Guide To Format eBooks for Kindle and EPUB Kindle Edition by Guido Henkel

$6.99 Amazon Kindle The eBook Design and Development Guide Kindle Edition by Paul Salvette

bbebooksthailand.com/bb-CSS CSS Boilerplate for eBooks by Paul Salvette - epub and kindle

$5.97 amazon kindle Ebook Formatting: KF8, Mobi & EPUB Kindle Edition by Matt Harrison

github.com/mattharrison A css file that should work for most epub readers

github FriendsOfEpub/Blitz An eBook Framework (CSS + template)

mobileread.com/wiki Standard CSS for Epub Files

wiki.mobileread.com CSS HowTo

mobileread.com/forums epub code snippets (html / css)

Misc. Research

pandoc-scholar.github Formatting Open Science: agilely creating multiple document formats for academic manuscripts with Pandoc Scholar Albert Krewinkel, Robert Winkler

bbebooksthailand.com Book samples from Paul Salvette

  • Crime and Punishment – Fyodor Dostoevsky
  • A Princess of Mars – Edgar Rice Burroughs
  • The Wonderful Wizard of Oz – L. Frank Baum
  • Pride and Prejudice – Jane Austen
  • Paradise Lost – John Milton
  • The Federalist Papers
  • The Real Mother Goose [Fixed Layout]
  • Manual for Noncommissioned Officers and Privates

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Epub Metadata

idpf.org/epub EPUB Publications 3.0 - Recommended Specification 11 October 2011

idpf.org/epub 3.4.2 The metadata Element

The metadata element encapsulates Publication meta information.

The following example represents the minimal set of metadata that all Publications must contain.

        <package … unique-identifier="pub-id">
            …
            
                urn:uuid:A1B0D67E-2E81-4DF5-9E67-A64CBE366809
                Norwegian Wood
                en
                2011-01-01T12:00:00Z