wikiti / pandoc-book-template

A simple Pandoc template to build documents and ebooks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page break after table of contents?

alexispurslane opened this issue · comments

I would like to start a new page after the table of contents, in order to format this more like a real book. I tried to edit the template to add a \newpage or \pagebreak but that didn't work. Is there a way to do this?

Hi @ChristopherDumas,

I'm assuming you're exporting to PDF (latex). You may want to modify the template file, located at templates/pdf.latex. I've make a simple change, and it seems page breaks are working properly:

diff --git a/templates/pdf.latex b/templates/pdf.latex
index 4ceca43..442192f 100644
--- a/templates/pdf.latex
+++ b/templates/pdf.latex
@@ -409,6 +409,7 @@ $if(beamer)$
 \frame{\titlepage}
 $else$
 \maketitle
+\newpage
 $endif$
 $if(abstract)$
 \begin{abstract}

Hello @ChristopherDumas,

Without your response, I assume that the issue is solved. Please feel free to comment on this same issue, or create a new one.