-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpracamgr.cls
187 lines (167 loc) · 5.41 KB
/
pracamgr.cls
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
% Klasa dokumentow do skladu prac magisterskich i~licencjackich
% na wydziale Matematyki, Mechaniki i~Informatyki UW.
%
% Copyright (c) 2001 by Wydzial Matematyki, Informatyki i Mechaniki.
%
% Zmiany 05.05.2006 by Seweryn Karlowicz
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{pracamgr}[2006/05/05 v0.5.0 Praca magisterska]
\def\@baseclass{report}
\def\@rodzajpracy{Master's}
\DeclareOption{licencjacka}{\def\@rodzajpracy{licencjacka}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@baseclass}}
\PassOptionsToClass{a4paper,twoside,openright,11pt}{\@baseclass}
\ProcessOptions
\LoadClass{\@baseclass}
\textwidth\paperwidth
\advance\textwidth -55mm
\oddsidemargin-1in
\advance\oddsidemargin 30mm
\evensidemargin-1in
\advance\evensidemargin 25mm
\topmargin -1in
\advance\topmargin 2cm
\setlength\textheight{48\baselineskip}
\addtolength\textheight{\topskip}
\marginparwidth15mm
\renewcommand\maketitle{%
\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\begin{center}%
{\LARGE\textbf{University of Warsaw}\\
Faculty of Mathematics, Informatics and Mechanics\par}
\vspace{1cm plus 1fill}
{\Large\bf\@author\par}
\vspace{0.2cm}
{\large Student number: \@nralbumu\par}
\vspace{8mm plus .1fill}
{\Huge\textbf{\@title}\par}
\vspace{8mm plus .1fill}
{\large\bf \@rodzajpracy\ Thesis\\[3pt]
in \MakeUppercase{\@kierunek} \\
%----zakres---
\@zakres \par}
\vspace{2cm plus 1.5fill}
\begin{flushright}\large
\begin{tabular}{l}
Supervisor\\
\bfseries \@opiekun
\end{tabular}
\end{flushright}
\vspace{1cm plus 1fill}
{\large \@date\par}
\end{center}
\@thanks
\end{titlepage}%
\begin{titlepage}
\c@page=2
\large
\null
\vfill
\textbf{\Large Supervisor's statement }
\vspace{10mm}
Hereby I confirm that the present thesis was prepared under my supervision and
that it fulfills the requirements for the degree of Master of Computer Science.
\vspace{15mm}
Date \hfill Supervisor's signature
\vspace{3cm}
\textbf{\Large Author's statement}
\vspace{10mm}
Hereby I declare that the presented thesis was prepared by me and none of its contents was obtained by means that are against the law.
The thesis has never before been a subject of any procedure of obtaining an academic degree.
Moreover, I declare that the present version of the thesis is identical to the attached electronic version.
\vspace{15mm}
Date \hfill Author's signature
\vspace{4cm}
\end{titlepage}
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
\def\nralbumu#1{\gdef\@nralbumu{#1}}
\def\@nralbumu{???\ClassError{pracamgr}{Brak numeru albumu}\@ehc}
\def\kierunek#1{\gdef\@kierunek{#1}}
\def\@kierunek{???\ClassError{pracamgr}{Nie podano kierunku studiow}\@ehc}
%----zakres nie konieczny-----
\def\zakres#1{\gdef\@zakres{w zakresie \MakeUppercase{#1}}}
\def\@zakres{}
\def\opiekun#1{\gdef\@opiekun{#1}}
\def\@opiekun{???\ClassError{pracamgr}{Brak danych opiekuna pracy}\@ehc}
\def\keywords#1{\gdef\@keywords{#1}}
\def\@keywords{???\ClassError{pracamgr}{Brak slow kluczowych}\@ehc}
\def\dziedzina#1{\gdef\@dziedzina{#1}}
\def\@dziedzina{???\ClassError{pracamgr}{Brak dziedziny Socrates-Erasmus}\@ehc}
\def\klasyfikacja#1{\gdef\@klasyfikacja{#1}}
\def\@klasyfikacja{???\ClassError{pracamgr}{Brak klasyfikacji tematycznej}\@ehc}
%-------------------nowe------------
\def\tytulang#1{\gdef\@tytulang{#1}}
\def\@tytulang{???\ClassError{pracamgr}{Brak tytulu po angielsku}\@ehc}
\renewenvironment{abstract}{%
\titlepage
\null\nobreak\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries\large \abstractname
\@endparpenalty\@M
\end{center}}%
{\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Keywords
\@endparpenalty\@M
\end{center}
\@keywords\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Thesis domain (Socrates-Erasmus subject area codes)
\@endparpenalty\@M
\end{center}
\@dziedzina\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Subject classification
\@endparpenalty\@M
\end{center}
\@klasyfikacja\par
\vspace*{26pt}%
%-------------------nowosc----------------
\begin{center}%
\bfseries\large Tytu{\l} pracy w j¦zyku polskim
\@endparpenalty\@M
\end{center}
\@tytulang\par
\nobreak\vfil\null\endtitlepage\cleardoublepage}
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\renewcommand*\@seccntformat[1]{\csname the#1\endcsname.\enspace}
\def\numberline#1{\hb@xt@\@tempdima{#1.\hfil}}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\mdseries
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\endinput