-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmcsTitle.sty
69 lines (57 loc) · 1.45 KB
/
dmcsTitle.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
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
% Rafał Kołucki 215514
\ProvidesPackage{dmcsTitle}[2022-02-13 v.01 strona tytułowa pracy dyplomowej dla Katedry Mikroelektroniki i Technik Informatycznych]
\RequirePackage[polish]{babel}
\RequirePackage{ifthen}
\newcommand*{\thesis}[1]{\gdef\@thesis{#1}%
}
\newcommand*{\@thesis}{\texttt{\string\thesis\{inżynierska\}} lub \texttt{\string\thesis\{magisterska\}}}
\newcommand*{\supervisor}[2][]{%
\gdef\@supervisorA{#2}
\IfNoValueTF{#1}{}{\gdef\@supervisorB{#1}}
}
\newcommand*{\doubletitle}[2]{%
\title{#1}
\gdef\@titleA{#1}
\IfNoValueTF{#2}{}{\gdef\@titleB{#2}}
}
\newcommand*{\indexnumber}[1]{\gdef\@indexnumber{#1}%
}
\newcommand*{\@indexnumber}{\texttt{\string\indexnumber} is not set}
\renewcommand*{\maketitle}{%
\begin{titlepage}
{
\centering
{\scshape\LARGE Politechnika Łódzka \par}
{\Large Wydział Elektrotechniki, Elektroniki, \par}
{\Large Informatyki i Automatyki \par}
\vfill
{\large Praca dyplomowa \@thesis\par}
\vspace{1cm}
{\Large\bfseries \@titleA\par}
\@ifundefined{@titleB}{}{
\vspace{1cm}
{\Large\bfseries \@titleB\par}
}
\vspace{2cm}
{\Large\bfseries \@author\par}
\vspace{1cm}
{Nr albumu: \@indexnumber\par}
}
\vfill
\begin{flushright}
{Promotor: \\
\bfseries\@supervisorA\par}
{\hfill \break}
\ifthenelse{\equal {\@supervisorB} {}}{}{
Opiekun pomocniczy: \\
\bfseries\@supervisorB\par
}
\end{flushright}
\vfill
{
\centering
{\large Łódź, \@date\par}
}
\end{titlepage}
}
\endinput