summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/rutitlepage/rutitlepage.sty
blob: 59520d9224c7a96e8acdd88599e0335da80d26ef (plain)
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
%%
%% This is file `rutitlepage.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rutitlepage.dtx  (with options: `package')
%% This is a generated file.
%% 
%% Copyright (C) 2019 Mart Lubbers
%% 
%% This file 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.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rutitlepage}[2017/09/07 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{seventeen}
\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@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\it\@rutitlesubtitle\/}\fi\\[4\baselineskip]
{\Large\sc\@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%
}
\endinput
%%
%% End of file `rutitlepage.sty'.