[XeTeX] various questions about ArabXeTeX

وفا خلیقی vafakh9 at gmail.com
Thu Jan 8 06:47:08 CET 2009


I do not know much about ArabXeTeX. Let's assume the control sequence \allah
will produce the word الله. Then you can do this:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{fontspec}
\usepackage{arabxetex}
\newfontfamily\arabicfont[Script=Arab,Mapping=arabicdigits]{<font-name>}
\newfontfamily\allahfont[Script=Arabic]{Scheherezadeh}
\makeatletter
\let\origin at allah=\allah
\def\allah{\allahfont{\origin at allah}}
\makeatother
\begin{document}

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

So what this code typesets the main text with the fnt you specify and it
typesets the logo of Allah with Scheherezadeh font.

VK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090108/6d9d4828/attachment.html 


More information about the XeTeX mailing list