%
% Tallinn University of Technology - bachelor, master thesis Éstonian template for LaTeX
%
%
% Public veresion 1.3
% 2023 translated main parts to Estonian (by Ago Luberg)
%
% Public version 1.2
% 2022 Updated by Karl Janson to match the new formatting guidelines
%
% Public Version 1.1
% 2019 Adjusted by Frank Korving for his Bachelor Thesis, with contributions from Sander Arnus
%
% Public version 1.0
% 2010 - 2013 Thijs Nugteren and Joos Buijs for Master Thesis
%
% THIS IS THE MAIN FILE (i.e. compile this file, compiling the others directly won't work)
%
\documentclass[12pt, a4paper]{report}
% all the other includes etc. are done in the thesis.sty file.
\usepackage{thesis}
\usepackage{ifthen}
\usepackage{datetime}
\renewcommand{\dateseparator}{.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NOTE: %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% * Content chapter files are located in "chapters" folder, %
% included using the "chapters_main.tex" file %
% %
% * Appendices are located in "appendices" folder, %
% included using the "appendices_main.tex" file %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The commands below need to be defined. %
% Estonian title page will be generated automatically %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\doctitleEng}{[Thesis Title]}
\newcommand{\doctitleEst}{[Lõputöö pealkiri]} % Title in Estonian
% Choose one
\newcommand{\doctype}{[Bachelor's Thesis / Master's Thesis]}
% Thesis author
\newcommand{\authorName}{[Author name]}
\newcommand{\studentcode}{[Student Code]}
% Second author; not shown if empty
\newcommand{\authorNameTwo}{}
\newcommand{\studentcodeTwo}{}
% Third author; not shown if empty
\newcommand{\authorNameThree}{}
\newcommand{\studentcodeThree}{}
% Main supervisor
\newcommand{\supervisor}{[Supervisor's Name]}
\newcommand{\supervisortitle}{[Academic degree]}
% Co-supervisor. If you have only one supervisor, leave it as it is
\newcommand{\cosupervisor}{[Co-Supervisor's Name]}
\newcommand{\cosupervisortitle}{[Academic degree]}
% Dates. Default to current current date.
% You can hard code a value by replacing the parameter with a text
% Year of publication (defaults to current year).
\newcommand{\Year}{\the\year{}}
% Signature date (defaults to today).
\newcommand{\signatureDate}{\ddmmyyyydate\today}
% PDF Metadata
\newcommand{\version}{0.1 version}
\newcommand{\keywords}{Important, comma, separated, keywords, applicable, to, your, thesis}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DO NOT EDIT BELOW THIS LINE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\university}{TALLINN UNIVERSITY OF TECHNOLOGY}
\newcommand{\school}{School of Information Technologies}
\newcommand{\universityEst}{TALLINNA TEHNIKAÜLIKOOL}
\newcommand{\schoolEst}{Infotehnoloogia teaduskond}
% For Estonian title page generation
\newcommand{\meEst}[1]
{
\ifthenelse{\equal{#1}{[Author name]}}{[Ees- ja perenimi]}{\authorName}
}
\newcommand{\studentcodeEst}[1]
{
\ifthenelse{\equal{#1}{[Student Code]}}{[Üliõpilaskood]}{\studentcode}
}
\newcommand{\doctypeEst}[1]
{
\ifthenelse{\equal{#1}{[Bachelor's Thesis / Master's Thesis]}}{[Bakalaureusetöö / Magistritöö]}{}
\ifthenelse{\equal{#1}{Bachelor's Thesis}}{Bakalaureusetöö}{}
\ifthenelse{\equal{#1}{Master's Thesis}}{Magistritöö}{}
}
\newcommand{\supervisorEst}[1]
{
\ifthenelse{\equal{#1}{[Supervisor's Name]}}{[Juhendaja nimi]}{\supervisor}
}
\newcommand{\supervisortitleEst}[1]
{
\ifthenelse{\equal{#1}{[Academic degree]}}{[Teaduskraad]}{\supervisortitle}
}
%
% PDF settings
%
\hypersetup
{
pdfauthor={\authorName},
pdfsubject={\doctitleEst},
pdfkeywords={\keywords}
}
\begin{document}
% Pages like title, auhtor's declaration, etc.
\input{misc/misc_main}
% Content chapters
\input{chapters/chapters_main.tex}
\pagebreak
\phantomsection
\addcontentsline{toc}{chapter}{Kasutatud kirjandus}
\printbibliography[title=Kasutatud kirjandus]
\pagebreak
\phantomsection
\appendix
% \addcontentsline{toc}{chapter}{Appendices}
% \chapter*{Appendices}
\renewcommand{\thechapter}{\arabic{chapter}}
% License
\newcommand{\licenseFootnote}{Lihtlitsents ei kehti juurdepääsupiirangu kehtivuse ajal vastavalt üliõpilase taotlusele lõputööle juurdepääsupiirangu kehtestamiseks, mis on allkirjastatud teaduskonna dekaani poolt, välja arvatud ülikooli õigus lõputööd reprodutseerida üksnes säilitamise eesmärgil. Kui lõputöö on loonud kaks või enam isikut oma ühise loomingulise tegevusega ning lõputöö kaas- või ühisautor(id) ei ole andnud lõputööd kaitsvale üliõpilasele kindlaksmääratud tähtajaks nõusolekut lõputöö reprodutseerimiseks ja avalikustamiseks vastavalt lihtlitsentsi punktidele 1.1. ja 1.2, siis lihtlitsents nimetatud tähtaja jooksul ei kehti.}
\addcontentsline{toc}{chapter}{Lisa 1 -- Lihtlitsents lõputöö reprodutseerimiseks ja lõputöö üldsusele kättesaadavaks tegemiseks}\label{chapter:license}
{\let\clearpage\relax\chapter*{Lisa 1 -- Lihtlitsents lõputöö reprodutseerimiseks ja lõputöö üldsusele kättesaadavaks tegemiseks\footnote{\licenseFootnote}}}
\input{misc/license.tex}
% Other appendices
\input{appendices/appendices_main.tex}
\end{document}