[Tex/LaTex] How to write formulas in arabic letters and numbers

arabicfonts

How can I write formulas in Arabic letters and numbers, is there any package or some sort of template to do so.

Hint: I am new to Latex.

Best Answer

I would recommend you use XeLaTeX and the package arabxetex. Here is a MWE to get you started.

\documentclass[12pt,fleqn,titlepage,twoside,a4paper]{book}
\usepackage{etex}
\usepackage{amsfonts,amsmath,amssymb,graphicx}
\usepackage{txfonts}
\usepackage[centering,includeheadfoot,margin=1in]{geometry}
\usepackage{tabvar}
\usepackage{arabxetex}
\newfontfamily{\arabicfont}[Script=Arabic,Scale=1.5]{Traditional Arabic}
\begin{document}
\begin{arab}[utf]
\chapter*{\textarab[utf]{ مدرسة الخوارزمي }}
\section*{\textarab[utf]{   قراءة المنحنيات    }}
\textbf{التمرين 1}:
$f$ دالة عددية و $\mathcal{C}_f$ منحناها البياني. إليك جدول تغيراتها
\end{arab}
\[\begin{tabvar}{|C|CCCCLCRCCCC|} \hline
x &-\infty & &0 & & & & & & 1 & &+\infty
\\ \hline
f'(x) & &- & \barre{} &- & &\dbarre & &- & \barre{0} &+ &
\\ \hline
\niveau{2}{3}f(x)
&\niveau{3}{3}+\infty &\decroit
&\barre{0} &\decroit
&-\infty &\dbarre &\niveau{3}{3}+\infty &\decroit
&\barre{\frac{3}{2}} &\croit
&+\infty
\\ \hline
\end{tabvar}\]
\end{document}
Related Question