% !TeX program = pdflatex
\documentclass[12pt,a4paper,oneside,onecolumn]{book}
\usepackage[utf8x]{inputenc}
\usepackage[hebrew,english]{babel}
\usepackage{libertine}
\usepackage{courier}
\usepackage[longnamesfirst,square,numbers,comma,sort&compress]{natbib}
\usepackage{titlesec}
\usepackage{float}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,arrows.meta,arrows,patterns,hobby}
\usepackage{graphicx}
\usepackage{pgfplots}
\usepackage{mathpazo}
\usepackage{datetime}
\usepackage[unicode=true] {hyperref}
\usepackage[linesnumbered]{algorithm2e}
\usepackage{adjustbox}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{amssymb}
\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt}
\usepackage{atbegshi}
\input{hebrew_functions.tex}
\titleformat{\chapter}[hang]{\bf\huge}{\thechapter}{2pc}{}
\title{OpenU Thesis}
\begin{document}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma} [section]
\include{cover}
\myfrontmatter
\include{abstract}
\include{acknowledgements}
\tableofcontents
\begingroup
\listoffigures
\let\clearpage\relax
\vspace{-1cm}
\listoftables
\endgroup
\mainmatter
\input{introduction}
\input{background}
\input{previous_work}
\input{main_issue}
\input{conclusion}
\bibliographystyle{acm}
\bibliography{thesis}
\mybackmatter
\RPtrue
\include{cover_heb}
\include{abstract_heb}
\hebrewtableofcontents
\RPfalse
\end{document}