I would like to us polyglossia to be able to write in arabic and english on the following code beautiful section styles

It's compile without errors but the output doesn't show any Arabic language

enter image description here




            \csname the#1\endcsname
    \TitleUnderline{\ \ \ }%

\newfontfamily\arabicfont[Script=Arabic,Scale=1.2,AutoFakeSlant=-0.02]{Traditional Arabic}
\setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}



\section{الاحتمالات الحزء الاول }
\subsection{الاحتمالات الحزء الاول}
\subsection{الاحتمالات الحزء الاول}
\section{الاحتمالات الحزء الاول الاحتمالات الحزء الاول}

  {الاحتمالات الحزء الاول and text in English }

  • 2
    Doesn't work is a pretty bad description of your problem. Does it throw compile errors (if yes, which)? Or is the output unpleasant? – TeXnician Jul 4 '18 at 7:46
  • 1
    To maybe state the obvious, if you delete all the code for the fancy sectioning and then run it, the arabic appears in the sections. So the issue is in the section style code. – AML Jul 5 '18 at 14:47
  • The soul use a font which do not contain arabic script. – Salim Bou Jul 18 '18 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.