+ % work around too simple test for article-like classes in arabicore.sty
+ \ifdefined\chapter\else
+ \def\thesection{\protect\if@rl\protect\I{\number\c@section}%
+ \protect\else\protect\textLR{\number\c@section}%
+ \protect\fi}
+ \def\thesubsection{\protect\if@rl\protect\I{\number\c@subsection.\number\c@section}%
+ \protect\else\protect\textLR{\number\c@section.\number\c@subsection}%
+ \protect\fi}%
+ \def\thetable{\protect\if@rl\protect\I{\number\c@table}%
+ \protect\else\protect\textLR{\number\c@table}%
+ \protect\fi}%
+ \def\thefigure{\protect\if@rl\protect\I{\number\c@figure}%
+ \protect\else\protect\textLR{\number\c@figure}%
+ \protect\fi}%
+ \fi