% Available parameters:
%
% Predefined \degree and \docname:
% - bachelor 
% - masters
%
% Other:
% - assignment - Will load assignment.pdf as the second page. Otherwise the page will remain empty
% - signature - Will load signature.png and put it as signature to the statement.
% - hideSecondAbstract - Hides second abstract even if it's defined.
%
\documentclass[]{Thesis}


\Title{Title of the Document}
\Author{prof. Dipl-Ing. George Cabir, M.Sc., Ph.D.}
\AuthorEmail{george@cabir.com}
\School{Name of the School}
\Department{Name of the Institute or Department}
\StudyType{Type of Studies}
\Place{City} \Month{July} \Year{2011}
\Advisor{List of Advisers}

\Abstract{The abstract is a summary of the thesis/dissertation with emphasis on the findings of the study. The abstract must not exceed 350 words in length and fit on one page, single spaced.}
\AbstractTwoTitle{SECOND ABSTRACT}
\AbstractTwo{The abstract is a summary of the thesis/dissertation with emphasis on the findings of the study. The abstract must not exceed 350 words in length and fit on one page, single spaced. The usage of second abstract is when the bureaucracy on the institution requires to have the abstract on more than one language.}

\Keywords{A comma-separated list of descriptive words for search purposes}

\Support{This should contain 1 to 3 short paragraphs about institutions, grands and companies, which supported the research or thesis. If this is not defined, the page will not be included.}

\Acknowledgments{Acknowledgements should be simple, in good taste, and fit on one page.  If this is not defined, the page will not be included.}

%%%%%%%%%%%%%%%%%
% A B B R E V S %
%%%%%%%%%%%%%%%%%
\newabbrev\DHCP{Dynamic Host Configuration Protocol (DHCP)}[DHCP]
\newabbrev\FTP{File Transfer Protocol (FTP)}[FTP]
\newabbrev\GPS{Global Positioning System (GPS)}[GPS]
\newabbrev\HTTP{Hypertext Transfer Protocol (HTTP)}[HTTP]
\newabbrev\LAN{Local Area Network (LAN)}[LAN]
\newabbrev\NAS{Network Attached Storage (NAS)}[NAS]
\newabbrev\XML{Extensible Markup Language (XML)}[XML]

\begin{document}

  \makepreliminarypages

\cleardoublepage

  \part{The Template}{Every part can also include an description. In this part some additional  commands will be described.} \label{part:one}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                              %
%                  I N T R O D U C T I O N                     %
%                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \section{Introduction} \label{sec:Introduction}
     
      The purpose of this document is to document the abilities of the \emph{Thesis.cls} template and also to have a sample document using this class. 
     
	  The template defines a set of preliminary pages:
	  
	    \begin{description*}
	    	\item[Title] is the first page. I is numbered as preliminary page one but the page number is hidden. The footnote symbols are special and the footnote color is set to gray.
	    	\item[Assignment] is a page with the (official) assignment of the work. This page can be defined in two ways. First, by the parameter \emph{assignmen}\footnote{Parameter \emph{assignment} is described in \autoref{tab:TemplateOptions}.}. Second, by the command \emph{Assignment}\footnote{Command \emph{Assignment} is described in \autoref{tab:DocumentDefinitionCommands}.}.
	    	\item[Support] is a page about institutions, grands and companies, which supported the research or thesis. If this is not defined, the page will not be included.
	    	\item[Acknowledgement] is simple, in good taste, and fit on one page. If this is not defined, the page will not be included.
	    	\item[Statement] is defined by default and can be overwritten using \emph{Statement}\footnote{Command \emph{Statement} is described in \autoref{tab:DocumentDefinitionCommands}.} command.
	    	\item[Abstract] is a summary of the thesis/dissertation with emphasis on the findings of the study. Up to two abstracts can be defined in the case of bi-lingual abstract need\footnote{See \emph{Abstract}, \emph{AbstractTwo} and \emph{AbstractTwoTitle} commands in \autoref{tab:DocumentDefinitionCommands}.}.
	    	
	    \end{description*}
      
      In this section template specific command and options will be introduced. There are two main groups of commands: \emph{Document Definition} commands and \emph{In Document} commands. Lets have a closer look on them.


      \subsection{Template Options} 
        
        The template options are described in \autoref{tab:TemplateOptions}.
      
      \subsection{Document Definition Commands}
      
		This type of commands are used to define the preliminary pages and some other document properties. The list and description of the commands can be seen in \autoref{tab:DocumentDefinitionCommands}.
		
\pagebreak[4]
		
      \subsection{In Document Commands}
      
        The template also defines a set of cool commands which can be used directly in the document. A list of those commands can be seen in \autoref{tab:InDocumentCommands}.
    
      \subsection{Special Environments}
      
        The template defines special environments for lists (i.e. description, enumerate and itemize). By putting a star after the environment name it will make the list less space consuming.
        
\newpage

      	\begin{table}[placement=h]
      		\begin{center}
      		  \begin{tabular}{lp{8cm}}
      		    \hline
      		    \textbf{Option} & \textbf{Description} \\
      		    \hline
      		    assignment & Will load \emph{assignment.pdf} file and put it after the title page. \\
      		    bachelor   & Will define the \emph{degree}\footnotemark[1] as ``Bachelor of Science'' and the \emph{docname}\footnotemark[2] as ``Bachelor's Thesis''.\\
      		    hideSecondAbstract & Will hide the second abstract even if it is defined. \\
      		    masters    & Will define the \emph{degree}\footnotemark[1] as ``Master of Science'' and the \emph{docname}\footnotemark[2] as ``Master's Thesis''.\\
      		    signature  & Will load \emph{signature.png} file and put is as a signature in the statement page.\\
      		    
      		  \end{tabular}
      		\end{center}
      		\caption{Template Options}
      		\label{tab:TemplateOptions}
      	\end{table}

		\footnotetext[1]{See the command \emph{degree} in \autoref{tab:DocumentDefinitionCommands}.}
		\footnotetext[2]{See the command \emph{docname} in \autoref{tab:DocumentDefinitionCommands}.}
		
\newpage
		
		\begin{table}[placement=h]
			\begin{center}
				\begin{tabular}{lp{7cm}}
					\hline
					\textbf{Command}        & \textbf{Description} \\
					\hline
                    Abstract\{\#1\}         & Abstract of the document. \\
                    AbstractTwo\{\#1\}      & Second abstract\footnotemark[1] \\
                    AbstractTwoTitle\{\#1\} & Title of the second abstract. \\
                    Acknowledgments\{\#1\}  & Content of the acknowledgement page. \\
                    Advisor\{\#1\}          & Specifies a list of advisers of the thesis. \\
                    Assignment\{\#1\}       & Content of the assignment page. See also \emph{assignment} option.\\
                    Author\{\#1\}           & Defines the author of the document. \\
                    AuthorEmail\{\#1\}      & Defines the author's email address. \\
                    Branch\{\#1\}           & Branch of the work. \\
                    Department\{\#1\}       & Name of the department or institute the thesis is mafe on. \\
                    degree\{\#1\}           & Defines the name of the grade which will be earned. \\
                    docname\{\#1\}          & Defines the name of the document (e.g. Bachelor's Thesis, Master's Thesis, ...) \\
                    Keywords\{\#1\}         & Keywords of the document.\\
                    Month\{\#1\}            & The month when the work was/will be defended. \\
                    Place\{\#1\}            & Place the thesis was written. \\
                    School\{\#1\}           & Name of the school the thesis is made on.\\
                    Statement\{\#1\}        & Content of the statement page. This page is generated automatically by default. \\
                    StatementContent\{\#1\} & Content of the statement without the signature.\\
                    Support\{\#1\}          & Content of the support page. \\
                    StudyType\{\#1\}        & Type of studies. \\
                    Title\{\#1\}            & Defines the title of the document. \\
                    Year\{\#1\}             & The year when the work was/will be defended. \\
				\end{tabular}
			\end{center}
			\caption{List of \emph{Document Definition} Commands}
			\label{tab:DocumentDefinitionCommands}
		\end{table}
		
		\footnotetext[1]{The usage of second abstract is when the bureaucracy on the institution requires to have the abstract on more than one language.}
      
\newpage

		\begin{table}[placement=h]
			\begin{center}
				\begin{tabular}{lp{7cm}}
					\hline
					\textbf{Command}        & \textbf{Description} \\
					\hline
					autoref\{\#1\}          & Generates a cross-reference to the label defined in the parameter. \\
					listoftodos             & Will generate the list of todos. \\
					makepreliminarypages    & Inserts all the preliminary pages. \\
					nopageautoref\{\#1\}    & Generates a cross-reference to the label defined in the parameter without mentioning the page. \\
					part\{\#2\}             & Defines a part of the document. The first parameter is the name of the part and the second is the description. \\
					product\{\#1\}          & Formatting of a product name. \\
					setFoot                 & Will display footer on the current and following pages. \\
					setHead                 & Will display header on the current and following pages. \\
					thesisVersion           & Puts a version and compilation date in the footer. This should be used in the title page. \\
					todo\{\#1\}             & Puts a TODO in the todo list. \\
					unsetFoot               & Will hide footer on the current and following pages. \\
					unsetHead               & Will hide header on the current and following pages. \\
					vendor\{\#1\}           & Formatting of a vendor name. \\
				\end{tabular}
			\end{center}
			\caption{tab:List of \emph{In Document} Commands}
			\label{tab:InDocumentCommands}		
		\end{table}
\newpage

\cleardoublepage
\unsetHead

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               
%                                                              %
%                     R E F E R E N C E S                      %
%                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               

    \section{References}
      \bibliographystyle{plain}
      \bibliography{reference}


\cleardoublepage
\appendix

\cleardoublepage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               
%                                                              %
%                L I S T   O F   F I G U R E S                 %
%                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               

    \section{List of Figures}
      \listoffigures

\clearpage

    \section{List of Tables}
      \listoftables

\cleardoublepage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               
%                                                              %
%          L I S T   O F   A B B R E V I A T I O N S           %
%                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               

    \section{List of Abbreviations}
      \begin{tabular}{ll}
        DHCP   &  Dynamic Host Configuration Protocol \\
        FTP    &   File Transfer Protocol\\
        GPS    &  Global Positioning System \\
        HTTP   &  Hypertext Transfer Protocol \\
        LAN    &  Local Area Network \\
        NAS    &  Network Attached Storage \\
        XML    &  Extensible Markup Language \\
      \end{tabular}

\cleardoublepage
\par\renewcommand{\baselinestretch}{0.9}\small\normalsize\par
  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               
%                                                              %
%               C U R R I C U L U M   V I T A E                %
%                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                               

    \section{Curriculum Vitae}
      \huge Jan Kubov\'y \normalsize
  
      \subsection*{Personal Information}
        \begin{tabular}{ll}
          Date of birth:          & December 12, 1984 \\
          Nationality:            & Czech \\
          Gender:                 & Male \\
                                  & \\
          Phone:                  & (+420) 732 841 225 \\
          Email:                  & \href{mailto:jan@kubovy.eu}{jan@kubovy.eu} \\
          Homepage:               & \url{http://www.linkedin.com/in/kubovy} \\
        \end{tabular}

      \subsection*{Education}
        \paragraph*{Johannes Kepler University in Linz} ~\\
          M.Sc., Software Engineering, Computer Science, 2010 - 2011 (expected)\\
          Institute for Application Oriented Knowledge Processing (FAW)\\
          International Studies in Informatics    
        
        \paragraph*{Czech Technical University in Prague} ~\\
          Ing. (eq. to M.Sc.), Computer Science, Cybernetics, 2009 - 2011 (expected)\\
          Open Informatics\\
          Faculty of Electrical Engineering

        \paragraph*{Czech Technical University in Prague} ~\\
          Bc., Computer Science, Electrical Engineering, 2005 - 2009\\
          Electrical Engineering and Communication Engineering\\
          Faculty of Electrical Engineering

      \subsection*{Honours, Awards \& Scholarships}
        \paragraph*{Student Mobility Scholarship} 2010-2011~\\
          Faculty of Electrical Engineering, Czech Technical University in Prague\\
          Support for Double-Degree Programme
      
        \paragraph*{Merit Scholarship (awarded 2 times)} 2009-2010, 2010-2011~\\
          Faculty of Electrical Engineering, Czech Technical University in Prague \\
          Open Informatics

        \paragraph*{Google Developer Competition Winner} 2010~\\
          Faculty of Electrical Engineering, Czech Technical University in Prague\\
          Open Informatics

\cleardoublepage
\unsetHead
\unsetFoot
    \listoftodos
~

\end{document}
