Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to write one line with arabic letter in a latin-alphabet document?

something like

...
How are you...
سۆمتینگ سۆمتینگ...
now the latin is continued here
...

How about mixing with equation and so on? Please notice that I use tons of packages for writing maths and drawing Feynman-diagrams and the like.

I have arabic/english keyboard.

share|improve this question

1 Answer 1

run with xelatex or lualatex:

\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,Script=Arabic]{DejaVu Sans}
\begin{document}
La scrittura araba ha la sua origine nello script Byblos e lo script fenicio. La forma delle lettere e le basi per l'ulteriore sviluppo della scrittura sono stati collocati nello script aramaico.

الكتابة العربية وأصله في البرنامج النصي بيبلوس الفينيقية والنصي. وضعت على شكل الحروف والأسس لمزيد من التنمية في الكتابة الآرامية النصي.

La scrittura araba ha la sua origine nello script Byblos e lo script fenicio. La forma delle lettere e le basi per l'ulteriore sviluppo della scrittura sono stati collocati nello script aramaico.
\end{document}

enter image description here

share|improve this answer
    
xelatex and lulatex doesn't seem to work for me since I have all kinds of packages and stuff, there seems to be some kind of conflict. I don't know how to copy the error codes unfortunately. –  Love Learning May 3 at 18:04
    
The only difference is the font loading and utf8 id the default input encoding. That's all ... –  Herbert May 3 at 19:46
    
You still need to mark the whole Arabic paragraph right to left since the order of the words is still left to right in XeTeX (in LuaTeX it is even worse, as even the individual letters inside the words will be from left to right). –  Khaled Hosny Jul 21 at 18:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.