\documentclass[a4paper,twoside,12pt]{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref} % instead of
%\usepackage[spaces,obeyspaces,hyphens]{url}
\usepackage[natbibapa]{apacite}
\usepackage{times}
\usepackage{setspace}
\usepackage[bindingoffset=0.62cm,top = 2.68cm, bottom = 4.5cm, inner = 3.525cm, outer = 2.86cm, headheight = 15pt]{geometry}
\usepackage[hang,flushmargin]{footmisc}
\usepackage{etoolbox}
\usepackage{environ}
\usepackage[labelfont=bf, labelsep=period, format=hang, singlelinecheck=false, justification=raggedright, textformat=period]{caption}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{hyphenat}
\usepackage{amssymb}
\usepackage[mathscr]{eucal}
\usepackage{mathrsfs}
\usepackage{enumitem}
\usepackage{bm}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{pdfpages}%%%% include pdf files package %%%%%%
\graphicspath{ {./figures/} }
\captionsetup[figure]{position=below, labelfont=bf, labelsep=period, format=hang, singlelinecheck=false, justification=raggedright, textformat=period}
\usepackage{colortbl}
\captionsetup[table]{position=above, labelfont=bf, labelsep=period, format=hang, singlelinecheck=false, justification=raggedright, textformat=period}
%%%%% bibliography--->section %%%%%
\bibliographystyle{apacite}
\usepackage[sectionbib]{chapterbib}
\usepackage[nottoc]{tocbibind}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% FILL IN %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% book title in two languages
\newcommand{\thetitleEN}{Your title: Subtitle}% in English
\newcommand{\thetitleFI}{Julkaisun nimi: Alaotsikko}% in Finnish
% Your name FirstName Familyname
\newcommand{\theauthor}{First-Name Surname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% PUBLICATIONS SECRETARY FILLS %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% SHARE WITH julkaisut@univaasa.fi %%%
\newcommand{\ISBNprint}{978-952-476-XXX-1 }
\newcommand{\ISBNonline}{978-952-476-XXX-2 }
\newcommand{\ActaNumber}{XXX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Headers %%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyheadoffset{0cm}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[RO]{\thepage}
\fancyhead[LE]{\thepage}
\fancypagestyle{plain}{%
\fancyhead[RO]{{\it Acta Wasaensia \hspace{0,4cm}} \thepage}
\fancyhead[LE]{\thepage \hspace{0,5cm} \sffamily \it Acta Wasaensia}
\fancyhead[RE,LO]{}
}
\setlength{\headsep}{30pt}
%%% Table of contents %%%%%
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\sffamily\large\MakeUppercase}
%\setlength{\cftbeforesecskip}{2.5ex}
%\setlength{\cftbeforechapskip}{.9ex}
%\linespread{1.05}
%%%%% line numbering for reviewers %%%%%%
%uncomment the following to add line numbering%
%\usepackage{lineno}
%\linenumbers
%\modulolinenumbers[1]
%%%% citation and bibliography style %%%%%%
\renewcommand{\doiprefix}{}
\newcommand{\doi}[1]{https://doi.org/#1}
%%%% section style %%%%%%%%%%
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\sffamily\Large\MakeUppercase}}
\makeatother
\makeatletter
\renewcommand\subsection{\@startsection {subsection}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\sffamily\Large}}
\makeatother
\makeatletter
\renewcommand\subsubsection{\@startsection {subsubsection}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\sffamily}}
\makeatother
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.5}
%%%%% Environment %%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{equation}{section}
\newcommand{\step}[1]{\par\medskip\par\noindent\textit{#1}}
\linespread{1.1}
%\usepackage{emptypage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\setlength{\parindent}{0pt}
%\setlength{\parskip}{0pt}
\urlstyle{same}
%\setlength{\parindent}{3mm}
%\setlength{\parskip}{3mm}
\frontmatter
%%% new blank page %%%%%%
% add the following command anywhere to get a new _blank_ page%
%\newpage\thispagestyle{empty}\mbox{}
%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thesection}{\arabic{section}}% reset numbering to sections
\pagenumbering{Roman}
\setcounter{page}{1}
% Ask julkaisut@uwasa.fi how to share to get the coverpage, ISBN-numbers and Acta-number
\input{Cover.tex}
\input{Page2_defence_reviewers.tex}
\newpage
%%% Abstract%%%
\input{abstracts.tex}
% tämä ei tee mitään eroa \renewcommand{\baselinestretch}{2.0}
\input{Acknowledgement.tex}
%%%%!!!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!!!%%%%%
%% IF YOUR ACKNOWLEDGEMENTS IS ONE PAGE THEN %%%%
%% NEXT ROW APPLIES %%%%
\newpage\mbox{}\thispagestyle{empty}\newpage
%%
%% IF YOUR ACKNOWLEDGEMENT IS TWO PAGES THEN %%%%
%% NEXT ROW APPLIES %%%%
%\newpage
%%%%!!!%%%%%%%%%% COMMENT OFF ANOTHER %%%%!!!%%%%%
%%%%%%%%%%%% table of contents %%%%%%%
\doublespacing
\tableofcontents{\thispagestyle{fancy}}
\singlespacing
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% If you have figures %%%
% ei ole oikein \listoffigures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{LIST OF PUBLICATIONS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace*{3cm}
The dissertation is based on the following three refereed articles:
\begin{list}{}{}
\item[(I)] refer to article I: Author(s), title, journal, etc..
\item[(II)] refer to article II ...
\item[(III)] refer to article III....
\end{list}
\vspace{1cm}
{\em All the articles are reprinted with the permission of the copyright owners.} (permission is needed from the publisher!)
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section*{AUTHOR'S CONTRIBUTION}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace*{3cm}
\subsection*{{\normalsize \textbf{Publication I: \textquotedblleft Title\textquotedblright}}}
(description of the author's contribution)
\subsection*{{\normalsize \textbf{Publication II: \textquotedblleft Title\textquotedblright}}}
(description of the author's contribution)
\subsection*{{\normalsize \textbf{Publication III: \textquotedblleft Title\textquotedblright}}}
(description of the author's contribution)
\newpage\mbox{}\thispagestyle{empty}\newpage
\pagenumbering{arabic}
\pagestyle{plain}
\mainmatter
\input{Chapter1.tex}
\newpage
\input{Chapter2.tex}
\newpage
\input{Chapter3.tex}
\newpage
\input{Chapter4.tex}
\newpage
%%%% Bibliography%%%%
% The file Introduction.bbl has to be in the folder with the Introduction.tex%%%
%\nocite{*}
%\renewcommand\refname{REFERENCES}
%
%
%
%\bibliography{REFERENCES}
%%%%%%%%%%%%%%%%%%%%%%
% lähteet - references
% replace url with doi at bibliography
% settings
\urlstyle{same}
\setlength{\parskip}{25,5pt}
\setlength\bibsep{\baselineskip}
\singlespacing
\setlength\bibhang{0in}
\newtoggle{bibdoi}
\newtoggle{biburl}
\makeatletter
\undef{\APACrefURL}
\undef{\endAPACrefURL}
\undef{\APACrefDOI}
\undef{\endAPACrefDOI}
\long\def\collect@url#1{\global\def\bib@url{#1}}
\long\def\collect@doi#1{\global\def\bib@doi{#1}}
\newenvironment{APACrefURL}{\global\toggletrue{biburl}\Collect@Body\collect@url}{\unskip\unskip}
\newenvironment{APACrefDOI}{\global\toggletrue{bibdoi}\Collect@Body\collect@doi}{}
\AtBeginEnvironment{thebibliography}{
\pretocmd{\PrintBackRefs}{%
\iftoggle{bibdoi}
{\iftoggle{biburl}{\unskip\unskip \bib@doi}{}}
{\iftoggle{biburl}{Retrieved from\bib@url}{}}
\togglefalse{bibdoi}\togglefalse{biburl}%
}{}{}
}
%\apptocmd{\sloppy}{\hbadness 10000\relax}{}{} %skip error message about too long urls
\newpage
\bibliography{example}
%\newpage\mbox{}\thispagestyle{empty}\newpage
%%%%include articles%%%%%
%Articles' files has to be in the same folder with this Introduction TeX file. For filename with multiple words, rename the file by using words seperated by "_". Do not forget the extension ".pdf" %%%
%\includepdf[pages=-, scale=0.8, pagecommand=\thispagestyle{plain}]{Title_I.pdf}
%\includepdf[pages=-, scale=0.8, pagecommand=\thispagestyle{plain}]{Title_II.pdf}
%\includepdf[pages=-, scale=0.8, pagecommand=\thispagestyle{plain}]{Title_III.pdf}
\end{document}