\documentclass[10pt,twoside]{report}
\usepackage[a5paper,left=20mm,right=15mm,top=15mm,bottom=15mm, headsep=2mm]{geometry}
\usepackage{graphicx} % Required for inserting images
\usepackage{placeins} % ērti izmantot \FloatBarrier, lai neļauti attēliem aiziet pārāk tālu no vajadzīgās vietas.
\usepackage{titlesec} % izveido atstarpes starp chapter un section nosaukumu
\titlespacing*{\section} {0pt}{6pt}{6pt}
\titlespacing*{\subsection} {0pt}{5pt}{5pt}
\titlespacing*{\subsubsection} {0pt}{5pt}{5pt}
\titlespacing{\subsection} {0pt}{5pt}{5pt}
\titlespacing{\subsubsection} {0pt}{5pt}{5pt}
\titlespacing*{\chapter}{0pt}{0pt}{12pt}
\titlespacing{\chapter}{0pt}{0pt}{12pt}
\titlespacing{\section}{0pt}{6pt}{6pt}
\usepackage{titletoc}
\usepackage{titlesec}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
%\titlecontents{figure}[3em]{\addvspace{.1pc}}{\contentslabel{3em}}{} {\titlerule*[1pc]{.}\contentspage}
%\setlength\belowcaptionskip{-1pt plus 1.0pt minus 2.0pt}
%\setlength\abovecaptionskip{1pt plus 1.0pt minus 2.0pt}
%\setlength\textfloatsep{0pt plus 1.0pt minus 1.0pt}
\usepackage{enumitem} %for enumerate
\usepackage{polyglossia}
\setdefaultlanguage{english}
% matematikas paketes
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{bm}%ērts priekš treknraksta matemātiskajā vidē
\usepackage{esint}%integrāļu zīmes, kas nav parastajās ams paketēs
\usepackage[
backend=biber,
style=nature,
]{biblatex}
\addbibresource{bibliography.bib}
\newtheorem{theorem}{Theorem}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\usepackage{siunitx}%mērvienībām
% Algoritmu atspoguļošanai
\usepackage[ruled, vlined, linesnumbered, algochapter]{algorithm2e}
\usepackage[labelfont={bf}]{caption}%attēlu un tabulu nosaukumu fonts
\usepackage{hyperref}%Izveido spiežamus linkus saturam, bibliogrāfijām uc.
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=black,
linkcolor=black,
urlcolor=red
}
\usepackage{xcolor}
\newcommand*{\SavedEqref}{}%Dod krāsainus un spiežamus vienādojumu linkus
\let\SavedEqref\eqref
\renewcommand*{\eqref}[1]{%
\begingroup
\hypersetup{
linkcolor=blue,
linkbordercolor=black,
}%
\SavedEqref{#1}%
\endgroup
}%vienādojumiem
\usepackage{chngcntr} % attēlu, tabulu numurēšana
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\counterwithin{equation}{chapter}%vienadojumu numerācija veidojas pa nodaļām
\usepackage{caption}
\captionsetup[table]{name=Table}
\captionsetup[figure]{name=Figure}
\DeclareCaptionFormat{plain}{#1#2#3\par}
% Pakete izveido apzīmējumu sarakstu
\usepackage{nomencl}
\makenomenclature
\renewcommand{\nomname}{List of abbreviations}
\titleformat{\chapter}[block] % Formatē nodaļu virsrakstus
{\normalfont\fontsize{14}{14}\bfseries\centering}{\thechapter.}{5pt}{\MakeUppercase}{}
\titleformat{\section}
{\normalfont\fontsize{13}{13}\bfseries}{\thesection.}{5pt}{}
\titleformat{\subsection}
{\normalfont\fontsize{12}{12}\bfseries\itshape}{\thesubsection.}{5pt}{}
\titleformat{\subsubsection}
{\normalfont\bfseries\fontsize{10}{10}}{}{5pt}{}
%\usepackage{tocloft}
%% Table of contents formatting
%\renewcommand{\cfttoctitlefont}{\hspace*{\fill}\LARGE\bfseries}
%\renewcommand{\cftaftertoctitle}{\hspace*{\fill}}
%\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % for parts
%\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters
%\renewcommand{\cftchapdotsep}{\cftdotsep} % Give chapters dots too
%\renewcommand\cftchapafterpnum{\vskip -1pt} % for spacing after each entry in table of contents
%\setlength{\cftbeforetoctitleskip}{0in} % for spacing before table of contents
%\setlength\cftparskip{-1.5pt} % for spacing in table of contents
\begin{document}
\setmainfont{Times New Roman}
%%%--------- Titullapa ----------
\thispagestyle{empty}
\makeatletter
\begin{center}
\vspace*{1cm}
\includegraphics[width = 0.5\textwidth]{LU logo_graf_ENG_vert.pdf}\\ %ja ieliekat attēlu kādā mapē, tad jāsauc attēls no šīs mapes, citādi neparādīsies tas titullapā
\vspace{5mm}
{\large\MakeUppercase{Faculty of Science and Technology}\\
}
\vspace{10mm}
\LARGE{\textbf{Name Surname}}\\
\vspace{5mm}
\LARGE\MakeUppercase{{\textbf{Title of the Thesis}}}\\
\vspace{10mm}
\normalsize{Summary of the Doctoral Thesis}\\
\vspace{5mm}
\normalsize{Submitted for the degree of Doctor of xx}\\
\normalsize{Subfield of xx}
\vspace{20mm}
\normalsize{Riga, 20xx}\\
\end{center}
\newpage
%%%--------- Second page ----------
\thispagestyle{empty}
\noindent The Doctoral Thesis was developed at the [Name of Laboratory and/or Institute], the Department of Physics, Faculty of Science and Technology, the University of Latvia from 20xx to 20xx.\\
\noindent The Thesis contains an introduction, x chapters, a summary, key results and conclusions, a bibliography, supplemental information, and acknowledgments.\\
\noindent Form of the Thesis: a dissertation / a collection of articles/research papers in Physics and Astronomy, subfield of xx.\\
\noindent Scientific supervisor: \textit{Dr. Phys.} \textbf{Name Surname}, degree, scientific title, institution, and country.\\
\noindent Reviewers:
\begin{enumerate}
\item \textbf{Name Surname}, degree, scientific title, institution, and country (from UL/ Latvia)
\item \textbf{Name Surname}, degree, scientific title, institution, and country (from Latvia/ abroad)
\item \textbf{Name Surname}, degree, scientific title, institution, and country (from abroad)
\end{enumerate}
\vspace{10mm}
\noindent Defense of the Doctoral Thesis will take place at a public session of the Doctoral Committee of Physics, Astronomy and Mechanics of the University of Latvia on xx Month, 20xx at xx (date and time) at UL House of Science in Jelgava Street 3, Riga.\\
\noindent The Doctoral Thesis and its Summary are available at the Library of the University of Latvia, Kalpaka Blvd 4, Riga.
\vspace{15mm}
\noindent Chairman of the Doctoral Committee: \textbf{Name Surname}\\
\noindent Secretary of the Doctoral Committee: \textbf{Name Surname}
\newpage
%%%--------- Abstract ----------
\chapter*{Abstract}
\setlength{\parindent}{1cm}
Briefly describe the essence of the research problem, goals, and tasks, and explain the key results and findings. You may mention the number of peer-reviewed articles and conference abstracts the results have been published in. The abstract should be one page at maximum. The abstract should be the same as the one submitted to the Library.
\vspace{40mm}
\setlength{\parindent}{1cm}
\textbf{Keywords}: Here you may mention keywords. Keywords describe the topic of the work, the key results and methods.
%%%--------- Table of contents ----------
\tableofcontents
%%%--------- List of abbreviations ----------
\begin{center}
\chapter*{\MakeUppercase{\textbf{List of abbreviations}}}
\addcontentsline{toc}{chapter}{\textbf{List of abbreviations}}
\end{center}
All commonly used abbreviations throughout the Summary should be listed here. Although not mandatory, you may use alphabetical order.
\include{lietošanas pamācība}
\include{main-text}
\end{document}