\documentclass[sunil1,ChapterTOCs]{sunil}
\usepackage[utf8]{inputenc}
-\usepackage{amssymb}
+%\usepackage{amssymb}
%usepackage{amsbsy}
\usepackage{amsfonts,amssymb}
\usepackage{amsmath}
\usepackage{epstopdf}
\usepackage{url}
\usepackage{multirow}
-\usepackage{layouts}
+%\usepackage{layouts}
\usepackage{comment}
\usepackage{xcolor}
\usepackage{upquote}
\usepackage{moreverb}
\usepackage{commath}
\usepackage{numprint}
+\usepackage{placeins}
+%\usepackage{float}
%\usepackage{lmodern}
%% \usepackage{listings}
%% \usepackage{subfigure}
\newcommand{\mbf}{\mathbf}
\newcommand{\mc}{\mathcal}
-%newcommand{\bs}{\boldsymbol}
\newcommand{\N}{\mathcal{N}}
\newcommand{\B}{\mathcal{B}}
+\newcommand{\bs}{\boldsymbol}
+
+
+
+\let\OLDlstinputlisting\lstinputlisting
+\renewcommand{\lstinputlisting}[2][]{\FloatBarrier\OLDlstinputlisting[#1]{#2}\FloatBarrier}
\DeclareMathOperator*{\argmax}{arg\,max}
\makeindex
-%\includeonly{Chapters/chapter10/ch10}
-
+%\includeonly{Chapters/chapter19/ch19}
+\DeclareCaptionLabelSeparator{colon}{. }
\begin{document}
+
+
+
%%bibliography style to adopt
\bibliographyunit[\chapter]
\defaultbibliographystyle{plain}
\author{Raphaël Couturier}
\maketitle
-
+\cleardoublepage
\frontmatter
%\include{frontmatter/Foreword}
-\include{frontmatter/preface}
+\tableofcontents
\listoffigures
\listoftables
-\tableofcontents
+\include{frontmatter/preface}
\mainmatter
\include{Chapters/chapter3/ch3}
\include{Chapters/chapter4/ch4}
\part{Software development}
-\include{Chapters/chapter5/ch5}% lib HeatSolution0.049307.pdf HeatSolution0.pdf ...
+\include{Chapters/chapter5/ch5}
\include{Chapters/chapter6/ch6}
\part{Optimization}
\include{Chapters/chapter8/ch8}
\include{Chapters/chapter9/ch9}
-\include{Chapters/chapter10/ch10} %pb fonts tree2.pdf
+\include{Chapters/chapter10/ch10}
\part{Numerical applications}
\include{Chapters/chapter7/ch7}
\include{Chapters/chapter11/ch11}
\include{Chapters/chapter12/ch12}
\include{Chapters/chapter13/ch13}
-\include{Chapters/chapter14/ch14} %index
+\include{Chapters/chapter14/ch14}
\include{Chapters/chapter15/ch15}
\include{Chapters/chapter16/ch16}
\part{Other}
-\include{Chapters/chapter17/ch17} %index
+\include{Chapters/chapter17/ch17}
\include{Chapters/chapter18/ch18}
\include{Chapters/chapter19/ch19}