Allow the official RU cover page to be included.

The communication department wants to have a unified look. They
provide a unified cover page in Indesign. Add a small package
that prepends a pdf to the document. This method should address the
requirements of our communication departments.

The current drawback of this method is that the cover page is in
A4 on A4 stock. We also need a B5 version if the thesis will be
trimmed to B5 stock.
This commit is contained in:
2024-10-25 09:36:10 +00:00
parent a3658eaeb6
commit 06f77bb1fa
2 changed files with 36 additions and 0 deletions

23
rucover.sty Normal file
View File

@@ -0,0 +1,23 @@
% Marcel Kyas <marcel at ru.is>
%
% Simple hack to place the cover page in front of the thesis
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rucover}[2024/10/24]
\providecommand\rucover{cover.pdf}
\RequirePackage{xkeyval}
\DeclareOptionX{filename}{\def\rucover{#1}}
\ProcessOptionsX
\IfFileExists{\rucover}{%
\RequirePackage{pdfpages}
\AtBeginDocument{%
\pagestyle{empty}%
\includepdf{cover.pdf}%
\pagestyle{empty}%
\clearforchapter%
}%
}{%
\typeout{Cover page file \rucover not found}
}