From 1f15262de861a7f3d1d308442e38c38bffd31f20 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Fri, 14 Aug 2015 16:00:02 +0100 Subject: [PATCH] Added an epub stylesheet. Make the font arial. --- Makefile | 2 +- epub.css | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 epub.css diff --git a/Makefile b/Makefile index 56d60db..66ed07a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/epub.css b/epub.css new file mode 100644 index 0000000..5c96a84 --- /dev/null +++ b/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; }