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 there any easy way to type Eastern Arabic Numerals in TeX? I mean these numbers: (٠‎ ١‎ ٢‎ ٣‎ ٤‎ ٥‎ ٦‎ ٧‎ ٨‎ ٩‎). Please note that I don't want to change the localization settings of my computer to non-US languages. I use US keyboard with US-English localization and need to type eastern Arabic numbers easily.

share|improve this question
add comment

1 Answer

If you don't have extensive arabic text, you can use:

\documentstyle[12pt,arabtex]{article}
\parindent=0pt 
\begin{document}
\null \vskip -2cm
%
\begin{arabtext}
a b c d e f g h  \\
0123456789\\
donald knuth pasha\\
\end{arabtext}
%
\testoutput
\end{document}

enter image description here

As a matter of interest here in Doha they call them Indian numerals.

share|improve this answer
    
Wow, impressive. Is there any similar way to do it with polyglossia package? –  Nina May 22 '12 at 19:58
    
@Nina See tex.stackexchange.com/a/12369/963, but then you will need either a virtual keyboard or an arabic keyboard, otherwise it can become very cumbersome to enter. –  Yiannis Lazarides May 22 '12 at 20:01
    
I found an answer to my own question. It is by typing in hexadecimal HTML codes: \char"0660 \char"0661 \char"0662 \char"0663 \char"0664 \char"0665 \char"0666 \char"0667 \char"0668 \char"0669 and so on. If I want to type 125, that would be simply \char"0661\char"0662\char"0665 . Hope this helps others with a similar need. –  Nina May 22 '12 at 20:58
add comment

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.