diff options
| -rw-r--r-- | MANUAL.txt | 5 | ||||
| -rw-r--r-- | data/templates/default.epub2 | 13 | ||||
| -rw-r--r-- | data/templates/default.epub3 | 13 |
3 files changed, 25 insertions, 6 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 0954286b3..495ca04b5 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -2188,6 +2188,11 @@ Currently the following pipes are predefined: : document summary, included in LaTeX, ConTeXt, AsciiDoc, and docx documents +`abstract-title` +: title of abstract, currently used only in HTML and EPUB. + This will be set automatically to a localized value, + depending on `lang`, but can be manually overridden. + `keywords` : list of keywords to be included in HTML, PDF, ODT, pptx, docx and AsciiDoc metadata; repeat as for `author`, above 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 @@ <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="generator" content="pandoc" /> <title>$pagetitle$</title> -$if(highlighting-css)$ <style type="text/css"> -$highlighting-css$ - </style> + $styles.html()$ +$if(highlighting-css)$ + $highlighting-css$ $endif$ + </style> $for(css)$ <link rel="stylesheet" type="text/css" href="$css$" /> $endfor$ @@ -45,6 +46,12 @@ $endif$ $if(rights)$ <div class="rights">$rights$</div> $endif$ +$if(abstract)$ +<div class="abstract"> +<div class="abstract-title">$abstract-title$</div> +$abstract$ +</div> +$endif$ $else$ $if(coverpage)$ <div id="cover-image"> 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 @@ <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <title>$pagetitle$</title> -$if(highlighting-css)$ <style> -$highlighting-css$ - </style> + $styles.html()$ +$if(highlighting-css)$ + $highlighting-css$ $endif$ + </style> $for(css)$ <link rel="stylesheet" type="text/css" href="$css$" /> $endfor$ @@ -45,6 +46,12 @@ $endif$ $if(rights)$ <div class="rights">$rights$</div> $endif$ +$if(abstract)$ +<div class="abstract"> +<div class="abstract-title">$abstract-title$</div> +$abstract$ +</div> +$endif$ </section> $else$ $if(coverpage)$ |
