-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlysc-titlepage.sty
40 lines (35 loc) · 961 Bytes
/
lysc-titlepage.sty
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
\ProvidesPackage{lysc-titlepage}
\RequirePackage{geometry}
\RequirePackage{pagecolor}
\RequirePackage{afterpage}
\RequirePackage{xcolor}
\newcommand*{\titleimage}[1]{\gdef\@titleimage{#1}}
\newcommand*{\@titleimage}{}
\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}
\newcommand*{\@subtitle}{}
\renewcommand*{\and}{{\LARGE and }}
\newcommand*{\titlebgcolor}[1]{\gdef\@titlebgcolor{#1}}
\newcommand*{\@titlebgcolor}{none}
\newcommand*{\titlefontcolor}[1]{\gdef\@titlefontcolor{#1}}
\newcommand*{\@titlefontcolor}{black}
\renewcommand*{\maketitle}{%
\begin{titlepage}
\pagestyle{empty}
\newgeometry{centering}
\pagecolor{\@titlebgcolor}
\afterpage{\nopagecolor}
\afterpage{\restoregeometry}
\centering
\vfill
\@titleimage
\vfill
{\color{\@titlefontcolor}\sffamily
{\fontsize{32}{0}\bfseries\@title \strut\par}
{\LARGE or: {\huge \@subtitle} \strut\par}
\vspace{1cm}
{\LARGE by: {\huge\@author} \strut\par}
\vfill
}
\end{titlepage}
}
\endinput