public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* No automatic title page in epub?
@ 2019-10-26  8:08 Patrick Kenny
  0 siblings, 0 replies; only message in thread
From: Patrick Kenny @ 2019-10-26  8:08 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1853 bytes --]

I want to eliminate the title page when converting from markdown to epub.

Terms are confusing so I will define them here. (If I'm mistaken in my 
definitions, please let me know.)

Cover page: The page that follows the cover that lists the book title, 
author, and copyright info.  I want this.

Title page: The page that follows the table of contents and has just the 
title of the book. I don't want this.

The title page is inserted into the table of contents so the structure of 
the TOC is an OL with a single list item that contains another OL with the 
actual TOC of the book (the OL that contains all the chapters).

<nav epub:type="toc" id="toc"><h1 id="toc-title">BOOK TITLE</h1>
    <ol class="toc">
        <li id="toc-li-1"><a href="text/ch001.xhtml#BOOK TITLE">BOOK TITLE
</a>
            <ol class="toc">
                <li id="toc-li-2"><a href="text/ch002.xhtml#CHAPTER1">
CHAPTER1</a>

About my file: My markdown file only has h2 for chapter titles. There is no 
h1. Pandoc appears to be automatically adding the title of the book as h1 
and then generating a title page.

What I tried: I copied the epub3 template from pandoc-templates.  The part 
that generates the title page looks like this:

$for(include-before)$
$include-before$
$endfor$
$body$
$for(include-after)$
$include-after$
$endfor$
$endif$

I don't know what to change here to remove the title page.

Many thanks in advance for any insight you can provide.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ed2045df-4981-455a-b7d1-ced8c91b0f21%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 7737 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-26  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-26  8:08 No automatic title page in epub? Patrick Kenny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).