\documentclass[11pt,a4paper]{memoir}
\usepackage{geometry}
\usepackage{graphicx,wrapfig}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{listings}
%\linespread{1.3}
%  \renewcommand{\baselinestretch}{1.4}
\usepackage{microtype}
\usepackage[utf8x]{inputenc}
%\usepackage[utf8x]{inputenc}
% \usepackage{inputenc}
% \usepackage{amssymb}
% \usepackage{amsmath}%,bm,times}
\usepackage{pgfplots}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}%from n2s3 paper
\usepackage{fourier}
\usepackage{bm}
\usepackage{setspace}           % to set the line spacing in the document
\usepackage{tikz} % for diagram
\usepackage{multirow} %for the table
\usepackage{url}%from n2s3 paper
\usepackage{array}%from n2s3 paper
% \usepackage{tikz-uml}
% \usepackage[cmex10]{amsmath}%from n2s3 paper
\usepackage{cite}%from n2s3 paper
%  \usepackage{fontspec}%from n2s3 paper
\usepackage{ifthen}%from n2s3 paper
%\usepackage{mathptmx}
\usepackage{kantlipsum}
\usetikzlibrary{arrows,shapes,positioning,shadows,trees}
\tikzset{
  basic/.style  = {draw, text width=2cm, drop shadow, font=\sffamily, rectangle},
  root/.style   = {basic, rounded corners=2pt, thin, align=center,
                   fill=black!20},
  level 2/.style = {basic, rounded corners=6pt, thin,align=center, fill={rgb:cyan,2;yellow,2;blue,1},
                   text width=8em},
  level 3/.style = {basic, thin, align=left, fill={rgb:cyan,3;yellow,1;blue,1}, text width=6.5em}
}

\usepackage[breaklinks=true,
pdfborder={0 0 0},
bookmarks=true,
pdfhighlight=/O]{hyperref}

\newboolean{showcomments}
\setboolean{showcomments}{true}

\ifthenelse{\boolean{showcomments}}{
  \newcommand{\nb}[3]{
    {\colorbox{#2}{\bfseries\sffamily\scriptsize\textcolor{white}{#1}}}
    {\textcolor{#2}{\sffamily\small$\blacktriangleright$\textit{#3}$\blacktriangleleft$}}}
}{
  \newcommand{\nb}[3]{}
}

\newcommand{\pb}[1]{\nb{Pierre}{purple}{#1}}

%\usetikzlibrary{shapes.geometric,arrows,arrows.meta,positioning}
%\usetikzlibrary{shapes.geometric,arrows,arrows,positioning}
% redefine the stereotype guillemots
\renewcommand{\ll}{\text{«}}
\renewcommand{\gg}{\text{»}}
% end--> for diagram

%\usepackage{subfig}

% \usepackage{mathrsfs}
% PDF VIEW
 \geometry{
 left=25mm,right=25mm,%
 bindingoffset=0mm, top=25mm,bottom=25mm,
 heightrounded}%,total={210mm,297mm}

 %%% CHAPTER'S STYLE
\chapterstyle{bianchi}

%%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
\setsecheadstyle{\Large\bfseries\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
\setsubsubsecheadstyle{\bfseries\sffamily\raggedright}

\renewcommand{\title}{Unconventional Computing Using Memristive Nanodevices: From Digital Computing to Brain-like Neuromorphic Accelerator}

%%%% STYLE OF PAGES NUMBERING

\pagestyle{Ruled}
%\pagestyle{companion}
 %\pagestyle{headings}
\createmark{chapter}{left}{shownumber}{ch}{. \space}%add ch + num to heading
\createmark{section}{right}{nonumber}{}{}%remove section number from heading

\maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents

\usepackage{listings}%for scala.tex
\usepackage{color}%for scala.tex

\begin{document}
%\input{title_page}

\include{title_page}
\pagenumbering{roman}
\include{acknowledment}
\include{abstract}
\clearpage %% start of mainmatter
\pagenumbering{arabic} % restart page numbers at one, now in arabic style
\tableofcontents
\listoffigures
\listoftables
\include{intro}
\part{Motivation, state-of-the-art and application of using emerging nanodevices for unconventional computing}

\include{ch1}
\include{ch2}
\include{ch3}
\part{Our contribution in spiking neural network architecture: Simulator, New synapse box, Parameter exploration and Spiking deep learning }
\input{scala.tex}
\include{ch4}
 \include{ch5}
\include{ch6}
\include{ch7}
\include{conclusion}

\bibliographystyle{unsrt}
\bibliography{mythesis}
\end{document}
