From ee634eae16f472c3ab1a69da0b8804d48dd9a793 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 10 Mar 2020 11:35:38 +0100 Subject: Template basics --- templates/ebook/book.epub | 66 +++++++++++++++++++++++++++++++++++++++++++++++ templates/ebook/epub.css | 26 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 templates/ebook/book.epub create mode 100644 templates/ebook/epub.css (limited to 'templates/ebook') 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 @@ + + + + + + + $pagetitle$ +$if(highlighting-css)$ + +$endif$ +$for(css)$ + +$endfor$ +$for(header-includes)$ + $header-includes$ +$endfor$ + + +$if(titlepage)$ +
+$for(title)$ +$if(title.type)$ +

$title.text$

+$else$ +

$title$

+$endif$ +$endfor$ +$if(subtitle)$ +

$subtitle$

+$endif$ +$for(author)$ +

$author$

+$endfor$ +$for(creator)$ +

$creator.text$

+$endfor$ +$if(publisher)$ +

$publisher$

+$endif$ +$if(date)$ +

$date$

+$endif$ +$if(rights)$ +
$rights$
+$endif$ + +
+$if(acknowledgement)$ +
+$acknowledgement$ +
+$endif$ +$else$ +$for(include-before)$ +$include-before$ +$endfor$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ +$endif$ + + + 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} -- cgit v1.2.3