%Roko Skaisgirio disertacijos sablonas
%Pratrintas ir pamazintas by Karolina Maleckaite

\documentclass[fontsize=11pt, twoside]{report} %new format

% VU B5 is actually 24x17 cm
\usepackage[paperheight=24cm,paperwidth=17cm, top=1.5cm, bottom=2cm, left=2.5cm, right=2.5cm]{geometry}  % set the margins to 1in on all sides new format
\usepackage{graphicx}              % to include figures
\graphicspath{ {./figures_PDF/} }  % Include figures path
\usepackage{dblfloatfix}    % To enable figures at the bottom of page
\usepackage{xcolor}
\usepackage{transparent}
\usepackage[labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{amsmath}               % great math stuff
\usepackage{amssymb}                % slant symbols
\usepackage{amsthm}                % better theorem environments
\usepackage{pifont}
\usepackage{gensymb}
\usepackage{makecell} % package for making cells in tables
\renewcommand\cellalign{cl} % lentelės nustatatymai
\renewcommand{\theadalign}{cc}
\usepackage{array,booktabs,calc}
%\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
%\usepackage{fixltx2e} % Not required with releases after 2015 as included in kernel
\DeclareMathOperator{\id}{id}




% Latest modifications by Nail Garejev in 2019, 
% Based on template by Akvilė Zabiliūtė-Karaliūnė


\usepackage{afterpage}
\usepackage{alltt}
\usepackage[utf8]{inputenc}
\usepackage[L7x]{fontenc} %  If using XeLaTeX or LuaLaTeX disable this
\usepackage[english]{babel}
%\usepackage[T1]{fontenc}
%\usepackage{pslatex}	
\usepackage{float}
\usepackage{textgreek} % Allows to use greek letters in text

%\usepackage{nameref}


\usepackage[version=3]{mhchem}
\usepackage{multirow}
\usepackage{amsfonts}
\usepackage{lmodern}		%šito reikia typewriter ir kitiem šriftam
\usepackage{graphics}
%\usepackage{subfig}
\usepackage[hypertexnames=false]{hyperref}
\hypersetup{
    colorlinks,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=black,%
    urlcolor=black,
    bookmarksdepth=3,
    bookmarksopenlevel=3,
    pdfauthor={Rokas Skaisgiris},
    pdfsubject={Doctoral Thesis},
    pdftitle={Optimization of donor-acceptor based Thermally Activated Delayed Fluorescence emitters},
    pdfkeywords={TADF, OLED, conformational disorder, rISC, dual emission, deep-blue TADF}
}
\usepackage{bookmark}

\usepackage{tocbibind}
\settocname{CONTENTS}
\settocbibname{BIBLIOGRAPHY}
\usepackage{textcomp} % for \textrightarrow in bibliography

\usepackage{soul}
\usepackage{color}

\DeclareRobustCommand{\hlwhite}[1]{{\sethlcolor{white}\hl{#1}}}


%	standard font size
%command 		10pt 	11pt 	12pt
%\tiny 			5pt 	6pt 	6pt
%\scriptsize 	7pt 	8pt 	8pt
%\footnotesize 	8pt 	9pt 	10pt
%\small 		9pt 	10pt 	11pt
%\normalsize 	10pt 	11pt 	12pt
%\large 		12pt 	12pt 	14pt
%\Large 		14pt 	14pt 	17pt
%\LARGE 		17pt 	17pt 	20pt
%\huge 			20pt 	20pt 	25pt
%\Huge 			25pt 	25pt 	25pt

% with 11pt main, large is 12 pt

\usepackage{titlesec} % pakeisti skyrių antraščių stilių
\titleformat{\chapter}[block]
{\normalfont\large\centering}{\thechapter.}{0.5em}{\large}
\titleformat{\section}[block]
{\normalfont\normalsize\centering}{\thesection.}{0.5em}{\normalsize}
\titleformat{\subsection}[block]
{\normalfont\normalsize\centering}{\thesubsection.}{0.5em}{\normalsize}
\titlespacing*{\chapter}{0pt}{0pt}{12pt} % galima pasikoreguoti skyriaus pavadinimo atstumą nuo paraščių



\usepackage{fancyhdr}  %Visi puslapio formatavimo įrankiai. Čia nustatyta taip, kad puslapius numeruotų centre
\pagestyle{fancy}
\fancypagestyle{plain}{ %
	%\fancyhf{} % remove everything
	\renewcommand{\headrulewidth}{0pt} % remove lines as well
	\renewcommand{\footrulewidth}{0pt}
}
\footskip = 20 pt
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{} 

\makeatletter

\newcommand\frontmatter{%
	\cleardoublepage
	%\@mainmatterfalse
	\pagenumbering{roman}}

\newcommand\mainmatter{%
	\cleardoublepage
	% \@mainmattertrue
	\pagenumbering{arabic}}

\newcommand\backmatter{%
	\if@openright
	\cleardoublepage
	\else
	\clearpage
	\fi
	% \@mainmatterfalse
}

\makeatother

\usepackage[final]{pdfpages}
\usepackage[load=addn]{siunitx}
\usepackage{xstring}
\usepackage{xparse}
%\usepackage{biblatex}	
\usepackage{cite}
\usepackage{placeins}
\usepackage{epstopdf}
%\usepackage{indentfirst} % To always indent
\usepackage{derivative} % For wirting derivatives in formulas
\usepackage{physics}  % for \dd and other stuff



% Align environment with one reference at center
\newenvironment{nalign}[1]{
    \begin{equation} \label{#1}
    \begin{aligned}
}{
    \end{aligned} 
    \end{equation}
    \ignorespacesafterend
}


%\pdfimageresolution = 1200

\sisetup{detect-weight=true, detect-family=true}

\usepackage{setspace}
%\onehalfspace % old format
\setstretch{1.15} % new format%

\usepackage[titles]{tocloft}
\setlength{\cftbeforechapskip}{3pt}



\newcommand{\rom}[1]{\uppercase\expandafter{\romannumeral #1\relax}}


% Macro for numbering the papers
\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\papernum}{m}
{
	\str_case:nn{#1}
	{
		% convinient to reuse BibTEX IDs
		{EmWL}{1}%		
		{Sigma}{2}%
		{Minimiz}{3}%
		{PXAPYR}{4}%
		{DeepBlue}{5}%
		{Cbz}{6}%
		
		% you can add more cases here as desired
	}
}
\ExplSyntaxOff		



\newcommand{\paperfancynum}[1]{%
	\hyperlink{#1}{A\papernum{#1}}
}%


\NewDocumentCommand{\citepapers}{>{\SplitArgument{2}{,}}m}{%
	\finalcitepapers#1%
}

\NewDocumentCommand{\finalcitepapers}{mmm}{%
	%	\lim_{#1\rightarrow #2\IfValueT{#3}{^{#3}}}%
	\IfValueTF{#3}
	{
		[Papers~\paperfancynum{#1}\unskip, \paperfancynum{#2}and \paperfancynum{#3}\unskip]
	}
	{
		\IfValueTF{#2}
		{
			[Papers~\paperfancynum{#1}and \paperfancynum{#2}\unskip]
		}
		{
			[Paper~\paperfancynum{#1}\unskip]
		}
	}
	
}


\newcommand{\citepapernumONE}[1]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip]}}\unskip
}

\newcommand{\citepapernumTWO}[2]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip]}}\unskip
}

\newcommand{\citepapernumTHREE}[3]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip]}}\unskip
}
\newcommand{\citepapernumFOUR}[4]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip, \paperfancynum{#4}\unskip]}}\unskip
}
\newcommand{\citepapernumFIVE}[5]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip, \paperfancynum{#4}\unskip, \paperfancynum{#5}\unskip]}}\unskip
}
\newcommand{\citepapernumSIX}[6]{
	\unskip\mbox{\textbf{\unskip[\unskip\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip, \paperfancynum{#4}\unskip, \paperfancynum{#5}\unskip, \paperfancynum{#6}\unskip]}}\unskip
}

\NewDocumentCommand{\citepapernums}{>{\SplitArgument{3}{,}}m}{%
	\mbox{\textbf{\finalcitepapernums#1}}
}

\NewDocumentCommand{\finalcitepapernums}{mmmm}{%
	%	\lim_{#1\rightarrow #2\IfValueT{#3}{^{#3}}}%
    	\IfValueTF{#4}
    	{
    		\unskip[\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip, \paperfancynum{#4}\unskip]
    	}
    	{
    		\IfValueTF{#3}
    		{
    			\unskip[\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip, \paperfancynum{#3}\unskip]
    		}
    		{
    			\IfValueTF{#2}
    			{
    				\unskip[\paperfancynum{#1}\unskip, \paperfancynum{#2}\unskip]
    			}
    			{
    				\unskip\unskip\unskip[\paperfancynum{#1}\unskip] 
    			}
    		}
    	}
	
}




% Generate nice paper title page
\newcommand{\paperpage}[9]
{
	
	
	\newpage
	\section*{}
	%\addcontentsline{toc}{section}{#2}
	\vspace*{40mm}
	
	\begin{spacing}{1.4}
		{\centering
			
			\phantomsection
			\pdfbookmark[1]{A\papernum{#1}}{#1} % Number
			
			\hypertarget{#1}{{\LARGE \paperfancynum{#1}}}
			
			\vspace{10mm}
			\begin{spacing}{2}{
			{ \LARGE #2 }  % Name
			% \MakeUppercase
			}\end{spacing}
			
			\vspace{14mm}
			
			{\large #3}   % Authors
			
			\vspace{14mm}
			
			{ #4}	% Journal
			
			%\medskip
			
			{ DOI:~#5}	% DOI
			
			%\smallskip{}
			
			\url {#6}  % Link
			
			\vspace{14mm}
			\vfill{}
			{#7} % Permissions
			
			{#8} % Copyright
			
			\vspace{8mm}
			% Link to supporting information
			{\scalebox{0.7}{\normalsize Supporting information:   \url{#9}}}
			
	
		}
		
	\end{spacing}

}

% Reference equation
\newcommand{\req}[1]
{(\ref{#1})}


\newcommand{\paperlineref}[4]
{
	\hyperlink{#1}{#3, #2, #4}.
}

\newcommand{\paperline}[4]
{
	{#3, #2, #4}.
}

\setlength{\cftsecindent}{0pt}% Remove indent for \section
\setlength{\cftsubsecindent}{0pt}% Remove indent for \subsection
\setlength{\cftsubsubsecindent}{0pt}% Remove indent for \subsubsection

\renewcommand\cftchapfont{\mdseries}
\renewcommand\cftchappagefont{\mdseries}

\addto\captionsenglish{% Replace "english" with the language you use
	\renewcommand{\contentsname}%
	{CONTENTS}%
}
%\renewcommand{\contentsname}{CONTENTS}

\newcommand{\umcb}{\si{\micro\metre}}
\newcommand{\uJcb}{\si{\micro\joule}}
\newcommand{\TWcmc}{TW/cm$\mathrm{^2}$}

\newcommand{\CaFF}{\texorpdfstring{C\lowercase{a}F$_{2}$}{CaF2}}
\newcommand{\umc}{\texorpdfstring{\umcb}{um}}
\newcommand{\uJc}{\texorpdfstring{\uJcb}{uJ}}

\newcommand{\OPLT}{{\glqq}O{\grqq}}
\newcommand{\XPLT}{{\glqq}X{\grqq}}

\newcommand{\etal}{\textit{et al}. }
\newcommand{\ie}{\textit{i}.\textit{e}., }
\newcommand{\eg}{\textit{e}.\textit{g}. }
\newcommand*{\vs}{\textit{vs}. }

\newcommand*{\tu}[1]{$\tau\sub{#1}$}


\newcommand*\sub[1]{_{\textnormal{#1}}}  % Sub script not italized
\newcommand*\spp[1]{^{\textnormal{#1}}}  % Sub script not italized
\newcommand*\ts[1]{\textsuperscript{#1}}    % Text superscript shorter version
\newcommand*\tb[1]{\textsubscript{#1}}
\newcommand*\QY[1]{$\Phi_{\textnormal{#1}}$}

\newcommand{\krISC}{$k\sub{rISC}$}
\newcommand*{\kr}[1]{$k\sub{#1}$}
\newcommand{\dEst}{$\Delta E\sub{ST}$}
\newcommand{\SCT}{\ce{^1CT}}
\newcommand{\SLE}{\ce{^1LE}}
\newcommand{\TCT}{\ce{^3CT}}
\newcommand{\TLE}{\ce{^3LE}}

\newcommand{\CzPN}{\textbf{4CzPN}}
\newcommand{\PTZmPYR}{\textbf{PTZ-mPYR}}
\newcommand{\PTZTmPYR}{\textbf{PTZ-2mPYR}}
\newcommand{\PTZmPYRCl}{\textbf{PTZ-mPYRCl}}
\newcommand{\PXZPYR}{\textbf{PXZ-PYR}}

\newcommand*{\CbPy}{\textbf{Cbz-PYR}}
\newcommand*{\CPa}{\textbf{1CbzPYR}}
\newcommand*{\CPb}{\textbf{2CbzPYR}}
\newcommand*{\CPc}{\textbf{3CbzPYR}}
\newcommand*{\tCbPy}{\textbf{tCbz-mPYRs}}
\newcommand*{\PXZu}{\textbf{PXZ-muPYR}}
\newcommand*{\PXZd}{\textbf{PXZ-mdPYR}}
\newcommand*{\PXZm}{\textbf{PXZ-2mPYR}}
\newcommand*{\meta}{\textit{meta}}
\newcommand*{\orto}{\textit{ortho}}
\newcommand*{\para}{\textit{para}}
\newcommand*{\metm}{\textit{meta}-methyl}
\newcommand*{\ortm}{\textit{ortho}-methyl}


\newcommand\upstrut{\rule{0pt}{12pt}}



\hyphenation{tem-pe-ra-tū-ri-ne eks-tre-ma-lios me-cha-niz-mas ak-cep-to-riaus ne-tvar-kos kon-for-ma-ci-nės at-stu-mą re-kom-bi-na-ci-jos e-fek-ty-vu-mas viduj-mo-le-ku-li-niams švies-tu-kuo-se švies-tu-kas švies-tu-kai fluo-re-scen-ci-ja ge-si-mo ne-de-mon-stra-vo vė-les-niuo-se su-ge-ne-ruo-ti švie-stu-ką prie-tai-so 
na-no-tech-no-lo-gi-jų
kū-nuo-se  ener-gi-ją ener-gi-ja  vie-na-ly-tės pe-ri-fe-ri-ją
 fa-zi-nės pa-vir-šiaus}

% CHECK_REFERENCE


\def\embedpdfs{1} % Set to 1 to embed PDFs

% PRASIDEDA DOKUMENTAS
% \input ideda page texta, o \include padaro clearpage ir ideda visa teksta (+ yra greitesnis)
% \include{folderis/tex-pavadinimas}

\begin{document}	
\pagestyle{plain}
\urlstyle{same}  % Linko stylo, kad bibliografijoje nekeistu
	
%\frontmatter
\sloppy % neleidžia ilgiems žodžiams išlįsti į pąraštes
\pdfbookmark[0]{TITLE}{ch:titleEN}
\include{title/EN}
\pdfbookmark[0]{TITULINIS}{ch:titleLT}
\include{title/LT}
\include{acknowledgement/padeka}

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{1}
\tableofcontents

\sloppy	 % neleidžia ilgiems žodžiams išlįsti į pąraštes
\input{abbrev/abbrev}
%\thispagestyle{empty}

\input{introduction/intro}

\include{Papers/publications}

\include{introduction/theory}

\include{experiment/experiment}

\renewcommand{\arraystretch}{1.2}

\include{chapter_1/chapter_1}

\include{conclusions/conclusions}

\newpage
\clearpage

\include{LT_short/santraukaLT}

\singlespacing % sumažinu spacing, kad bibliografija užimtų mažiau vietos
\phantomsection
%\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{mano} % Lietfizo (kartu ir VU) stilius

\bibliography{RS_Thesis}

\setstretch{1.4} 
\include{cv/CV_EN}
%\include{cv/CV_LT}

\setstretch{2} 
\include{Papers/publications_copies}

\setstretch{1.4} 
\include{closing/final}

\end{document}
