summaryrefslogtreecommitdiff
path: root/templates/ebook
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-03-10 11:35:38 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-03-10 11:35:38 +0100
commitee634eae16f472c3ab1a69da0b8804d48dd9a793 (patch)
treefe8ca3528d7db62cc2bd54d874120638bb1ecc8a /templates/ebook
parentbdfd9da091438dec0a7765571aa981d5997b75d9 (diff)
Template basics
Diffstat (limited to 'templates/ebook')
-rw-r--r--templates/ebook/book.epub66
-rw-r--r--templates/ebook/epub.css26
2 files changed, 92 insertions, 0 deletions
diff --git a/templates/ebook/book.epub b/templates/ebook/book.epub
new file mode 100644
index 0000000..336b608
--- /dev/null
+++ b/templates/ebook/book.epub
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"$if(lang)$ xml:lang="$lang$"$endif$>
+<head>
+ <meta charset="utf-8" />
+ <meta name="generator" content="pandoc" />
+ <title>$pagetitle$</title>
+$if(highlighting-css)$
+ <style>
+$highlighting-css$
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" type="text/css" href="$css$" />
+$endfor$
+$for(header-includes)$
+ $header-includes$
+$endfor$
+</head>
+<body$if(coverpage)$ id="cover"$endif$$if(body-type)$ epub:type="$body-type$"$endif$>
+$if(titlepage)$
+<section epub:type="titlepage" class="titlepage">
+$for(title)$
+$if(title.type)$
+ <h1 class="$title.type$">$title.text$</h1>
+$else$
+ <h1 class="title">$title$</h1>
+$endif$
+$endfor$
+$if(subtitle)$
+ <p class="subtitle">$subtitle$</p>
+$endif$
+$for(author)$
+ <p class="author">$author$</p>
+$endfor$
+$for(creator)$
+ <p class="$creator.role$">$creator.text$</p>
+$endfor$
+$if(publisher)$
+ <p class="publisher">$publisher$</p>
+$endif$
+$if(date)$
+ <p class="date">$date$</p>
+$endif$
+$if(rights)$
+ <div class="rights">$rights$</div>
+$endif$
+
+</section>
+$if(acknowledgement)$
+<section ebook:type="acknowledgements" class="acknowledgements">
+$acknowledgement$
+</section>
+$endif$
+$else$
+$for(include-before)$
+$include-before$
+$endfor$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$
+$endif$
+</body>
+</html>
+
diff --git a/templates/ebook/epub.css b/templates/ebook/epub.css
new file mode 100644
index 0000000..dc1dc7d
--- /dev/null
+++ b/templates/ebook/epub.css
@@ -0,0 +1,26 @@
+/* This defines styles and classes used in the book */
+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 { }
+nav#toc ol,
+nav#landmarks ol { padding: 0; margin-left: 1em; }
+nav#toc ol li,
+nav#landmarks ol li { list-style-type: none; margin: 0; padding: 0; }
+a.footnote-ref { vertical-align: super; }
+em, em em em, em em em em em { font-style: italic;}
+em em, em em em em { font-style: normal; }
+code{ white-space: pre-wrap; }
+span.smallcaps{ font-variant: small-caps; }
+span.underline{ text-decoration: underline; }
+q { quotes: "“" "”" "‘" "’"; }
+div.column{ display: inline-block; vertical-align: top; width: 50%; }
+div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
+.acknowledgements{page-break-before: always; margin-top: 2em; font-size: small}