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.
This commit is contained in:
parent
2e50c8d137
commit
ceb463e36e
3 changed files with 25 additions and 6 deletions
|
@ -2188,6 +2188,11 @@ Currently the following pipes are predefined:
|
||||||
: document summary, included in LaTeX, ConTeXt, AsciiDoc, and docx
|
: document summary, included in LaTeX, ConTeXt, AsciiDoc, and docx
|
||||||
documents
|
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`
|
`keywords`
|
||||||
: list of keywords to be included in HTML, PDF, ODT, pptx, docx
|
: list of keywords to be included in HTML, PDF, ODT, pptx, docx
|
||||||
and AsciiDoc metadata; repeat as for `author`, above
|
and AsciiDoc metadata; repeat as for `author`, above
|
||||||
|
|
|
@ -6,11 +6,12 @@
|
||||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||||
<meta name="generator" content="pandoc" />
|
<meta name="generator" content="pandoc" />
|
||||||
<title>$pagetitle$</title>
|
<title>$pagetitle$</title>
|
||||||
$if(highlighting-css)$
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
$highlighting-css$
|
$styles.html()$
|
||||||
</style>
|
$if(highlighting-css)$
|
||||||
|
$highlighting-css$
|
||||||
$endif$
|
$endif$
|
||||||
|
</style>
|
||||||
$for(css)$
|
$for(css)$
|
||||||
<link rel="stylesheet" type="text/css" href="$css$" />
|
<link rel="stylesheet" type="text/css" href="$css$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
|
@ -45,6 +46,12 @@ $endif$
|
||||||
$if(rights)$
|
$if(rights)$
|
||||||
<div class="rights">$rights$</div>
|
<div class="rights">$rights$</div>
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(abstract)$
|
||||||
|
<div class="abstract">
|
||||||
|
<div class="abstract-title">$abstract-title$</div>
|
||||||
|
$abstract$
|
||||||
|
</div>
|
||||||
|
$endif$
|
||||||
$else$
|
$else$
|
||||||
$if(coverpage)$
|
$if(coverpage)$
|
||||||
<div id="cover-image">
|
<div id="cover-image">
|
||||||
|
|
|
@ -5,11 +5,12 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="generator" content="pandoc" />
|
<meta name="generator" content="pandoc" />
|
||||||
<title>$pagetitle$</title>
|
<title>$pagetitle$</title>
|
||||||
$if(highlighting-css)$
|
|
||||||
<style>
|
<style>
|
||||||
$highlighting-css$
|
$styles.html()$
|
||||||
</style>
|
$if(highlighting-css)$
|
||||||
|
$highlighting-css$
|
||||||
$endif$
|
$endif$
|
||||||
|
</style>
|
||||||
$for(css)$
|
$for(css)$
|
||||||
<link rel="stylesheet" type="text/css" href="$css$" />
|
<link rel="stylesheet" type="text/css" href="$css$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
|
@ -45,6 +46,12 @@ $endif$
|
||||||
$if(rights)$
|
$if(rights)$
|
||||||
<div class="rights">$rights$</div>
|
<div class="rights">$rights$</div>
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(abstract)$
|
||||||
|
<div class="abstract">
|
||||||
|
<div class="abstract-title">$abstract-title$</div>
|
||||||
|
$abstract$
|
||||||
|
</div>
|
||||||
|
$endif$
|
||||||
</section>
|
</section>
|
||||||
$else$
|
$else$
|
||||||
$if(coverpage)$
|
$if(coverpage)$
|
||||||
|
|
Loading…
Add table
Reference in a new issue