3

I would like to write a book in mathematics but with questions in Arabic and Latin mathmetical symbols (for example, between two Arabic words there might be a Latin mathematical symbol).

Note: For example pleas check this pdf to see what I want. Here's an image of the first page:

enter image description here

Thank you for any help !!

2
  • 3
    I up-loaded an image of the first page of the linked PDF so everyone can quickly see what you want to achieve. I hope it's OK. Commented Oct 15, 2015 at 0:23
  • what is your question exactly. It seems that you need to learn xelatex.
    – touhami
    Commented Oct 15, 2015 at 7:23

1 Answer 1

1

MWE using pdflatex (i.e., xelatex not required) with selectlanguage from the babel package:

\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage[LAE,T1]{fontenc}
\usepackage[arabic,english]{babel}

\begin{document}
\selectlanguage{arabic}
النظر في الصيغة التالية:
\selectlanguage{english}
\begin{equation}
f(x)=x^2+\frac{1}{x^3}
\end{equation}
\selectlanguage{arabic}
المتغير
\selectlanguage{english}$x$\selectlanguage{arabic}والتربيعية
\end{document}

Result: mixed arabic and latin Note that you need a text editor that supports right-to-left script (the StackExchange website seems left-to-right oriented...) and utf8 encoding. If you use Ubuntu (etc.) you can install the texlive-lang-arabic package with apt. See also http://www.ctan.org/pkg/arabi.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .