如何在 Latex 中的阿拉伯文本中书写阿拉伯数学符号?
例如,积分、平方根和导数符号从右到左如下:
编辑:
\documentclass[12pt,a4paper]{report}
\usepackage{graphicx}
\usepackage[top=1cm,bottom=1cm,right=1cm,left=1cm]{geometry}
\usepackage{amsmath,amsfonts,amssymb,mathrsfs}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Arial}
\def\rl#1#2#3{\text{\scalebox{#1}[#2]{\textarabic{#3}}}}
\def\rlsqrt#1{\scalebox{-1}[1]{$\sqrt{\rl{-.9}{1}{#1}}$}}
\def\rlint#1#2{\scalebox{-1}[1]{$\displaystyle\int\limits_{%
\rl{-.8}{.8}{#1}}^{\rl{-.8}{.8}{#2}}$}}
\def\rlqwa#1#2{\scalebox{-1}[1]{$\rl{-1}{1}{#1}^{\rl{-1}{1}{#2}}$}}
\def\rllim#1{\scalebox{1}[1]{$\underset{\rl{.8}{.8}{#1}}{\rl{1}{1}{%
نهـــا
}}$}}
\begin{document}
\rlsqrt{%
\rlqwa{%
س
}{2}$+$\rlqwa{%
ع
}{2}
}
\rllim{
س
$\infty+\leftarrow $
}
\rlint{0}{2}(
س
$2\;+$)
جا س
\end{document}