diff --git a/_extensions/titlepage/_extension.yml b/_extensions/titlepage/_extension.yml index 38b8deb..6f4a715 100644 --- a/_extensions/titlepage/_extension.yml +++ b/_extensions/titlepage/_extension.yml @@ -1,6 +1,6 @@ title: titlepage author: Eli Holmes -version: 3.2.2 +version: 3.3.0 contributes: format: pdf: diff --git a/_extensions/titlepage/before-body.tex b/_extensions/titlepage/before-body.tex index c2d03e9..c141c5e 100644 --- a/_extensions/titlepage/before-body.tex +++ b/_extensions/titlepage/before-body.tex @@ -19,6 +19,11 @@ $_titlepage.tex()$ $endif$ $endif$ + +$if(titlepage-include-file)$ +$for(titlepage-include-file)$\input{$titlepage-include-file$} +\clearpage +$endfor$$endif$ \end{titlepage} \setcounter{page}{1} $if(has-frontmatter)$ diff --git a/example.pdf b/example.pdf index 47ea461..1a756f9 100644 Binary files a/example.pdf and b/example.pdf differ diff --git a/example.qmd b/example.qmd index 54f756e..16c90b6 100644 --- a/example.qmd +++ b/example.qmd @@ -41,6 +41,9 @@ format: NOAA Fisheries OpenSci\ Tools for Open Science\ [https://github.com/nmfs-opensci](https://github.com/nmfs-opensci)\ + titlepage-include-file: + - tex/copyright.tex + - tex/dedication.tex coverpage: "great-wave" keep-tex: true include-in-header: | diff --git a/example.tex b/example.tex index f776c6f..b72728b 100644 --- a/example.tex +++ b/example.tex @@ -444,11 +444,15 @@ \restoregeometry %%% TITLE PAGE END +\input{tex/copyright.tex} +\clearpage +\input{tex/dedication.tex} +\clearpage \end{titlepage} \setcounter{page}{1} \end{frontmatter} -%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[boxrule=0pt, interior hidden, frame hidden, breakable, borderline west={3pt}{0pt}{shadecolor}, enhanced, sharp corners]}{\end{tcolorbox}}\fi +%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[boxrule=0pt, interior hidden, enhanced, borderline west={3pt}{0pt}{shadecolor}, breakable, frame hidden, sharp corners]}{\end{tcolorbox}}\fi \renewcommand*\contentsname{Table of contents} { diff --git a/tex/copyright.tex b/tex/copyright.tex new file mode 100644 index 0000000..4845cb6 --- /dev/null +++ b/tex/copyright.tex @@ -0,0 +1,11 @@ +\null\vfill +\begin{flushleft} +\thispagestyle{empty} +\textit{Here's the name of the book for the copyright page} + +© Anyname, Inc. + +ISBN-1234567891234 + +\noindent All rights reserved. No part of this publication may be produced or transmitted in any form or by any means, electronic or mechanical, including photocopying recording or any information storage and retrieval system, without the prior written permission of the publisher. For permissions contact +\end{flushleft} diff --git a/tex/dedication.tex b/tex/dedication.tex new file mode 100644 index 0000000..b5970ab --- /dev/null +++ b/tex/dedication.tex @@ -0,0 +1,6 @@ +\begin{center} + \thispagestyle{empty} + \vspace*{\fill} + \Huge{\textit{To those who came before}} + \vspace*{\fill} +\end{center} \ No newline at end of file