Hi Ross, <br><br><div><span class="gmail_quote">2007/3/11, Ross Moore &lt;<a href="mailto:ross@ics.mq.edu.au">ross@ics.mq.edu.au</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Will, Manuel and others,<br><br>On 11/03/2007, at 7:18 AM, Will Robertson wrote:<br><br>&gt; Hi Manuel,<br>&gt;<br>&gt; No trouble asking here if you get stuck, that&#39;s why we&#39;re here!<br>&gt;<br>&gt; On 11/03/2007, at 11:09 , Manuel Souto Pico wrote:
<br>&gt;<br>&gt;&gt; \newcommand{\ar}[1]{\font\ar=&quot;Scheherazade-AAT&quot; at 12 pt {\ar#1}<br>&gt;&gt; \normalfont}<br><br>Please do *not* use such short macro names.<br>There is too likely a chance that it clashes with a macro
<br>defined in standard LaTeX packages, or within TeX itself.<br>(In this case, \ar is used by Xy-pic for arrows in diagrams.)<br><br>Even if you don&#39;t use those other packages, some of your work<br>may end up within a volume alongside other people&#39;s work
<br>where dthey are used.<br>This can creates a significant head-ache for editors of such<br>volumes of conglomerate material.</blockquote><div><br>I see. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It is good practice to use descriptive macro-names, rather<br>than cryptic abbreviations, so that it is clear just what<br>kind of material is being presented...</blockquote><div><br>Well, I wrote my command after getting inspiration from an example I found for Hebrew: 
<br><br>\font\H=&quot;Lucida Grande&quot; at 10pt<br>{\H לחני}<br><br>That&#39;s why I used \A first and \ar later. Also I think either ArabTex or Arabi used something of the like. And it&#39;s shorter to type than, say, \arabic. 
<br><br>But I understood the lesson, I won&#39;t do it again :) <br><br>Thanks for your help. <br><br>Cheers, Manuel<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;<br>&gt; As Herb said, this won&#39;t work (more than once) because the \font\ar=<br>&gt; redefines the command \ar you&#39;ve set up. Since you&#39;re using LaTeX,<br>&gt; it&#39;s also probably better to be using the fontspec interface rather
<br>&gt; than the plain TeX one. Note that \normalfont isn&#39;t required above<br>&gt; (nor \selectfont).<br>&gt;<br>&gt; Following your example, this would be better:<br>&gt;<br>&gt; \font\arabicfont=&quot;Scheherazade-AAT&quot; at 12pt
<br>&gt; \newcommand\arabic[1]{{\arabicfont#1}}<br><br>&nbsp;&nbsp;... this is a much better use of descriptive macro-names.<br><br>&gt;<br>&gt; Better still would be:<br>&gt;<br>&gt; \newfontfamily\arabicfont{Scheherazade-AAT}<br>
&gt; \newcommand\arabic[1]{{\arabicfont#1}}<br>&gt;<br>&gt; The reason this is better is that the font size isn&#39;t hard coded in<br>&gt; the \arabic macro. (See the fontspec manual for explanation of<br>&gt; \newfontfamily, etc.) You don&#39;t want to have to use a different macro
<br>&gt; if you want Arabic text in a section heading, for example!<br>&gt;<br>&gt; Hope this helps,<br>&gt; Will<br><br><br>Cheers,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ross<br><br>------------------------------------------------------------------------
<br>Ross Moore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:ross@maths.mq.edu.au">ross@maths.mq.edu.au</a><br>Mathematics Department&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; office: E7A-419<br>Macquarie University&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tel: +61 +2 9850 8955
<br>Sydney, Australia&nbsp;&nbsp;2109&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fax: +61 +2 9850 8114<br>------------------------------------------------------------------------<br><br><br>_______________________________________________<br>XeTeX mailing list
<br><a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br><a href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a><br></blockquote></div><br>