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.

I need to write some words in Arabic in a LaTeX file. I'm currently using arabtex package to do that as following:

\documentclass[10pt]{article}
\usepackage{arabtex}
 \begin{document}
 \RL{f.s.hY AltrA_t} % Arabic word
 \end{document}

The problem is that the size of the font used in arabtex style is large and this affects the document layout which changes in undesirable way. I searched for the file arabtex.sty in my PC's drives but it seems there is no such file on my PC. I just need to be able to change the font size of words written in arabtex style.

share|improve this question
    
I don't see any large font when running the example. –  egreg Mar 11 '13 at 17:13
    
If the Arabic words appear within English text and if the document is single line space , the problem must be obvious. the layout of the paper I am writing now is changed 100% and I have got untidy appearance –  Wahedsaw Mar 11 '13 at 18:43
    
If I write A \RL{f.s.hY AltrA_t} B, the Arabic text is as high as the Latin letters. –  egreg Mar 11 '13 at 18:47
    
If you highlight the text in the pdf resulted file (using mouse). you can see the difference in high between latin letters and the Arabic words –  Wahedsaw Mar 11 '13 at 18:53

1 Answer 1

up vote 1 down vote accepted

By using what the arabtex names "small" version, you get reduced size that's comparable to the size of Latin characters:

\documentclass[10pt]{article}
\usepackage{arabtex,lipsum}

%%% from Uxnsh.fd
\DeclareFontFamily{U}{xnsh}{}%

\DeclareFontShape{U}{xnsh}{m}{n}{%                                   
   <-6> sfixed * [6.0] xnsh14
      <6-10> s * [1.20] xnsh14
         <10><10.95><12><14.4><17.28><20.74><24.88> s * [1.20] xnsh14
         }{}

\DeclareFontShape{U}{xnsh}{bx}{n}{%
   <-6> sfixed * [6.0] xnsh14bf
   <6-10> s * [1.20] xnsh14bf
   <10><10.95><12><14.4><17.28><20.74><24.88> s * [1.20] xnsh14bf
}{}
%%% end of added code


\begin{document}


\lipsum*[2]
\RL{f.s.hY AltrA_t} % Arabic word
\lipsum[3]
\end{document}
share|improve this answer
    
but there's still an uneven line skip between the first line with arabic and the line above it. i think that the arabic implementation has been designed to accommodate the maximum diacritization, even though it isn't used in the example text. –  barbara beeton Mar 11 '13 at 19:18

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.