-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_pracamgr.cls
executable file
·213 lines (185 loc) · 6.59 KB
/
my_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
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{pracamgr}[2006/05/05 v0.5.0 Praca magisterska]
\def\@baseclass{report}
\def\@rodzajpracy{magisterska}
\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 Physics\par}
\vspace{1cm plus 1fill}
{\Large\bf\@author\par}
\vspace{0.2cm}
{\large Student's book no.: \@nralbumu\par}
\vspace{8mm plus .1fill}
{\Huge\textbf{\@title}\par}
\vspace{8mm plus .1fill}
{\large\bf Second cycle degree thesis\\[3pt]
speciality \MakeUppercase{\@kierunek} \\
%----zakres---
\@zakres \par}
\vspace{2cm plus 1.5fill}
\begin{flushright}\large
\begin{tabular}{l}
The thesiswritten under the supervision of\\
\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 O\'swiadczenie kieruj¡cego prac¡ }
\vspace{5mm}
Potwierdzam, {\.z}e niniejsza praca zosta{\l}a przygotowana pod moim
kierunkiem i kwalifikuje si¦ do przedstawienia jej w post¦powaniu
o nadanie tytu{\l}u zawodowego.
\vspace{5mm}
Data \hfill Podpis kieruj¡cego prac¡
\vspace{2cm}
\textbf{\Large Statement of the Supervisor on Submission of the Thesis }
\vspace{10mm}
I hereby certify that the thesis submitted has been prepared under my supervision and I declare that it satisfies the requirements of submission in the proceedings for the award of a degree.
\vspace{5mm}
Date \hfill Signature of the Supervisor
\vspace{1cm}
\textbf{\Large O\'swiadczenie autora (autor\'ow) pracy}
\vspace{5mm}
\'{S}wiadom odpowiedzialno\'sci prawnej o\'swiadczam, {\.z}e niniejsza praca dyplomowa zosta{\l}a
napisana przeze mnie samodzielnie i nie zawiera tre\'sci uzyskanych w spos\'ob niezgodny
z obowi¡zuj¡cymi przepisami.
O\'swiadczam r\'ownie{\.z}, {\.z}e przedstawiona praca nie by{\l}a
wcze\'sniej przedmiotem procedur zwi¡zanych z uzyskaniem tytu{\l}u zawodowego w wy{\.z}szej uczelni.
O\'swiadczam ponadto, {\.z}e niniejsza wersja pracy jest identyczna z za{\l}¡czon¡ wersj¡ elektroniczn¡.
\vspace{5mm}
Data \hfill Podpis autora (autor\'ow) pracy
\vspace{1cm}
\textbf{\Large Statement of the Author(s) on Submission of the Thesis}
\vspace{5mm}
Aware of legal liability I certify that the thesis submitted has been prepared by myself and does not include information gathered contrary to the law.
I also declare that the thesis submitted has not been the subject of proceedings resulting in the award of a university degree.
Furthermore I certify that the submitted version of the thesis is identical with its attached electronic version.
\vspace{5mm}
Date \hfill Signature of the Author(s) of the thesis
\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\keywordsPL#1{\gdef\@keywordsPL{#1}}
\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 Summary
\@endparpenalty\@M
\end{center}}%
{\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Key words
\@endparpenalty\@M
\end{center}
\@keywords\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large S{\l}owa kluczowe
\@endparpenalty\@M
\end{center}
\@keywordsPL\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Area of study (codes according to Erasmus Subject Area Codes List)
\@endparpenalty\@M
\end{center}
\@dziedzina\par
\vspace*{26pt}%
\begin{center}%
\bfseries\large Theme classification
\@endparpenalty\@M
\end{center}
\@klasyfikacja\par
\vspace*{26pt}%
%-------------------nowosc----------------
\begin{center}%
\bfseries\large The title of the thesis in Polish
\@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