From 76c5ebf14118a70debdb083d26d158f37be1a831 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 3 Mar 2013 08:42:45 -0800 Subject: EPUB writer: Include html TOC even in epub2. * The TOC is included in ``, but `linear` is set to `no` unless the `--toc` option is specified. * Include `` element in OPF. * This should allow the TOC to be useable in Kindles when converted with kindlegen. * Results validate with epubcheck 3.0 for both epub and epub3 output. * Closes #773. --- data/epub.css | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data') diff --git a/data/epub.css b/data/epub.css index 3d9c59395..a87fff9bb 100644 --- a/data/epub.css +++ b/data/epub.css @@ -10,6 +10,8 @@ h6 { text-align: left; } h1.title { } h2.author { } h3.date { } +ol.toc { padding: 0; margin-left: 1em; } +ol.toc li { list-style-type: none; margin: 0; padding: 0; } /* For source-code highlighting */ table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre { margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; } -- cgit v1.2.3