2

I have a problem with font in a file written in Arabic with this error message:

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

further, I have this as an error:

{C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/fontname/8r.enc}

I apologize for beeing late!

there is the code:


\documentclass{minimal}
\usepackage{arabxetex} % default options are "novoc" and "fdf2alif", 
                       % other options are "voc", "fullvoc", "utf", "trans" and "fdf2noalif"
% arabxetex loads bidi.sty and fontspec.sty            

\newfontfamily\arabicfont[Script=Arabic, Scale=1.5]{Scheherazade}
% you can also define \farsifont, \uighurfont, etc if you want




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
This is some text in English with Arabic insertion \textarab{`arabI}.

This is some text in English with Arabic insertion \textarab[utf]{عربي}.

This is some text in English with Arabic insertion \textarab[voc]{`arabI}.

\begin{arab}
wa-ha_dihi fiqraT"uN bi-al-`arabiyaT ma`a kalimaT inklIziyaT (\textroman{English}).
\end{arab}

\begin{arab}[utf]
وهذه فقرةٌ بالعربية مع كلمة انكليزية (\textroman{English}).
\end{arab}
\end{document}

and there is the error message:

\PackageError{bidi}{TeX engines other than XeTeX and LuaTeX are not yet supported} \fi 
5
  • 9
    It's difficult to have any idea of what's going on without more detail. Can you provide the code (add it to the question) for a minimal working example that demonstrates the warning and error?
    – qubyte
    Dec 17, 2011 at 17:23
  • 3
    Eek. This is not exactly minimal, is it?
    – qubyte
    Dec 18, 2011 at 12:41
  • 1
    @Labaïr: Please reduce your code to be as small as possible while still reproducing the error. Have a look at the link Mark provided you with in his first comment.
    – doncherry
    Dec 18, 2011 at 13:51
  • @Labaïr: Once again: This is a lot of code. In order to help people who'll help you, please remove everything from your code that is not related to your problem. On the more obvious side, this means getting rid of most of the packages and the macros (\newcommand), but other stuff as well. This process results in a so-called minimal working example (MWE); take a look at this linked question. People can copy and compile that to reproduce your problem. Otherwise, your question might be in danger of being closed as too localized.
    – doncherry
    Dec 18, 2011 at 22:07
  • @Labaïr You need to compile this document with XeLaTeX, not pdfLaTeX (which is probably what you are doing.) Also, if your text is mainly in Arabic, and you can enter Arabic easily with your keyboard, you should probably just be using polyglossia instead of ArabXeTeX. See the accepted answer to this question: Typesetting a document using Arabic script.
    – Alan Munn
    Dec 19, 2011 at 2:54

1 Answer 1

2

You need to compile this document with XeLaTeX, not pdfLaTeX (which is probably what you are doing.) Also, if your text is mainly in Arabic, and you can enter Arabic easily with your keyboard, you should probably just be using polyglossia instead of ArabXeTeX. See the accepted answer to this question: Typesetting a document using Arabic script.

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