I want to use Roman numbers and Arabic numbers in my thesis. the main language of the document is Arabic and I use command \pagenumbering
to change page number's style. I tried most of the solutions that add command \clearpage
or \cleardoublepage
but it doesn't work, however redefining plain
page style as in
command \pagenumbering can't change numbers style i changes from Arabic to roman numbers but it affects toc in bad way and here the details of toc Table of contents** : how to change redefine commands \@tocrmarg and \@pnumwidth for different levels (chapter ,sec,..).
The main language of the document is Arabic. how can I change page's numbers from Arabic to roman without redefine 'plain' page style . this is MWC :
\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[LAE, T1]{fontenc}
\usepackage[arabic, english]{babel}
\renewcommand{\I}[1] {\if@farsi\FarsiEncoding\else\ArabicEncoding\fi\textLR{#1}}%
\renewcommand{\EI}[1]{\textLR{\FarsiEncoding \textLR{#1}}}%
\renewcommand \thechapter {\textLR{\arabic{chapter}}}
\TOCLanguage{arabic} % arabic is the main language
\newcommand\lr[1]{\textLR{#1}}
\newcommand\rl[1]{\textRL{#1}}
\begin{document}
\selectlanguage{arabic}
\pagenumbering{roman}
\chapter*{الملخص}
الملخص العربي
\chapter*{\lr{Abstract}}
\textLR{ English abstract\ldots}
\chapter*{كلمة الشكر}
نص باللغة العربية
\tableofcontents
\listoffigures
\listoftables
\cleardoublepage
\pagenumbering{arabic}
\chapter{تجريب}
نص باللغة العربية\\
\end{document}