diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-18 12:26:21 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-18 12:26:21 -0800 |
commit | 15fb6a91bb91b10f4e50e50bb2e76b0adac554bb (patch) | |
tree | 9ab7218ef5babfd7423e211db6c2ab6d916f39c6 | |
parent | e2e8191e907d036b143478318e014bb8ab7318ef (diff) | |
download | pandoc-15fb6a91bb91b10f4e50e50bb2e76b0adac554bb.tar.gz |
Added templates for epub coverimage, titlepage, regular page.
This allows even more user customization.
-rw-r--r-- | epub-coverimage.html | 14 | ||||
-rw-r--r-- | epub-page.html | 18 | ||||
-rw-r--r-- | epub-titlepage.html | 22 |
3 files changed, 54 insertions, 0 deletions
diff --git a/epub-coverimage.html b/epub-coverimage.html new file mode 100644 index 000000000..cd778a145 --- /dev/null +++ b/epub-coverimage.html @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>$title$</title> +<style type="text/css">img{ max-width: 100%; }</style> +<link href="stylesheet.css" type="text/css" rel="stylesheet" /> +</head> +<body> +<div id="cover-image"> +<img src="$coverimage$" alt="$title$" /> +</div> +</body> +</html> diff --git a/epub-page.html b/epub-page.html new file mode 100644 index 000000000..aa56170a0 --- /dev/null +++ b/epub-page.html @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>$title$</title> +<link href="stylesheet.css" type="text/css" rel="stylesheet" /> +</head> +<body> +<h1>$title$</h1> +$if(toc)$ +<div id="$idprefix$TOC"> +$toc$ +</div> +$endif$ +$body$ +</body> +</html> + diff --git a/epub-titlepage.html b/epub-titlepage.html new file mode 100644 index 000000000..790431bb7 --- /dev/null +++ b/epub-titlepage.html @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>$title$</title> +<link href="stylesheet.css" type="text/css" rel="stylesheet" /> +</head> +<body> +<h1 class="title">$title$</h1> +$for(author)$ +<h2 class="author">$author$</h2> +$endfor$ +$if(date)$ +<h3 class="date">$date$</h3> +$endif$ +$if(toc)$ +<div id="$idprefix$TOC"> +$toc$ +</div> +$endif$ +</body> +</html> |