阿拉伯字体问题

阿拉伯字体问题

我在用阿拉伯语编写的文件中使用字体时遇到问题,并出现以下错误消息:

LaTeX 字体警告:某些字体形状不可用,已用默认字体替代。

此外,我发现这是一个错误:

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

我为迟到道歉!

有代码:


\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}

出现错误信息:

\PackageError{bidi}{TeX engines other than XeTeX and LuaTeX are not yet supported} \fi 

答案1

您需要使用 XeLaTeX 而不是 pdfLaTeX 来编译此文档(您可能正在这样做)。此外,如果您的文本主要是阿拉伯语,并且您可以使用键盘轻松输入阿拉伯语,那么您可能应该使用它polyglossia而不是 ArabXeTeX。请参阅此问题的可接受答案:使用阿拉伯文字排版文档

相关内容