Skip to content

Commit 6ee2376

Browse files
author
luifrancgom
committed
not hardcoding the cover-image
1 parent c93bd3d commit 6ee2376

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

partials/latex/before-body.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
% --- BEGIN CUSTOM COVER PAGE ---
2-
% Hard coding: not the optimal solution
2+
$if(book.cover-image)$
33
\begin{titlepage}
44
\newgeometry{margin=0pt}
55
\thispagestyle{empty}
66
\noindent
77
\begin{minipage}[c][\paperheight][c]{\paperwidth}
88
\centering
9-
\includegraphics[width=\paperwidth, height=\paperheight]{images/cover_halmos_naive_set_theory.png}
9+
\includegraphics[width=\paperwidth, height=\paperheight]{$book.cover-image$}
1010
\end{minipage}
1111
\end{titlepage}
1212
\restoregeometry
1313
\cleardoublepage
14+
$endif$
1415
% --- END CUSTOM COVER PAGE ---
1516
$if(has-frontmatter)$
1617
\frontmatter

0 commit comments

Comments
 (0)