From 9ff8ab21d79e4d1d59de8cf76b6f77373499c35b Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Tue, 24 Mar 2015 19:17:25 +0100
Subject: Support optional cover page, and add it to A4 flavor.

---
 template.tex | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'template.tex')

diff --git a/template.tex b/template.tex
index 1e27603..72f1ab8 100644
--- a/template.tex
+++ b/template.tex
@@ -164,6 +164,10 @@ $else$
   \newcommand{\EANisbn}
 $endif$
 
+$if(coverpage)$
+\usepackage{pdfpages}
+$endif$
+
 $for(header-includes)$
 $header-includes$
 $endfor$
@@ -178,6 +182,9 @@ $endif$
 $if(chapterstyle)$ % for documentclass memoir chapter headline styling
 \chapterstyle{$chapterstyle$}
 $endif$
+$if(coverpage)$
+\includepdf[pages={1}]{$coverpage$}
+$endif$
 $if(frontmatter)$
 \frontmatter
 $endif$
-- 
cgit v1.2.3

