\documentclass[12pt]{article}
% Essential Packages
\usepackage{setspace}
\usepackage{pdfpages}
\usepackage{newtxtext} % Times New Roman
\usepackage[a4paper, left=3.5cm, top=2.5cm, right=1.5cm, bottom=2.85cm, includefoot]{geometry} % Margins
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{tocbibind}
\usepackage{fancyhdr}
\usepackage[acronym]{glossaries}
\usepackage{url}
\usepackage{caption}
\usepackage{longtable}
\usepackage{enumitem} % for disabling the vertical space between list items
\setlist{noitemsep} % leave space around whole list
\usepackage[T1]{fontenc} % Formatting
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
% Optional packages
\usepackage{listings}% Code blocks with syntax highlighting:
\usepackage{hyperref} % PDF hyperlinks
\hypersetup{ % Set all link colours to black - clickable but inconspicuous
colorlinks = true,
citecolor = black,
linkcolor = black,
filecolor = black,
urlcolor = black
}
% Thesis metadata
\input{metadata.tex}
% Load lang mutations
\input{lang/english}
\input{lang/slovak}
\title{\thesistitle}
\author{\thesisauthor}
% Bachelor thesis info
\ifdefined\isBachelorThesis
\def\thesisHeader{\lnbachelorthesis}
\fi
% Master thesis info
\ifdefined\isMasterThesis
\def\thesisHeader{\lndiplomathesis}
\fi
% Bibliography configuration for STN ISO 690
% style = iso-authoryear, iso-numeric
% use \parencite{} or \textcite{} when using iso-authoryear
% use \cite{} when using iso-numeric
\usepackage[
style=iso-authoryear,
]{biblatex}
\addbibresource{essentials/bibliography.bib}
% Formatting commands
\onehalfspacing % 1.5 line spacing
%
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot{} % no numbering in the front matter
\renewcommand{\headrulewidth}{0pt}%
% Loading Acronyms
\makeglossaries
\loadglsentries{essentials/acronyms}
% Left align figure/table label
\captionsetup{
justification=raggedright,
singlelinecheck=false
}
% Default image options
\setkeys{Gin}{width=0.9\textwidth} % Set default image width to 90% of text width
\makeatletter
\g@addto@macro\@floatboxreset{\centering} % Centers all figures by default
\makeatother
% Exclude appendices from adding to list of figures and hide labels
\newenvironment{appendixfigure}
{\begin{figure}[h]
\renewcommand{\addcontentsline}[3]{}
\renewcommand{\caption}[1]{}}
{\end{figure}}
% Code styling (if using listings package)
\lstset{
basicstyle=\ttfamily\small, % Sets monospace font in small size
breaklines=true, % Enables automatic line breaking for long lines
showstringspaces=false, % Hides visible spaces in strings
keywordstyle=\color{blue}, % Makes keywords blue
commentstyle=\color{green!60!black}, % Makes comments dark green
stringstyle=\color{red}, % Makes strings red
backgroundcolor=\color{gray!10}, % Light gray background (10% gray)
frame=single, % Adds a single frame around the code
framesep=5pt % Space between frame and code
}
% Redefine listing caption name
\renewcommand{\lstlistingname}{\lnlistingname}
\renewcommand{\lstlistlistingname}{\lnlistlistingname}
% Document start
\begin{document}
% Essentials
\include{essentials/titlepage}
\include{essentials/titlepage-alt}
% Even the title pages should be accounted for - as seen in the doc template (Contents is on p.8).
\setcounter{page}{3}
%
% Replace file with your own:
\includepdf{essentials/assignment.pdf}
%
% Customize these files:
\include{essentials/acknowledgment}
\include{essentials/declaration}
\include{essentials/abstract}
% Print Table of Contents, List of Figures
\tableofcontents
\pagebreak
% set style
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{\thepage\hspace{0.4cm}} % restore numbering + ugly fix for geometry change
% Increase the right margin - as seen in the doc template
\newgeometry{left=3.5cm, top=2.5cm, right=2cm, bottom=3.85cm}
\listoffigures
\pagebreak
% Print Glossary
\glsaddall % Optional for printing all acronyms, even if not used but (TODO:) adds a weird vertical space.
\addcontentsline{toc}{section}{\lnlistabbr}
\printglossary[type=\acronymtype,title={\lnlistabbr}]
%%%%%%% DOCUMENT BODY %%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{\lnintro} % Introduction is unnumbered! For numbered chapters see examples.tex
\addcontentsline{toc}{section}{\lnintro}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eu lacus leo. Nulla egestas purus non dignissim tincidunt. In sit amet tellus bibendum, lobortis magna ut, sodales mi. Etiam vel eros efficitur purus ultrices vulputate et quis justo. Nunc ultrices tellus a dui mattis, eget laoreet arcu tempor. Donec vestibulum, magna ac fringilla lacinia, libero risus fringilla arcu, nec consectetur nibh justo vel sem. Quisque gravida sit amet elit ut aliquam...\par
\vspace{1em}
\noindent
V prvej kapitole je popísaný súčasný stav riešenia problematiky. Popísaná je konštrukcia takého systému, ktorý ....
\noindent
V druhej kapitole prezentujeme návrh systému ...
\noindent
V tretej kapitole sme sa zaoberali popisom implementácie systému...
% Examples:
\include{examples/examples}
\section*{\lnconclusion} % Conclusion is unnumbered!
\addcontentsline{toc}{section}{\lnconclusion}
Nezabudnite na Záver a zhodnotenie.\\
Cieľ bakalárskej práce bol splnený.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
\newpage
\printbibliography[title={\lnbibliography}]
\addcontentsline{toc}{section}{\lnbibliography}
% Appendices
\include{essentials/appendices}
\end{document}

PDF Preview
Create an account to compile and preview