%%%%%%%%%%%%% PDF normal - Arabic (compile with XeLaTeX)
\documentclass[12pt,oneside,a4paper]{book}

\def\TheseTitre{آيات قرآنية عن يسوع المسيح}
\def\TheseAuteurNom{Pierre2.net}

% ---------------------------------------------------------------------------------------------------
% Colors (must be before hyperref)

\usepackage{ragged2e}
\usepackage{textcomp}
\usepackage[usenames,dvipsnames,table]{xcolor}
\usepackage{color}
\definecolor{gris50}{gray}{0.5}
\definecolor{gris10}{gray}{0.2}
\definecolor{blanc}{rgb}{1,1,1}
\definecolor{black}{rgb}{0,0,0}
\definecolor{webblue}{rgb}{0,0,1}
\definecolor{webdarkblue}{rgb}{0,0.1,0.5}
\definecolor{webgreen}{rgb}{0,0.5,0}
\definecolor{webred}{rgb}{0.5,0,0}
\definecolor{darkgray}{rgb}{0.4, 0.4, 0.4}
\definecolor{marron}{rgb}{0.8, 0.8, 0.6}
\definecolor{bluectc}{rgb}{0.3, 0.29, 0.64}
\definecolor{grayctc}{rgb}{0.49, 0.47, 0.55}
\definecolor{bleumoy}{RGB}{182,223,245}
\definecolor{bleuclair}{RGB}{230,245,252}
\definecolor{chapcol}{RGB}{0,102,0}
\definecolor{entete}{RGB}{0,102,0}

\usepackage[
pdfauthor={\TheseAuteurNom},
colorlinks=true,
linkcolor=entete,
filecolor=entete,
urlcolor=entete,
citecolor=entete,
pdfstartview=Fit,
pdfpagelayout=SinglePage,
]{hyperref}

\usepackage{supertabular}
\usepackage{tabularx}

% Determine if the image is too wide for the page.
\makeatletter
\def\ScaleIfNeeded{%
  \ifdim\Gin@nat@width>\linewidth
    \linewidth
  \else
    \Gin@nat@width
  \fi
}
\makeatother

% Determine if the image is too high for the page.
\makeatletter
\newlength{\halfpageheight}
\setlength{\halfpageheight}{0.5\textheight}

\def\ScaleHeightIfNeeded{%
  \ifdim\Gin@nat@height>\halfpageheight
    \halfpageheight
  \else
    \Gin@nat@height
  \fi
}
\makeatother

\hbadness=10000

\usepackage[labelformat=empty]{caption}
\usepackage[justification=Centering,singlelinecheck=true]{subfig}
\usepackage{float}
\newcommand{\resoldpi}{96}
\usepackage{graphicx}

\usepackage{amsmath,mathtools}
\usepackage{adjustbox}
\usepackage[shortlabels]{enumitem}
\usepackage{array}
\usepackage{colortbl}

\usepackage{lmodern}
\DeclareTextSymbol{\degre}{T1}{6}

% ---------------------------------------------------------------------------------------------------
% Margins

\usepackage[hmargin=0cm,vmargin=0cm,headsep=0.5cm]{geometry}

% A4
\setlength{\hoffset}{-5mm}
\setlength{\textwidth}{175.0mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{-0mm}

\setlength{\voffset}{-17mm}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{6mm}
\setlength{\headsep}{4mm}
\setlength{\textheight}{255mm}
\setlength{\footskip}{12mm}

% Footnote styling: add space between footnotes and footer
\setlength{\footnotesep}{8pt}
\renewcommand{\footnoterule}{\vspace{4pt}\hrule width 0.4\textwidth\vspace{4pt}}

\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}

\renewcommand{\labelitemi}{$\color{entete}{\bullet}$}
\renewcommand{\labelenumi}{\color{entete}\theenumi.}

% ---------------------------------------------------------------------------------------------------
% Header and footer

\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}

\fancyhead{}
\renewcommand{\headrule}{\color{entete}\hrule}
\renewcommand{\footrule}{\color{entete}\hrule}

% Ensure \leftmark = chapter (post) title, not section title
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ \textsc{#1}}}

% En-Tete du Corps de Texte
\newcommand{\HeaderMain}{
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\textcolor{entete}{\LR{www.pierre2.net}}}
\fancyhead[RE,LO]{\textcolor{entete}{\leftmark}}

\fancyfoot{}
	\fancyfoot[RE,LO]{\color{entete} \textcolor{entete}{\LR{\lien}}}
\fancyfoot[LE,RO]{\color{entete} \LR{\textcolor{entete}{\thepage}/\hypersetup{linkcolor=entete}{\pageref{LastPage}}}}

}

% En-Tete Index
\newcommand{\HeaderIndex}[1]{
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[CE,CO]{\textcolor{gris10}{\LR{\emph{version du {\today}}}}}
\fancyfoot[LE,RO]{\LR{\textcolor{entete}{\thepage}/\hypersetup{linkcolor=entete}{\pageref{LastPage}}}}
}

%Page chapitre
  \fancypagestyle{plain}
	{\fancyhf{}
	\renewcommand{\headrule}{}
	\fancyhead{}
	\fancyfoot{}
	\fancyfoot[RE,LO]{\color{entete} \textcolor{entete}{\LR{\lien}}}
\fancyfoot[LE,RO]{\color{entete} \LR{\textcolor{entete}{\thepage}/\hypersetup{linkcolor=entete}{\pageref{LastPage}}}}
\fancyfoot[CE,CO]{\color{gris10} \vskip 0.3cm \textcolor{gris10}{\tiny\emph{\LR{PDF version : {\today}}}}}
	}


% reset chapter
\makeatletter
\@addtoreset{chapter}{part}
\makeatother

% ---------------------------------------------------------------------------------------------------
% Arabic language support (polyglossia + XeLaTeX)

\usepackage{minitoc}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont{Scheherazade}[Script=Arabic,Scale=1.4]
\newfontfamily\arabicfontsf{Scheherazade}[Script=Arabic,Scale=1.4]
\newfontfamily\englishfont{Times New Roman}[Script=Latin]
\let\arabicfonttt\ttfamily

\mtcselectlanguage{arabic}
\addto{\captionsenglish}{%
  \renewcommand{\mtctitle}{}
}

\renewcommand{\thesection}{\arabic{section}.}
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{1}
\setcounter{minitocdepth}{1}
\mtcsetrules{minitoc}{off}

% Remettre chiffre à l'endroit
\makeatletter
\renewcommand{\SepMark}[1]{\def\@SepMark{#1}}
\makeatother
\SepMark{-}

%DEFINTION TITRE CHAPITRE
\makeatletter
\def\@makechapterhead#1{
  {\vspace*{-30\p@}\parindent \z@ \centering \reset@font
        	\color{entete}\fontsize{30}{40} {\scshape #1} \nobreak
        \vspace*{10\p@}%
        \hrule
        \vskip 15\p@
  }}

\usepackage{lastpage}


% Custom commands for centered sections
\newcommand{\centersection}[1]{%
    \phantomsection%
    \addcontentsline{toc}{section}{#1}%
    \begin{center}%
        {\color{entete}\large\bfseries #1}%
    \end{center}%
    \vspace{1ex plus 1ex minus 1ex}%
}
\newcommand{\centersubsection}[1]{%
    \phantomsection%
    \addcontentsline{toc}{subsection}{#1}%
    \begin{center}%
        {\normalsize\bfseries #1}%
    \end{center}%
    \vspace{1ex plus 1ex minus 1ex}%
}
\newcommand{\centersubsubsection}[1]{%
    \phantomsection%
    \addcontentsline{toc}{subsubsection}{#1}%
    \begin{center}%
        {\normalsize\bfseries #1}%
    \end{center}%
    \vspace{0.5ex plus 0.5ex minus 0.5ex}%
}


\newlength{\drop}

\dominitoc

\newcommand{\lien}{\href{www.pierre2.net/ar/versets-coraniques-sur-le-messie-jesus}{www.pierre2.net/ar/versets-coraniques-sur-le-messie-jesus}}

\HeaderMain

\begin{document}

\sloppy

\selectlanguage{arabic}


\chapter{آيات قرآنية عن يسوع المسيح}

\begin{obeylines}هذه بعض الآيات القرآنية التي تقدّم يسوع كمسيح، نبيّ الله، كلمة الله، وروح الله:

\par\vspace{0.5em}\begingroup\leftskip=1.5em\rightskip=1.5em\noindent [ إذ قالت الملائكة يا مريم إنّ الله يبشّرك بكلمة منه اسمه المسيح عيسى ابن مريم...] (قرآن 3 آل عمران، 45).

[ وقولهم إنّا قتلنا المسيح عيسى ابن مريم رسول الله...] (قرآن 4 النساء، 157).

[... المسيح عيسى ابن مريم رسول الله وكلمته ألقاها إلى مريم وروح منه...] (قرآن 4 النساء، 171).

[... قل فمن يملك من الله شيئاً إن أراد أن يهلك المسيح ابن مريم وأمّه...] (قرآن 5 المائدة، 17).

[ اتّخذوا أحبارهم ورهبانهم أرباباً من دون الله والمسيح ابن مريم...] (قرآن 91 التوبة، 31).\par\endgroup\vspace{0.5em}

\begin{flushleft}بطرس\end{flushleft}\end{obeylines}



\vskip 0.4cm
\begin{center}
\rule{0.5\textwidth}{.4pt}

\LR{Copyright {\textcopyright} \the\year  ~- Pierre2.net - All rights reserved.}
\end{center}


\faketableofcontents

\end{document}
