Hi, <br><br>I dare sending this question to the list, although I'm not stuck anymore, because I thought someone might find it useful one day (it took me a while to get this done, mysefl).<br><br>I paste my document at the end of the mail. The relevant line is:
<br><br>\newcommand{\ar}[1]{\font\ar="Scheherazade-AAT" at 12 pt {\ar#1}\normalfont}<br><br>This is something that allows me to print Arabic text like \ar{سلام عليكم} within Roman text. <br><br>Before I had:<br>
<br>\font\ar="Scheherazade-AAT" at 12 pt <br><br>and then I got the Arabic text typing {\ar سلام عليكم} instead.<br><br>I changed the latter for the former just because I prefer the syntax \ar{} rather than {\ar }.
<br><br>I'm already happy with this result (that I achieved on my own! ;) but still I'd like to ask: Is any of the two better than the other one? Is this the normal way to get Arabic text in Roman-scripted documents?
<br><br>I've seen other ways in other examples (from the XeTeX manual, the <a href="http://scripts.sil.org">scripts.sil.org</a> XeTeX page and in this list's archives) but I could make work none of them.<br><br>I'm also a bit puzzle that I didn't find any explicit tutorial showing what to do for this particular case. Are most people still using ArabTex?
<br><br>Any comments? Thank you!<br><br>Cheers, Manuel<br><br>PS: Here's my code:<br><br>%!TEX TS-program = xelatex<br>%!TEX encoding = UTF-8 Unicode<br>\documentclass[11pt,a4paper]{article}<br>\usepackage{fontspec}% provides font selecting commands
<br>\usepackage{xunicode}% provides unicode character macros <br>\usepackage{xltxtra} % provides some fixes/extras<br>\setromanfont{Palatino}<br>\newcommand{\ar}[1]{\font\ar="Scheherazade-AAT" at 12 pt {\ar#1}\normalfont}
<br><br>\begin{document}<br>This is text in Arabic: \ar{سلام عليكم} in the middle of English text.<br>\end{document}<br><br><br>