In the page 10 of the following document I define a label. When I give a reference to the page number of this label in the following page, the number is not shown properly. The number appears as 01 instead of 10. Is there a way to solve this problem?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[LFE,LAE,OT1]{fontenc}
\usepackage[farsi,english,arabic]{babel}
\begin{document}
\selectlanguage{farsi}
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\newpage
$\ $
\label{page10}
\newpage
\pageref{page10}
\end{document}
Edited: This question is related to my previous question
Problem with theorem's numbering when using Arabi package
In that situation the problem was solved by putting \renewcommand\thethm{\revarabic{thm}}
after defining \revarabic
. In the current situation I tried to mimicking the previous solution by putting the following without success
\renewcommand\thepageref[1]{\revarabic{\pageref[#1]}}
(makes error)
\renewcommand\pageref[1]{\revarabic{\pageref[#1]}}
(makes error)
\renewcommand\thepage{\revarabic{page}}
(solves the problem with \pageref by but makes another inconvenience: now the number of the page 10 becomes 01)