1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
|
% \iffalse meta-comment
%
% rutitlepage - A Radboud University titlepage
% Copyright 2017-2022 Mart Lubbers (mart@cs.ru.nl)
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
%<*driver>
% \fi
\ProvidesFile{rutitlepage.dtx}[2022/02/21 v3.0 Radboud University Titlepage]
% \iffalse
\documentclass{ltxdoc}
\usepackage{rutitlepage}
\usepackage{booktabs}
\usepackage{url}
\GetFileInfo{rutitlepage.dtx}
\urlstyle{tt}
\def\thetitle{A Radboud University titlepage}
\title{\thetitle}
\date{\filedate{}}
\author{Mart Lubbers}
\begin{document}
\DocInput{\filename}
\PrintChanges{}
\end{document}
%</driver>
% \fi
%
% \changes{v3}{2022/02/21}{Add twentytwo layout}
% \changes{v2.3}{2019/05/08}{Minor patches and typos}
% \changes{v2.2}{2019/05/08}{Fixed packaging, copyright year}
% \changes{v2.1}{2018/11/10}{Fix bug for default layout in manual, rename images}
% \changes{v2.0}{2018/10/16}{New layout following the guidelines}
% \changes{v1.0}{2017/05/30}{Initial package}
% \maketitle
%
% \section{Introduction}
% \texttt{rutitlepage} is an unofficial \LaTeX{} package to generate titlepages
% for Radboud University. It uses official vector logos by the university. The
% package depends on \texttt{geometry}, \texttt{graphicx}, \texttt{ifpdf},
% \texttt{keyval} and \texttt{iflang}. The logo changes when
% \texttt{babel-dutch} is loaded; this package does not depend on it.
%
% \subsection{Contributors}
% \texttt{rutitlepage} is currently maintained by Mart Lubbers but work has also been done by
% (in order of date of contribution): Camil Staps\footnote{\url{https://github.com/camilstaps}}, Daan Sprenkels\footnote{\url{https://github.com/dsprenkels}}, and Chris Kamphuis\footnote{\url{https://github.com/chriskamphuis}}.
%
% Previously, this titlepage flew around on the university for at least several
% years in many forms. I'm not sure who created it first but credits to them!
%
% \section{Usage}
% \DescribeMacro\maketitleru
% This macro creates the actual titlepage.
% It has several options that can be passed in a \texttt{keyval} manner (see the examples below).
% All options are optional. The available options are:
%
% \medskip
% \begin{tabular}{lp{.5\linewidth}lp{.15\linewidth}}
% \toprule
% Option & Description & Layouts\footnotemark & Default\\
% \midrule
% \texttt{authors}
% & The name(s) of the primary author(s).
% & \texttt{t}, \texttt{17}, \texttt{22} & \texttt{\textbackslash{}@author}\\
% \texttt{authorstext}
% & A text describing the author(s).
% & \texttt{t} & \texttt{Author:}\\
% \texttt{colour}
% & Gives the logo colours. No value needed.
% & \texttt{17}, \texttt{22}\\
% \texttt{course}
% & The name of the course.
% & \texttt{t}, \texttt{22}\\
% \texttt{date}
% & The date.
% & \texttt{t}, \texttt{17}, \texttt{22} & \texttt{\textbackslash{}@date}\\
% \texttt{institution}
% & The institution the document was written at.
% & \texttt{t} & Radboud University Nijmegen\footnotemark\\
% \texttt{layout}
% & The layout: \texttt{traditional} or \texttt{seventeen}.
% See the examples below.
% & \texttt{t}, \texttt{17}, \texttt{22} & \texttt{seventeen}\\
% \texttt{nextpagenr}
% & The page number of the next page.
% & \texttt{t}, \texttt{17}, \texttt{22} & \texttt{\textbackslash{}thepage+1}\\
% \texttt{others}
% & Groups of other important people, besides the author(s).
% The syntax is: \texttt{\{Header\}\{Names\}}.
% For more than one group, use: \texttt{\{\{\dots\}\{\dots\},\{\dots\}\{\dots\}\}}.
% & \texttt{t}, \texttt{17}, \texttt{22}\\
% \texttt{subtitle}
% & The italic text under the title.
% & \texttt{t}, \texttt{17}, \texttt{22}\\
% \texttt{title}
% & The main document title.
% & \texttt{t}, \texttt{17}, \texttt{22} & \texttt{\textbackslash{}@title}\\
% \bottomrule
% \end{tabular}
% \addtocounter{footnote}{-1}
% \footnotetext{Describes in which layouts the key is applicable.
% \texttt{t} stands for `traditional'; \texttt{17} for `seventeen'; \texttt{22} for `twentytwo`.
% See the \texttt{layout} option and the examples below.}
% \addtocounter{footnote}{1}
%
% \section{Examples}
% The following code generates the three titlepages below:
%
% \medskip
% \noindent{\tt\textbackslash{}maketitleru[\\
% \null\qquad layout=traditional,\\
% \null\qquad authors=\{John Doe\},\\
% \null\qquad date=\{Tomorrow\},\\
% \null\qquad others=\{\{Supervisor:\}\{Jane Doe\},\{Second reader:\}\{Joanne Dune\}\},\\
% \null\qquad course=\{Master's Thesis\},\\
% \null\qquad title=\{The `traditional' layout\},\\
% \null\qquad subtitle=\{Simple elegance\}]}
%
% \medskip
% \noindent{\tt\textbackslash{}maketitleru[\\
% \null\qquad layout=seventeen,\\
% \null\qquad authors=\{John Doe\},\\
% \null\qquad date=\{Tomorrow\},\\
% \null\qquad others=\{\{Supervisor:\}\{Jane Doe\},\{Second reader:\}\{Joanne Dune\}\},\\
% \null\qquad title=\{The `seventeen' layout\},\\
% \null\qquad subtitle=\{Based on the latest corporate identity guidelines\}]}
%
% \medskip
% \noindent{\tt\textbackslash{}maketitleru[\\
% \null\qquad authors=\{John Doe\},\\
% \null\qquad date=\{Tomorrow\},\\
% \null\qquad others=\{\{Supervisor:\}\{Jane Doe\},\{Second reader:\}\{Joanne Dune\}\},\\
% \null\qquad course=\{Master's Thesis\},\\
% \null\qquad title=\{The `twentytwo' layout\},\\
% \null\qquad subtitle=\{Slightly modified `seventeen` including course information\}]}
%
% \maketitleru[
% authors={John Doe},
% date={Tomorrow},
% others={{Supervisor:}{Jane Doe},{Second reader:}{Joanne Dune}},
% course={Master's Thesis},
% layout=traditional,
% title={The `traditional' layout},
% subtitle={Simple elegance}]
% \maketitleru[
% layout=seventeen,
% authors={John Doe},
% date={Tomorrow},
% others={{Supervisor:}{Jane Doe},{Second reader:}{Joanne Dune}},
% title={The `seventeen' layout},
% subtitle={Based on the latest corporate identity guidelines}]
% \maketitleru[
% layout=twentytwo,
% authors={John Doe},
% date={Tomorrow},
% others={{Supervisor:}{Jane Doe},{Second reader:}{Joanne Dune}},
% title={The `twentytwo' layout},
% subtitle={Slightly modified `seventeen` including course information}]
%\endinput
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rutitlepage}[2022/02/21 Mart Lubbers]
\RequirePackage{geometry,graphicx,ifpdf,keyval,iflang}
\def\@rutitleauthors{\@author}
\def\@rutitleauthorstext{Aut\IfLanguageName{dutch}{eu}{ho}r:}
\def\@rutitledate{\@date}
\def\@rutitleinst{Radboud Universit\IfLanguageName{dutch}{eit}{y} Nijmegen}
\def\@rutitletitle{\@title}
\def\@rutitlelayout{twentytwo}
\newif\if@rutitlecolour\@rutitlecolourfalse
\define@key{maketitleru}{authors}{\def\@rutitleauthors{#1}}
\define@key{maketitleru}{authorstext}{\def\@rutitleauthorstext{#1}}
\define@key{maketitleru}{colour}[true]{\@rutitlecolourtrue}
\define@key{maketitleru}{course}{\def\@rutitlecourse{#1}}
\define@key{maketitleru}{date}{\def\@rutitledate{#1}}
\define@key{maketitleru}{institution}{\def\@rutitleinst{#1}}
\define@key{maketitleru}{layout}{\def\@rutitlelayout{#1}}
\define@key{maketitleru}{nextpagenr}{\def\@rutitlenextpagenr{#1}}
\define@key{maketitleru}{others}{\def\@rutitleothers{#1}}
\define@key{maketitleru}{subtitle}{\def\@rutitlesubtitle{#1}}
\define@key{maketitleru}{title}{\def\@rutitletitle{#1}}
\newcommand*{\rutitlepage@printothers}[2]{\textit{#1}\\#2}
\newcommand*{\rutitlepage@sepothers}{\\[\baselineskip]}
\newcommand*{\rutitlepage@others}[2]{%
\rutitlepage@printothers{#1}{#2}%
\kernel@ifnextchar,{\rutitlepage@sepothers\rutitlepage@otherslist@}\relax}
\newcommand*{\rutitlepage@otherslist}[1]{%
\expandafter\rutitlepage@others#1}
\def\rutitlepage@otherslist@,#1{\rutitlepage@otherslist{{#1}}}
\newcommand{\rutitle@layout@twentytwo}[0]{
\newgeometry{left=25mm,top=25mm,right=15mm,bottom=10mm,hmarginratio=1:1}
\begin{titlepage}%
\null\vfill%
\parindent0pt
\ifdefined\@rutitlecourse\textsc{\LARGE\@rutitlecourse}\\[1.5cm]\fi
{\Huge\bfseries\@rutitletitle}%
\ifdefined\@rutitlesubtitle{\\[2\baselineskip]\large\itshape\@rutitlesubtitle\/}\fi\\[4\baselineskip]
{\Large\scshape\@rutitleauthors}\\[\baselineskip]
{\large\@rutitledate}
\vfill
\ifdefined\@rutitleothers\rutitlepage@otherslist\@rutitleothers\fi
\vfill
\hfill
\ifpdf\includegraphics[width=80mm]{rutitlepage-logo-\IfLanguageName{dutch}{nl-}{}\if@rutitlecolour cmyk\else bw\fi.pdf}\\
\else\includegraphics[width=80mm]{rutitlepage-logo-\IfLanguageName{dutch}{nl-}{}\if@rutitlecolour cmyk\else bw\fi.eps}\\
\fi
\end{titlepage}
\restoregeometry%
}
\newcommand{\rutitle@layout@seventeen}[0]{
\newgeometry{left=25mm,top=25mm,right=15mm,bottom=10mm,hmarginratio=1:1}
\begin{titlepage}%
\null\vfill%
\parindent0pt
{\Huge\bfseries\@rutitletitle}%
\ifdefined\@rutitlesubtitle{\\[2\baselineskip]\large\itshape\@rutitlesubtitle\/}\fi\\[4\baselineskip]
{\Large\scshape\@rutitleauthors}\\[\baselineskip]
{\large\@rutitledate}
\vfill
\ifdefined\@rutitleothers\rutitlepage@otherslist\@rutitleothers\fi
\vfill
\hfill
\ifpdf\includegraphics[width=80mm]{rutitlepage-logo-\IfLanguageName{dutch}{nl-}{}\if@rutitlecolour cmyk\else bw\fi.pdf}\\
\else\includegraphics[width=80mm]{rutitlepage-logo-\IfLanguageName{dutch}{nl-}{}\if@rutitlecolour cmyk\else bw\fi.eps}\\
\fi
\end{titlepage}
\restoregeometry%
}
\newcommand{\rutitle@layout@traditional}[0]{
\newgeometry{hmarginratio=1:1}
\begin{titlepage}
\begin{center}
\ifdefined\@rutitlecourse\textsc{\LARGE\@rutitlecourse}\\[1.5cm]\fi
\ifpdf\includegraphics[height=150pt]{rutitlepage-logo.pdf}\\
\else\includegraphics[height=150pt]{rutitlepage-logo.eps}\\
\fi
\vspace{0.4cm}
\textsc{\Large\@rutitleinst}\\[1cm]
\hrule
\vspace{0.4cm}
\textbf{\large\@rutitletitle}\\[0.4cm]
\hrule
\ifdefined\@rutitlesubtitle
\vspace{0.4cm}
\textit{\@rutitlesubtitle}\\[1cm]
\else
\vspace{2cm}
\fi
\begin{minipage}[t]{0.45\textwidth}
\begin{flushleft}\large
\textit{\@rutitleauthorstext}\\
\@rutitleauthors{}
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.45\textwidth}
\begin{flushright}\large
\ifdefined\@rutitleothers
\renewcommand{\rutitlepage@printothers}[2]{\textit{##1}\\##2}
\renewcommand{\rutitlepage@sepothers}[0]{
\vspace{8mm}}
\rutitlepage@otherslist\@rutitleothers
\fi
\end{flushright}
\end{minipage}
\vfill
{\large\@rutitledate}
\end{center}
\end{titlepage}
\restoregeometry%
}
\newcommand{\maketitleru}[1][]{
\setkeys{maketitleru}{#1}
\ifcsname%
rutitle@layout@\@rutitlelayout\endcsname
\expandafter\csname rutitle@layout@\@rutitlelayout\endcsname
\else
\PackageError{rutitlepage}
{Unknown layout `\@rutitlelayout'.}
{The `layout' key of \maketitleru\space contained an unknown layout.\MessageBreak{}
Check the package documentation for the possible layouts.}
\fi
\ifdefined\@rutitlenextpagenr\setcounter{page}{\@rutitlenextpagenr}\fi%
}
|