2017-09-21 09:27:30 +02:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\ProvidesClass{amuthesis}[2017/10/01 AMU Thesis]
|
|
|
|
|
|
|
|
% ======================================================== %
|
|
|
|
% Obsługa opcji pakietu %
|
|
|
|
% ======================================================== %
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Język dokumentu
|
2017-09-21 09:27:30 +02:00
|
|
|
\newif\if@optpolski
|
|
|
|
\DeclareOption{polski}{\@optpolskitrue}
|
|
|
|
\ExecuteOptions{polski}
|
|
|
|
\DeclareOption{english}{\@optpolskifalse}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Wcięcia pierwszych akapitów w paragrafie
|
2017-09-21 09:27:30 +02:00
|
|
|
\newif\if@optindent
|
|
|
|
\DeclareOption{indent}{\@optindenttrue}
|
|
|
|
|
2017-09-23 12:39:51 +02:00
|
|
|
% Logo zamiast nazwy uczelni
|
|
|
|
\newif\if@optlogo
|
|
|
|
\DeclareOption{logo}{\@optlogotrue}
|
|
|
|
|
2017-09-22 13:22:39 +02:00
|
|
|
% Zamiana numeru i nazwy otoczenia
|
|
|
|
\newif\if@optswapthm
|
|
|
|
\DeclareOption{swapthm}{\@optswapthmtrue}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Numerowanie wierszy
|
2017-09-21 09:27:30 +02:00
|
|
|
\newif\if@optlineno
|
|
|
|
\DeclareOption{lineno}{\@optlinenotrue}
|
|
|
|
|
2017-09-22 11:11:49 +02:00
|
|
|
% Wsparcie dla stron pustych
|
|
|
|
\newif\if@optleftblank
|
|
|
|
\DeclareOption{leftblank}{\@optleftblanktrue}
|
|
|
|
|
2017-09-22 11:03:10 +02:00
|
|
|
% Skład jedno- i dwustronny
|
|
|
|
\DeclareOption{oneside}{
|
|
|
|
\PassOptionsToClass{oneside}{mwbk}
|
|
|
|
\PassOptionsToClass{oneside}{book}
|
|
|
|
}
|
|
|
|
\DeclareOption{twoside}{
|
|
|
|
\PassOptionsToClass{twoside}{mwbk}
|
|
|
|
\PassOptionsToClass{twoside}{book}
|
|
|
|
}
|
|
|
|
|
2017-09-21 09:27:30 +02:00
|
|
|
% Obsłuż nieznane opcje
|
|
|
|
\DeclareOption*{
|
|
|
|
\ClassWarning{amuthesis}{Nieznany parametr klasy: \CurrentOption}
|
|
|
|
}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Przetwórz opcje
|
2017-09-21 09:27:30 +02:00
|
|
|
\ProcessOptions\relax
|
|
|
|
|
|
|
|
% Oprzyj dokument na jednym z zestawów, w zależności
|
2017-09-21 18:33:44 +02:00
|
|
|
% od statusu opcji 'optpolski'
|
2017-09-21 09:27:30 +02:00
|
|
|
\if@optpolski
|
2017-09-22 10:56:12 +02:00
|
|
|
\LoadClass[oneside,11pt]{mwbk}
|
2017-09-21 09:27:30 +02:00
|
|
|
\RequirePackage{polski}
|
|
|
|
\else
|
2017-09-22 10:56:12 +02:00
|
|
|
\LoadClass[oneside,11pt]{book}
|
2017-09-21 09:27:30 +02:00
|
|
|
\fi
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Uruchom numerację wierszy, jeśli do klasy przekazano
|
|
|
|
% opcję 'lineno'
|
2017-09-21 09:27:30 +02:00
|
|
|
\if@optlineno
|
|
|
|
\RequirePackage[mathlines]{lineno}
|
|
|
|
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
|
|
|
|
\expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
|
|
|
|
\expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
|
|
|
|
\renewenvironment{#1}%
|
|
|
|
{\linenomath\csname old#1\endcsname}%
|
|
|
|
{\csname oldend#1\endcsname\endlinenomath}}%
|
|
|
|
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
|
|
|
|
\patchAmsMathEnvironmentForLineno{#1}%
|
|
|
|
\patchAmsMathEnvironmentForLineno{#1*}}%
|
|
|
|
\AtBeginDocument{%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{equation}%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{align}%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{flalign}%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{alignat}%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{gather}%
|
|
|
|
\patchBothAmsMathEnvironmentsForLineno{multline}%
|
|
|
|
}
|
|
|
|
\linenumbers
|
|
|
|
\fi
|
|
|
|
|
|
|
|
% ======================================================== %
|
2017-09-21 18:33:44 +02:00
|
|
|
% Podstawowe pakiety i ustawienia dokumentu %
|
2017-09-21 09:27:30 +02:00
|
|
|
% ======================================================== %
|
|
|
|
|
2017-09-22 10:56:12 +02:00
|
|
|
\RequirePackage{ifxetex}
|
|
|
|
\RequirePackage{ifluatex}
|
|
|
|
\newif\if@xetexorluatex
|
|
|
|
\ifxetex
|
|
|
|
\@xetexorluatextrue
|
|
|
|
\else
|
|
|
|
\ifluatex
|
|
|
|
\@xetexorluatextrue
|
|
|
|
\else
|
|
|
|
\@xetexorluatexfalse
|
|
|
|
\fi
|
|
|
|
\fi
|
2017-09-21 09:27:30 +02:00
|
|
|
|
2017-09-22 22:57:22 +02:00
|
|
|
\setlength{\textfloatsep}{2\baselineskip}
|
|
|
|
|
2017-09-22 10:56:12 +02:00
|
|
|
% Obsługa fontów
|
|
|
|
\if@xetexorluatex
|
|
|
|
%\RequirePackage{unicode-math}
|
|
|
|
\RequirePackage{fontspec}
|
|
|
|
\RequirePackage{mathpazo}
|
|
|
|
\RequirePackage{avant}
|
|
|
|
\setmainfont
|
|
|
|
[ BoldFont = texgyrepagella-bold.otf ,
|
|
|
|
ItalicFont = texgyrepagella-italic.otf ,
|
|
|
|
BoldItalicFont = texgyrepagella-bolditalic.otf ]
|
|
|
|
{texgyrepagella-regular.otf}
|
|
|
|
\newfontfamily\scshape[Letters=SmallCaps]{texgyrepagella-regular.otf}
|
|
|
|
\else
|
|
|
|
\RequirePackage[sc]{mathpazo}
|
|
|
|
\RequirePackage{avant}
|
|
|
|
\fi
|
2017-09-21 18:33:44 +02:00
|
|
|
% Dołącz font 'Souce Code Pro'
|
2017-09-22 10:56:12 +02:00
|
|
|
\RequirePackage[scale=.93,semibold]{sourcecodepro}
|
2017-09-21 09:27:30 +02:00
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Ustal rozmiar dokumentu
|
2017-09-21 09:27:30 +02:00
|
|
|
\RequirePackage{geometry}
|
|
|
|
\geometry{a4paper,%
|
|
|
|
innermargin=3.75cm,%
|
|
|
|
outermargin=3.75cm,%
|
|
|
|
tmargin=4.0cm,%
|
|
|
|
bmargin=4.0cm,%
|
|
|
|
headsep=24pt,%
|
|
|
|
footskip=42pt}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zapewnij poprawną interakcję wewnątrz pliku PDF
|
2017-09-21 09:27:30 +02:00
|
|
|
\RequirePackage[hidelinks,unicode]{hyperref}
|
|
|
|
|
2017-09-22 11:11:49 +02:00
|
|
|
% Obsłuż opis pustych stron
|
|
|
|
\newcommand*{\leftblank}[1]{\gdef\@leftblank{#1}}
|
|
|
|
\newcommand*{\@leftblank}{}
|
2017-09-22 14:12:09 +02:00
|
|
|
|
|
|
|
\if@optpolski
|
|
|
|
\leftblank{Ta strona jest pusta.}
|
|
|
|
\else
|
|
|
|
\leftblank{This page intentionally left blank.}
|
|
|
|
\fi
|
2017-09-22 11:11:49 +02:00
|
|
|
|
|
|
|
\if@optleftblank
|
|
|
|
\def\cleardoublepage{%
|
|
|
|
\clearpage\if@twoside%
|
|
|
|
\ifodd\c@page%
|
|
|
|
\else
|
|
|
|
\vspace*{\fill}
|
|
|
|
\hfill
|
|
|
|
\begin{center}
|
|
|
|
\@leftblank
|
|
|
|
\end{center}
|
|
|
|
\vspace{\fill}
|
|
|
|
\thispagestyle{empty}
|
|
|
|
\newpage
|
|
|
|
\if@twocolumn\hbox{}\newpage\fi
|
|
|
|
\fi
|
|
|
|
\fi
|
|
|
|
}
|
|
|
|
\fi
|
|
|
|
|
2017-09-21 09:27:30 +02:00
|
|
|
% Dołącz podstawowe pakiety
|
|
|
|
\RequirePackage{xcolor}
|
|
|
|
\RequirePackage{amsmath}
|
|
|
|
\RequirePackage{amssymb}
|
|
|
|
\RequirePackage{amsthm}
|
|
|
|
\RequirePackage{graphicx}
|
|
|
|
\RequirePackage{microtype}
|
2017-09-22 13:19:04 +02:00
|
|
|
\RequirePackage{array}
|
|
|
|
\RequirePackage{tabularx}
|
|
|
|
\RequirePackage{longtable}
|
|
|
|
\RequirePackage{makecell}
|
2017-09-22 11:03:10 +02:00
|
|
|
\RequirePackage{booktabs}
|
2017-09-22 14:12:09 +02:00
|
|
|
\RequirePackage{verbatim}
|
|
|
|
|
|
|
|
% ======================================================== %
|
|
|
|
% Etykiety %
|
|
|
|
% ======================================================== %
|
|
|
|
|
2017-09-23 16:56:47 +02:00
|
|
|
\RequirePackage[justification=centering,
|
2017-09-22 14:12:09 +02:00
|
|
|
singlelinecheck=false,
|
|
|
|
labelsep=period]{caption}
|
|
|
|
\DeclareCaptionFormat{stdcap}{\textbf{#1#2}#3\vspace*{0.5em}}
|
|
|
|
\captionsetup[table]{justification=centering}
|
|
|
|
\captionsetup{format=stdcap}
|
|
|
|
|
|
|
|
% ======================================================== %
|
|
|
|
% Listingi %
|
|
|
|
% ======================================================== %
|
|
|
|
|
|
|
|
\RequirePackage{listings}
|
|
|
|
\AtBeginDocument{%
|
|
|
|
\renewcommand*{\thelstlisting}{\thechapter-\arabic{lstlisting}}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\if@optpolski
|
2017-10-10 15:01:01 +02:00
|
|
|
\renewcommand{\lstlistingname}{Wyci\k{a}g}
|
2017-09-22 14:12:09 +02:00
|
|
|
\else
|
|
|
|
\renewcommand{\lstlistingname}{Listing}
|
|
|
|
\fi
|
|
|
|
|
|
|
|
\lstset{
|
|
|
|
basicstyle=\small\ttfamily,
|
|
|
|
breaklines=true,
|
|
|
|
xleftmargin=26pt,
|
|
|
|
showstringspaces=false,
|
|
|
|
belowskip=9pt,
|
|
|
|
aboveskip=9pt,
|
|
|
|
extendedchars=true,
|
|
|
|
inputencoding=utf8,
|
|
|
|
frame=l,
|
|
|
|
framesep=5pt,
|
|
|
|
numbers=left,
|
|
|
|
numberstyle=\footnotesize\ttfamily\color{gray},
|
|
|
|
rulecolor=\color{gray!50},
|
|
|
|
extendedchars=true
|
|
|
|
}
|
2017-09-21 09:27:30 +02:00
|
|
|
|
2017-09-22 13:19:04 +02:00
|
|
|
% ======================================================== %
|
|
|
|
% Otoczenia %
|
|
|
|
% ======================================================== %
|
|
|
|
|
|
|
|
\if@optpolski
|
|
|
|
\newcommand*{\amsthmtheorem}{Twierdzenie}
|
|
|
|
\newcommand*{\amsthmlemma}{Lemat}
|
|
|
|
\newcommand*{\amsthmstatement}{Hipoteza}
|
|
|
|
\newcommand*{\amsthmproposition}{Stwierdzenie}
|
|
|
|
\newcommand*{\amsthmcorollary}{Wniosek}
|
|
|
|
|
|
|
|
\newcommand*{\amsthmdefinition}{Definicja}
|
|
|
|
\newcommand*{\amsthmexample}{Przyk\l{}ad}
|
|
|
|
\newcommand*{\amsthmtask}{Zadanie}
|
|
|
|
\newcommand*{\amsthmexercise}{\'Cwiczenie}
|
|
|
|
|
|
|
|
\newcommand*{\amsthmremark}{Spostrze\.zenie}
|
|
|
|
\newcommand*{\amsthmnote}{Obserwacja}
|
|
|
|
\else
|
|
|
|
\newcommand*{\amsthmtheorem}{Theorem}
|
|
|
|
\newcommand*{\amsthmlemma}{Lemma}
|
|
|
|
\newcommand*{\amsthmstatement}{Statement}
|
|
|
|
\newcommand*{\amsthmproposition}{Proposition}
|
|
|
|
\newcommand*{\amsthmcorollary}{Corollary}
|
|
|
|
|
|
|
|
\newcommand*{\amsthmdefinition}{Definition}
|
|
|
|
\newcommand*{\amsthmexample}{Example}
|
|
|
|
\newcommand*{\amsthmtask}{Task}
|
|
|
|
\newcommand*{\amsthmexercise}{Exercise}
|
|
|
|
|
|
|
|
\newcommand*{\amsthmremark}{Remark}
|
|
|
|
\newcommand*{\amsthmnote}{Note}
|
|
|
|
\fi
|
|
|
|
|
2017-09-22 13:22:39 +02:00
|
|
|
\if@optswapthm
|
|
|
|
\def\swappedhead#1#2#3{%
|
|
|
|
\if@optpolski
|
|
|
|
\thmnumber{#2.}%
|
|
|
|
\else
|
|
|
|
\thmnumber{#2}%
|
|
|
|
\fi
|
|
|
|
\thmname{\@ifnotempty{#2}{~}#1}%
|
|
|
|
\thmnote{ {\the\thm@notefont(#3)}}}
|
|
|
|
\swapnumbers
|
|
|
|
\fi
|
|
|
|
|
2017-09-22 13:19:04 +02:00
|
|
|
\theoremstyle{plain}
|
|
|
|
\newtheorem{theorem}{\amsthmtheorem}[chapter]
|
|
|
|
\newtheorem{twierdzenie}[theorem]{\amsthmtheorem}
|
|
|
|
\newtheorem{lemma}[theorem]{\amsthmlemma}
|
|
|
|
\newtheorem{lemat}[theorem]{\amsthmlemma}
|
|
|
|
\newtheorem{statement}[theorem]{\amsthmstatement}
|
|
|
|
\newtheorem{hipoteza}[theorem]{\amsthmstatement}
|
|
|
|
\newtheorem{proposition}[theorem]{\amsthmproposition}
|
|
|
|
\newtheorem{stwierdzenie}[theorem]{\amsthmproposition}
|
|
|
|
\newtheorem{corollary}[theorem]{\amsthmcorollary}
|
|
|
|
\newtheorem{wniosek}[theorem]{\amsthmcorollary}
|
|
|
|
|
|
|
|
\theoremstyle{definition}
|
|
|
|
\newtheorem{definition}{\amsthmdefinition}[chapter]
|
|
|
|
\newtheorem{definicja}[definition]{\amsthmdefinition}
|
|
|
|
\newtheorem{example}{\amsthmexample}[chapter]
|
|
|
|
\newtheorem{przyklad}[example]{\amsthmexample}
|
|
|
|
\newtheorem{task}{\amsthmtask}[chapter]
|
|
|
|
\newtheorem{zadanie}[task]{\amsthmtask}
|
|
|
|
\newtheorem{exercise}[task]{\amsthmexercise}
|
|
|
|
\newtheorem{cwiczenie}[task]{\amsthmexercise}
|
|
|
|
|
|
|
|
\theoremstyle{remark}
|
|
|
|
\newtheorem{remark}[theorem]{\amsthmremark}
|
|
|
|
\newtheorem{spostrzezenie}[theorem]{\amsthmremark}
|
|
|
|
\newtheorem{note}[theorem]{\amsthmnote}
|
|
|
|
\newtheorem{obserwacja}[theorem]{\amsthmnote}
|
|
|
|
|
|
|
|
\newenvironment{dowod}{\begin{proof}}{\end{proof}}
|
|
|
|
|
2017-09-21 09:27:30 +02:00
|
|
|
% ======================================================== %
|
|
|
|
% Konfiguracja i polecenia specjalne %
|
|
|
|
% ======================================================== %
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Ustawienia składu pionowego
|
|
|
|
\linespread{1.15}
|
2017-09-21 09:27:30 +02:00
|
|
|
\raggedbottom
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zdefiniuj otoczenia dla abstraktów
|
2017-09-21 15:24:38 +02:00
|
|
|
\newenvironment{abstract}{\chapter*{Abstract}}{}
|
|
|
|
\newenvironment{streszczenie}{\chapter*{Streszczenie}}{}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zdefiniuj otoczenie dla dedykacji
|
2017-09-21 15:24:38 +02:00
|
|
|
\newenvironment{dedykacja}{%
|
2017-09-22 11:03:10 +02:00
|
|
|
\cleardoublepage\thispagestyle{empty}\mbox{}\vfill
|
2017-09-21 18:55:02 +02:00
|
|
|
\hfill\begin{minipage}{0.5\textwidth}
|
|
|
|
\begin{flushleft}
|
2017-09-21 15:24:38 +02:00
|
|
|
}{
|
2017-09-21 18:55:02 +02:00
|
|
|
\end{flushleft}
|
2017-09-21 15:24:38 +02:00
|
|
|
\end{minipage}
|
2017-09-21 18:55:02 +02:00
|
|
|
\vspace*{4cm}
|
2017-09-21 15:24:38 +02:00
|
|
|
}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% ======================================================== %
|
|
|
|
% Strona tytułowa %
|
|
|
|
% ======================================================== %
|
|
|
|
|
2017-09-25 14:22:59 +02:00
|
|
|
\RequirePackage{ifthen}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zdefiniuj parametry strony tytułowej
|
2017-09-21 15:24:38 +02:00
|
|
|
\newcommand*{\titlePL}[1]{\gdef\@titlePL{#1}}
|
|
|
|
\newcommand*{\@titlePL}{}
|
|
|
|
\newcommand*{\titleEN}[1]{\gdef\@titleEN{#1}}
|
|
|
|
\newcommand*{\@titleEN}{}
|
2021-03-01 10:13:19 +01:00
|
|
|
|
|
|
|
% \firstAuthor
|
|
|
|
\newcommand*{\firstAuthor}[1]{\gdef\@firstAuthor{#1}}
|
|
|
|
\newcommand*{\@firstAuthor}{}
|
|
|
|
% \secondAuthor
|
|
|
|
\newcommand*{\secondAuthor}[1]{\gdef\@secondAuthor{#1}}
|
|
|
|
\newcommand*{\@secondAuthor}{}
|
|
|
|
% \thirdAuthor
|
|
|
|
\newcommand*{\thirdAuthor}[1]{\gdef\@thirdAuthor{#1}}
|
|
|
|
\newcommand*{\@thirdAuthor}{}
|
|
|
|
% \fourthAuthor
|
|
|
|
\newcommand*{\fourthAuthor}[1]{\gdef\@fourthAuthor{#1}}
|
|
|
|
\newcommand*{\@fourthAuthor}{}
|
|
|
|
|
|
|
|
% \firstAlbum
|
|
|
|
\newcommand*{\firstAlbum}[1]{\gdef\@firstAlbum{#1}}
|
|
|
|
\newcommand*{\@firstAlbum}{}
|
|
|
|
% \secondAlbum
|
|
|
|
\newcommand*{\secondAlbum}[1]{\gdef\@secondAlbum{#1}}
|
|
|
|
\newcommand*{\@secondAlbum}{}
|
|
|
|
% \thirdAlbum
|
|
|
|
\newcommand*{\thirdAlbum}[1]{\gdef\@thirdAlbum{#1}}
|
|
|
|
\newcommand*{\@thirdAlbum}{}
|
|
|
|
% \fourthAlbum
|
|
|
|
\newcommand*{\fourthAlbum}[1]{\gdef\@fourthAlbum{#1}}
|
|
|
|
\newcommand*{\@fourthAlbum}{}
|
|
|
|
|
2017-09-21 15:24:38 +02:00
|
|
|
\newcommand*{\type}[1]{\gdef\@type{#1}}
|
|
|
|
\newcommand*{\@type}{}
|
|
|
|
\newcommand*{\field}[1]{\gdef\@field{#1}}
|
|
|
|
\newcommand*{\@field}{}
|
|
|
|
\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}}
|
|
|
|
\newcommand*{\@supervisor}{}
|
2017-09-23 13:07:53 +02:00
|
|
|
\newcommand*{\specialty}[1]{\gdef\@specialty{#1}}
|
|
|
|
\newcommand*{\@specialty}{}
|
|
|
|
\specialty{}
|
2021-03-01 09:57:48 +01:00
|
|
|
|
2017-09-25 14:22:59 +02:00
|
|
|
% Wydział
|
|
|
|
\newcommand*{\faculty}[1]{\gdef\@faculty{#1}}
|
|
|
|
\newcommand*{\@faculty}{}
|
|
|
|
\newcommand*{\facultyM}[1]{\gdef\@facultyM{#1}}
|
|
|
|
\newcommand*{\@facultyM}{}
|
|
|
|
\newcommand*{\facultyD}[1]{\gdef\@facultyD{#1}}
|
|
|
|
\newcommand*{\@facultyD}{}
|
|
|
|
|
|
|
|
\facultyM{\emph{[Zdefiniuj wydzia\l{}]}}
|
|
|
|
\facultyD{\emph{[Zdefiniuj wydzia\l{}]}}
|
|
|
|
|
|
|
|
\newcommand*{\setfaculty}{
|
|
|
|
% --- WA --- Wydział Anglistyki
|
|
|
|
\ifthenelse{\equal{\@faculty}{WA}}{
|
|
|
|
\facultyM{Wydzia\l{} Anglistyki}
|
|
|
|
\facultyD{Wydzia\l{}u Anglistyki}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WAiK --- Wydział Antropologii i Kulturoznawstwa
|
|
|
|
\ifthenelse{\equal{\@faculty}{WAiK}}{
|
|
|
|
\facultyM{Wydzia\l{} Antropologii i Kulturoznawstwa}
|
|
|
|
\facultyD{Wydzia\l{}u Antropologii i Kulturoznawstwa}
|
|
|
|
}{}
|
|
|
|
% --- WAr --- Wydział Archeologii
|
|
|
|
\ifthenelse{\equal{\@faculty}{WAr}}{
|
|
|
|
\facultyM{Wydzia\l{} Archeologii}
|
|
|
|
\facultyD{Wydzia\l{}u Archeologii}
|
|
|
|
}{}
|
2017-09-25 14:22:59 +02:00
|
|
|
% --- WB --- Wydział Biologii
|
|
|
|
\ifthenelse{\equal{\@faculty}{WB}}{
|
|
|
|
\facultyM{Wydzia\l{} Biologii}
|
|
|
|
\facultyD{Wydzia\l{}u Biologii}
|
|
|
|
}{}
|
|
|
|
% --- WCh --- Wydział Chemii
|
|
|
|
\ifthenelse{\equal{\@faculty}{WCh}}{
|
|
|
|
\facultyM{Wydzia\l{} Chemii}
|
|
|
|
\facultyD{Wydzia\l{}u Chemii}
|
|
|
|
}{}
|
|
|
|
% --- WFPiK --- Wydział Filologii Polskiej i Klasycznej
|
|
|
|
\ifthenelse{\equal{\@faculty}{WFPiK}}{
|
|
|
|
\facultyM{Wydzia\l{} Filologii Polskiej i~Klasycznej}
|
|
|
|
\facultyD{Wydzia\l{}u Filologii Polskiej i~Klasycznej}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WFi --- Wydział Filozoficzny
|
|
|
|
\ifthenelse{\equal{\@faculty}{WFi}}{
|
|
|
|
\facultyM{Wydzia\l{} Filozoficzny}
|
|
|
|
\facultyD{Wydzia\l{}u Filolozoficznego}
|
|
|
|
}{}
|
2017-09-25 14:22:59 +02:00
|
|
|
% --- WF --- Wydział Fizyki
|
|
|
|
\ifthenelse{\equal{\@faculty}{WF}}{
|
|
|
|
\facultyM{Wydzia\l{} Fizyki}
|
|
|
|
\facultyD{Wydzia\l{}u Fizyki}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WGSE --- Geografii Społeczno-Ekonomicznej i Gospodarki Przestrzennej
|
|
|
|
\ifthenelse{\equal{\@faculty}{WGSE}}{
|
|
|
|
\facultyM{Wydzia\l{} Geografii Spo\l{}eczno-Ekonomicznej i~Gospodarki Przestrzennej}
|
|
|
|
\facultyD{Wydzia\l{}u Geografii Spo\l{}eczno-Ekonomicznej i~Gospodarki Przestrzennej}
|
|
|
|
}{}
|
|
|
|
% --- WH --- Wydział Historii
|
2017-09-25 14:22:59 +02:00
|
|
|
\ifthenelse{\equal{\@faculty}{WH}}{
|
2021-03-01 10:15:00 +01:00
|
|
|
\facultyM{Wydzia\l{} Historii}
|
|
|
|
\facultyD{Wydzia\l{}u Historii}
|
2017-09-25 14:22:59 +02:00
|
|
|
}{}
|
|
|
|
% --- WMiI --- Wydział Matematyki i Informatyki
|
|
|
|
\ifthenelse{\equal{\@faculty}{WMiI}}{
|
|
|
|
\facultyM{Wydzia\l{} Matematyki i~Informatyki}
|
|
|
|
\facultyD{Wydzia\l{}u Matematyki i~Informatyki}
|
|
|
|
}{}
|
|
|
|
% --- WNGiG --- Wydział Nauk Geograficznych i Geologicznych
|
|
|
|
\ifthenelse{\equal{\@faculty}{WNGiG}}{
|
|
|
|
\facultyM{Wydzia\l{} Nauk Geograficznych i~Geologicznych}
|
|
|
|
\facultyD{Wydzia\l{}u Nauk Geograficznych i~Geologicznych}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WNoS --- Wydział Nauk o Sztuce
|
|
|
|
\ifthenelse{\equal{\@faculty}{WNoS}}{
|
|
|
|
\facultyM{Wydzia\l{} Nauk o~Sztuce}
|
|
|
|
\facultyD{Wydzia\l{}u Nauk o~Sztuce}
|
|
|
|
}{}
|
2017-09-25 14:22:59 +02:00
|
|
|
% --- WNPiD --- Wydział Nauk Politycznych i Dziennikarstwa
|
|
|
|
\ifthenelse{\equal{\@faculty}{WNPiD}}{
|
|
|
|
\facultyM{Wydzia\l{} Nauk Politycznych i~Dziennikarstwa}
|
|
|
|
\facultyD{Wydzia\l{}u Nauk Politycznych i~Dziennikarstwa}
|
|
|
|
}{}
|
|
|
|
% --- WN --- Wydział Neofilologii
|
|
|
|
\ifthenelse{\equal{\@faculty}{WN}}{
|
|
|
|
\facultyM{Wydzia\l{} Neofilologii}
|
|
|
|
\facultyD{Wydzia\l{}u Neofilologii}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WPiK --- Wydział Psychologii i Kognitywistyki
|
|
|
|
\ifthenelse{\equal{\@faculty}{WPiK}}{
|
|
|
|
\facultyM{Wydzia\l{} Psychologii i Kognitywistyki}
|
|
|
|
\facultyD{Wydzia\l{}u Psychologii i Kognitywistyki}
|
|
|
|
}{}
|
2017-09-25 14:22:59 +02:00
|
|
|
% --- WPAK --- Wydział Pedagogiczno-Artystyczny w Kaliszu
|
|
|
|
\ifthenelse{\equal{\@faculty}{WPAK}}{
|
|
|
|
\facultyM{Wydzia\l{} Pedagogiczno-Artystyczny w~Kaliszu}
|
|
|
|
\facultyD{Wydzia\l{}u Pedagogiczno-Artystycznego w~Kaliszu}
|
|
|
|
}{}
|
|
|
|
% --- WPiA --- Wydział Prawa i Administracji
|
|
|
|
\ifthenelse{\equal{\@faculty}{WPiA}}{
|
|
|
|
\facultyM{Wydzia\l{} Prawa i~Administracji}
|
|
|
|
\facultyD{Wydzia\l{}u Prawa i~Administracji}
|
|
|
|
}{}
|
2021-03-01 10:15:00 +01:00
|
|
|
% --- WS --- Wydział Socjologii
|
|
|
|
\ifthenelse{\equal{\@faculty}{WS}}{
|
|
|
|
\facultyM{Wydzia\l{} Socjologii}
|
|
|
|
\facultyD{Wydzia\l{}u Socjologii}
|
|
|
|
}{}
|
2017-09-25 14:22:59 +02:00
|
|
|
% --- WSE --- Wydział Studiów Edukacyjnych
|
|
|
|
\ifthenelse{\equal{\@faculty}{WSE}}{
|
|
|
|
\facultyM{Wydzia\l{} Studi\'ow Edukacyjnych}
|
|
|
|
\facultyD{Wydzia\l{}u Studi\'ow Edukacyjnych}
|
|
|
|
}{}
|
|
|
|
% --- WT --- Wydział Teologiczny
|
|
|
|
\ifthenelse{\equal{\@faculty}{WT}}{
|
|
|
|
\facultyM{Wydzia\l{} Teologiczny}
|
|
|
|
\facultyD{Wydzia\l{}u Teologicznego}
|
|
|
|
}{}
|
|
|
|
% --- IKE --- Instytut Kultury Europejskiej w Gnieźnie
|
|
|
|
\ifthenelse{\equal{\@faculty}{IKE}}{
|
|
|
|
\facultyM{Instytut Kultury Europejskiej w~Gnie\'znie}
|
|
|
|
\facultyD{Instytutu Kultury Europejskiej w~Gnie\'znie}
|
|
|
|
}{}
|
|
|
|
}
|
|
|
|
|
2017-09-21 15:24:38 +02:00
|
|
|
\if@optpolski
|
|
|
|
\title{\@titlePL}
|
|
|
|
\else
|
|
|
|
\title{\@titleEN}
|
|
|
|
\fi
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zdefiniuj polecenie '\maketitle'
|
2017-09-21 15:24:38 +02:00
|
|
|
\renewcommand*{\maketitle}{%
|
|
|
|
\clearpage\thispagestyle{empty}%
|
2017-09-25 14:22:59 +02:00
|
|
|
\setfaculty
|
2017-09-23 12:39:51 +02:00
|
|
|
\if@optlogo
|
|
|
|
{\noindent\centering%
|
|
|
|
\includegraphics[width=5cm]{uam-logo.pdf}\par}%
|
|
|
|
{\noindent\centering\normalfont%
|
2017-09-25 14:22:59 +02:00
|
|
|
\@facultyM
|
2017-09-23 12:39:51 +02:00
|
|
|
\strut\par}%
|
2021-03-01 10:13:19 +01:00
|
|
|
\vspace{1.5cm}
|
|
|
|
|
|
|
|
{\vspace{0.3cm}\noindent\centering\normalfont\@firstAuthor\strut\par
|
|
|
|
Numer albumu: \@firstAlbum\strut\par}%
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@secondAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@secondAuthor\strut\par
|
|
|
|
Numer albumu: \@secondAlbum\strut\par}
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@thirdAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@thirdAuthor\strut\par
|
|
|
|
Numer albumu: \@thirdAlbum\strut\par}
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@fourthAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@fourthAuthor\strut\par
|
|
|
|
\noindent Numer albumu: \@fourthAlbum\strut\par}
|
|
|
|
|
|
|
|
\vspace{1.8cm}
|
2017-09-23 12:39:51 +02:00
|
|
|
\else
|
|
|
|
{\noindent\centering\scshape\large%
|
|
|
|
Uniwersytet im. Adama Mickiewicza w Poznaniu%
|
|
|
|
\strut\par}%
|
|
|
|
{\noindent\centering\normalfont%
|
2017-09-25 14:22:59 +02:00
|
|
|
\@facultyM
|
2017-09-23 12:39:51 +02:00
|
|
|
\strut\par}%
|
|
|
|
\vspace{2.5cm}
|
2021-03-01 10:13:19 +01:00
|
|
|
|
|
|
|
{\vspace{0.3cm}\noindent\centering\normalfont\@firstAuthor\strut\par
|
|
|
|
Numer albumu: \@firstAlbum\strut\par}%
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@secondAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@secondAuthor\strut\par
|
|
|
|
Numer albumu: \@secondAlbum\strut\par}
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@thirdAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@thirdAuthor\strut\par
|
|
|
|
Numer albumu: \@thirdAlbum\strut\par}
|
|
|
|
|
|
|
|
\ifthenelse{\equal{\@fourthAuthor}{}}{}{
|
|
|
|
\vspace{0.3cm}\noindent\centering\normalfont\@fourthAuthor\strut\par
|
|
|
|
\noindent Numer albumu: \@fourthAlbum\strut\par}
|
|
|
|
|
|
|
|
\vspace{2.8cm}
|
2017-09-23 12:39:51 +02:00
|
|
|
\fi
|
2017-09-21 18:33:44 +02:00
|
|
|
% Uzależnij kolejność tytułów od wybranego języka
|
2017-09-21 15:24:38 +02:00
|
|
|
\if@optpolski
|
|
|
|
{\noindent\centering\Large\@titlePL\strut\par}%
|
|
|
|
{\noindent\centering\normalfont\@titleEN\strut\par}%
|
|
|
|
\else
|
|
|
|
{\noindent\centering\Large\@titleEN\strut\par}%
|
|
|
|
{\noindent\centering\normalfont\@titlePL\strut\par}%
|
|
|
|
\fi
|
|
|
|
\vfill
|
|
|
|
{\noindent\normalfont\centering{%
|
2017-09-23 13:07:53 +02:00
|
|
|
Praca \@type{} na kierunku {\bfseries\@field{}}\\
|
|
|
|
\ifthenelse{\equal{\@specialty}{}}{}{
|
|
|
|
(specjalno\'s\'c: \@specialty)\\
|
|
|
|
}
|
2017-09-22 11:20:04 +02:00
|
|
|
napisana pod opiek\k{a}\\
|
2017-09-21 15:24:38 +02:00
|
|
|
\bfseries{\@supervisor}%
|
|
|
|
}\strut\par}%
|
2017-09-23 12:39:51 +02:00
|
|
|
\vspace{2cm}%
|
2017-09-21 15:24:38 +02:00
|
|
|
{\noindent\centering\normalfont\@date\strut\par}
|
|
|
|
}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% ======================================================== %
|
|
|
|
% Oświadczenie %
|
|
|
|
% ======================================================== %
|
|
|
|
|
|
|
|
% Zdefiniuj parametry oświadczenia
|
2017-09-21 15:24:38 +02:00
|
|
|
\newif\if@stmale
|
2017-09-22 10:07:09 +02:00
|
|
|
\@stmaletrue
|
|
|
|
\newcommand*{\stsex}[1]{%
|
|
|
|
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaletrue}{\@stmalefalse}%
|
|
|
|
}
|
2017-09-21 15:24:38 +02:00
|
|
|
|
2021-03-01 10:13:19 +01:00
|
|
|
\newif\if@stmaleFirstAuthor
|
|
|
|
\@stmaleFirstAuthortrue
|
|
|
|
\newcommand*{\stsexFirstAuthor}[1]{%
|
|
|
|
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleFirstAuthortrue}{\@stmaleFirstAuthorfalse}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newif\if@stmaleSecondAuthor
|
|
|
|
\@stmaleSecondAuthortrue
|
|
|
|
\newcommand*{\stsexSecondAuthor}[1]{%
|
|
|
|
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleSecondAuthortrue}{\@stmaleSecondAuthorfalse}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newif\if@stmaleThirdAuthor
|
|
|
|
\@stmaleThirdAuthortrue
|
|
|
|
\newcommand*{\stsexThirdAuthor}[1]{%
|
|
|
|
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleThirdAuthortrue}{\@stmaleThirdAuthorfalse}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\newif\if@stmaleFourthAuthor
|
|
|
|
\@stmaleFourthAuthortrue
|
|
|
|
\newcommand*{\stsexFourthAuthor}[1]{%
|
|
|
|
\ifthenelse{\equal{\unexpanded{#1}}{M}}{\@stmaleFourthAuthortrue}{\@stmaleFourthAuthorfalse}%
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
\newcommand*{\stdate}[1]{\gdef\@stdate{#1}}
|
|
|
|
\newcommand*{\@stdate}{}
|
2017-09-21 15:24:38 +02:00
|
|
|
\newcommand*{\stread}[1]{\gdef\@stread{#1}}
|
|
|
|
\newcommand*{\@stread}{}
|
|
|
|
\newcommand*{\stprotect}[1]{\gdef\@stprotect{#1}}
|
|
|
|
\newcommand*{\@stprotect}{}
|
|
|
|
|
2017-09-21 18:33:44 +02:00
|
|
|
% Zdefiniuj polecenie '\makestatement'
|
2017-09-21 15:24:38 +02:00
|
|
|
\newcommand*{\makestatement}{%
|
2017-09-22 11:03:10 +02:00
|
|
|
\cleardoublepage\thispagestyle{empty}%
|
2017-09-25 14:22:59 +02:00
|
|
|
\setfaculty
|
2017-09-21 15:24:38 +02:00
|
|
|
{\noindent\normalfont\flushright{\@stdate{}}\strut\par}%
|
|
|
|
\vskip 2.5 \baselineskip
|
|
|
|
\vbox to 6 \baselineskip{%
|
|
|
|
\bgroup%
|
|
|
|
\fontsize{18pt |