| 1 |
\documentclass{minimal} |
| 2 |
\usepackage{arabxetex} % default option is "novoc" |
| 3 |
% other options are "voc", "fullvoc", "utf" and "trans" |
| 4 |
% arabxetex loads bidi.sty and fontspec.sty |
| 5 |
|
| 6 |
\newfontfamily\arabicfont[Script=Arabic]{Amiri} |
| 7 |
% you can also define \farsifont, \uighurfont, etc if you want |
| 8 |
\begin{document} |
| 9 |
This is some text in English with Arabic insertion \textarab{`arabI}. |
| 10 |
|
| 11 |
This is some text in English with Arabic insertion \textarab[utf]{عربي}. |
| 12 |
|
| 13 |
This is some text in English with Arabic insertion \textarab[voc]{`arabI}. |
| 14 |
|
| 15 |
\begin{arab} |
| 16 |
wa-ha_dihi fiqraT"uN bi-al-`arabiyaT ma`a kalimaT inklIziyaT (\textLR{English}). |
| 17 |
\end{arab} |
| 18 |
|
| 19 |
\begin{arab}[utf] |
| 20 |
وهذه فقرةٌ بالعربية مع كلمة انكليزية (\textLR{English}). |
| 21 |
\end{arab} |
| 22 |
|
| 23 |
\begin{arab}[novoc] |
| 24 |
وَهَذِهِ فِقرَةٌ بِالعَرَبِيَة مَعَ كَلِمَة اِنكلِيزِيَة (\textLR{English}). |
| 25 |
\end{arab} |
| 26 |
\end{document} |