diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-11-04 18:57:40 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-11-04 18:57:40 -0800 |
commit | 9fae8b31dd1fc3667993a35b7db6b252b85c840d (patch) | |
tree | 699cab7f8038699640f846a2bdb619d2321d2554 | |
parent | 0b394e7ccd80dbe37a18a88f383ac5a0740d5d26 (diff) | |
download | pandoc-9fae8b31dd1fc3667993a35b7db6b252b85c840d.tar.gz |
EPUB templates: Added css, highlighting-css, quotes variables.
Removed hardcoded link to stylesheet.css. Instead, the EPUB writer
now sets the css variable to stylesheet.css.
-rw-r--r-- | epub-coverimage.html | 13 | ||||
-rw-r--r-- | epub-page.html | 14 | ||||
-rw-r--r-- | epub-titlepage.html | 14 |
3 files changed, 39 insertions, 2 deletions
diff --git a/epub-coverimage.html b/epub-coverimage.html index e73978bd0..b28d19eba 100644 --- a/epub-coverimage.html +++ b/epub-coverimage.html @@ -5,6 +5,19 @@ <title>$pagetitle$</title> <style type="text/css">img{ max-width: 100%; }</style> <link href="stylesheet.css" type="text/css" rel="stylesheet" /> +$if(quotes)$ + <style type="text/css"> + q { quotes: "“" "”" "‘" "’"; } + </style> +$endif$ +$if(highlighting-css)$ + <style type="text/css"> +$highlighting-css$ + </style> +$endif$ +$for(css)$ + <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" /> +$endfor$ </head> <body> <div id="cover-image"> diff --git a/epub-page.html b/epub-page.html index eb47fd4ab..69beb7d04 100644 --- a/epub-page.html +++ b/epub-page.html @@ -3,7 +3,19 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <title>$pagetitle$</title> -<link href="stylesheet.css" type="text/css" rel="stylesheet" /> +$if(quotes)$ + <style type="text/css"> + q { quotes: "“" "”" "‘" "’"; } + </style> +$endif$ +$if(highlighting-css)$ + <style type="text/css"> +$highlighting-css$ + </style> +$endif$ +$for(css)$ + <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" /> +$endfor$ </head> <body> $body$ diff --git a/epub-titlepage.html b/epub-titlepage.html index fa7c7d614..8e1aca3dc 100644 --- a/epub-titlepage.html +++ b/epub-titlepage.html @@ -3,7 +3,19 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>$pagetitle$</title> -<link href="stylesheet.css" type="text/css" rel="stylesheet" /> +$if(quotes)$ + <style type="text/css"> + q { quotes: "“" "”" "‘" "’"; } + </style> +$endif$ +$if(highlighting-css)$ + <style type="text/css"> +$highlighting-css$ + </style> +$endif$ +$for(css)$ + <link rel="stylesheet" $if(epub3)$$else$type="text/css"$endif$ href="$css$" /> +$endfor$ </head> <body> <h1 class="title">$title$</h1> |