From 75e461f88ac651f8858841528c81d451a69f9835 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Mon, 31 Aug 2020 19:02:38 +0200
Subject: Credits page update

---
 templates/book.latex | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

(limited to 'templates/book.latex')

diff --git a/templates/book.latex b/templates/book.latex
index 8612aa4..855acd8 100644
--- a/templates/book.latex
+++ b/templates/book.latex
@@ -53,6 +53,12 @@ $for(polyglossia-otherlangs)$
 $endfor$
 $endif$
 
+% Clear-to-left command: Useful for credits and backcover
+\newcommand*\cleartoleftpage{
+  \clearpage
+  \ifodd\value{page}\hbox{}\newpage\fi
+}
+
 % No indent
 \usepackage{parskip}
 
@@ -371,7 +377,26 @@ $endif$
 
 % Credits page
 % TODO
-
+\cleartoleftpage
+\thispagestyle{empty}
+\null\vfill
+\begin{flushleft}
+\footnotesize{
+$if(isbn)$
+ISBN: $isbn$\newline
+$endif$
+$if(extracredits)$
+$for(extracredits)$$extracredits$$sep$\newline $endfor$\newline
+$endif$
+$if(author)$
+\copyright $for(author)$$author$$sep$, $endfor$ \newline
+$endif$
+$if(license-summary)$
+$license-summary$\newline
+$endif$
+}
+\end{flushleft}
+\vspace{0cm}
 
 $for(include-before)$
 $include-before$
@@ -406,11 +431,6 @@ $for(include-after)$
 $include-after$
 $endfor$
 
-% Define back cover
-\newcommand*\cleartoleftpage{
-  \clearpage
-  \ifodd\value{page}\hbox{}\newpage\fi
-}
 % Add backcover
 \cleartoleftpage
 \thispagestyle{empty}
-- 
cgit v1.2.3

