summaryrefslogtreecommitdiff
path: root/tech/lhp book publishing tools.txt
blob: c138f2c0f6b2887a6f4e7aa741b1ad15f2e1cc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
lhp-book-publishing-tools

* Cover mocks: http://mockuphone.com/
* payment processor: <https://gumroad.com/>
* fonts used: 
    * Chapter headings: Bodoni
    * Body: TisaPro, Bold, Italic
    * Headings (h2 $h3) Tradegothic LT CondEighteen
    * Code: Inconsolata

---------------------------

* Pandoc settings for html: 

    pandoc --toc --toc-depth=2 --smart --template=lib/template.html5 --include-before-body=lib/header.html -t html5 -o rwd.html Draft.txt
    
* Prince settings for HTML -> PDF:

    prince rwd.html -o rwd.pdf --javascript
    
* Pandoc settings for epub:

    pandoc -S -s --smart -t epub3 --include-before-body=lib/header.html --template=lib/template_epub.html --epub-metadata=lib/epub-metadata.xml --epub-stylesheet=lib/print-epub.css --epub-cover-image=lib/covers/cover-portrait.png --epub-embed-font=lib/TisaPro-Regular.otf --epub-embed-font=lib/TisaPro-Bold.otf --epub-embed-font=lib/TisaPro-Ita.otf --epub-embed-font=lib/TisaPro-BoldIta.otf --epub-embed-font=lib/bodoni-mt-condensed.otf --epub-embed-font=lib/InconsolataforPowerline.otf --epub-embed-font=lib/TradeGothicLTCondensed.otf --toc --toc-depth=2 -o rwd.epub Draft.txt

* Pandoc settings for Kindle epub:

    pandoc -S -s --smart -t epub3 --include-before-body=lib/header.html --template=lib/template_epub.html --epub-metadata=lib/epub-metadata.xml --epub-stylesheet=lib/print-kindle.css --epub-cover-image=lib/covers/cover-portrait.png --toc --toc-depth=2 -o kindle.epub Draft.txt
    
    Then that gets run through the Kindlegen tool
    
* Pandoc settings for Sample Chapter:

pandoc --smart --template=lib/template.html5 --include-before-body=lib/header_simple.html -t html5 --email-obfuscation=none -o samplechapter.html SampleChapter.txt && prince samplechapter.html -o RWDSampleChapter.pdf --javascript

-----------

helpful links:

http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf
http://puppetlabs.com/blog/automated-ebook-generation-convert-markdown-epub-mobi-pandoc-kindlegen