From ceb463e36ee5886befa12b7d2f026cbd2b6a7668 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 9 Jan 2022 11:33:47 -0800 Subject: EPUB template improvements. Include abstract in default template. Also ensure that the essential styles needed by pandoc (`styles.html` partial) are included in the templates. This is important for correct formatting of CSL bibliographies. Note that much of the styling in `styles.html` will be ignored for EPUB, because of the conditional on `document-css`, but if it is desired, you can set the `document-css` variable. --- data/templates/default.epub2 | 13 ++++++++++--- data/templates/default.epub3 | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'data') diff --git a/data/templates/default.epub2 b/data/templates/default.epub2 index 685d10208..28de9c11b 100644 --- a/data/templates/default.epub2 +++ b/data/templates/default.epub2 @@ -6,11 +6,12 @@ $pagetitle$ -$if(highlighting-css)$ + $styles.html()$ +$if(highlighting-css)$ + $highlighting-css$ $endif$ + $for(css)$ $endfor$ @@ -45,6 +46,12 @@ $endif$ $if(rights)$
$rights$
$endif$ +$if(abstract)$ +
+
$abstract-title$
+$abstract$ +
+$endif$ $else$ $if(coverpage)$
diff --git a/data/templates/default.epub3 b/data/templates/default.epub3 index fc4fa7620..19961ab13 100644 --- a/data/templates/default.epub3 +++ b/data/templates/default.epub3 @@ -5,11 +5,12 @@ $pagetitle$ -$if(highlighting-css)$ + $styles.html()$ +$if(highlighting-css)$ + $highlighting-css$ $endif$ + $for(css)$ $endfor$ @@ -45,6 +46,12 @@ $endif$ $if(rights)$
$rights$
$endif$ +$if(abstract)$ +
+
$abstract-title$
+$abstract$ +
+$endif$ $else$ $if(coverpage)$ -- cgit v1.2.3