Skip to content

Commit

Permalink
add include files for copyright and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Oct 3, 2022
1 parent 59e90a3 commit 9be0cf5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _extensions/titlepage/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: titlepage
author: Eli Holmes
version: 3.2.2
version: 3.3.0
contributes:
format:
pdf:
Expand Down
5 changes: 5 additions & 0 deletions _extensions/titlepage/before-body.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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)$
Expand Down
Binary file modified example.pdf
Binary file not shown.
3 changes: 3 additions & 0 deletions example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 5 additions & 1 deletion example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
{
Expand Down
11 changes: 11 additions & 0 deletions tex/copyright.tex
Original file line number Diff line number Diff line change
@@ -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}
6 changes: 6 additions & 0 deletions tex/dedication.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\begin{center}
\thispagestyle{empty}
\vspace*{\fill}
\Huge{\textit{To those who came before}}
\vspace*{\fill}
\end{center}

0 comments on commit 9be0cf5

Please sign in to comment.