Skip to content

Commit

Permalink
Added an epub stylesheet. Make the font arial.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 14, 2015
1 parent 0d77978 commit 1f15262
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -11,7 +11,7 @@ perlwebbook.mobi: perlwebbook.epub
kindlegen -verbose perlwebbook.epub

perlwebbook.epub: $(chapters)
pandoc -o perlwebbook.epub title.txt $(chapters) --epub-metadata=metadata.xml --toc --toc-depth=2
pandoc -o perlwebbook.epub title.txt $(chapters) --epub-metadata=metadata.xml --toc --toc-depth=2 --epub-stylesheet=epub.css

perlwebbook.pdf: perlwebbook.epub
ebook-convert perlwebbook.epub perlwebbook.pdf
Expand Down
17 changes: 17 additions & 0 deletions epub.css
@@ -0,0 +1,17 @@
/* This defines styles and classes used in the book */
h1, h2, h3, h4, h5, h6, body {
font-family: arail, helvetica, sans-serif;
}
body { margin: 5%; text-align: justify; font-size: medium; }
code { font-family: monospace; }
h1 { text-align: left; }
h2 { text-align: left; }
h3 { text-align: left; }
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }
h1.title { }
h2.author { }
h3.date { }
ol.toc { padding: 0; margin-left: 1em; }
ol.toc li { list-style-type: none; margin: 0; padding: 0; }

0 comments on commit 1f15262

Please sign in to comment.