yea it was right. My old local texmf tree was creating problem....I deleted it and installed fresh texlive 2010, and it was working well.<div>Thanks</div><div>suresh<br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 1:32 PM, Herbert Schulz <span dir="ltr"><<a href="mailto:herbs@wideopenwest.com">herbs@wideopenwest.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Mar 17, 2011, at 8:42 PM, Suresh Kumar wrote:<br>
<br>
> Hi<br>
><br>
> I am a newbie to xetex and I tried to compile the following document using<br>
> xelatex:<br>
><br>
> \documentclass{article}<br>
><br>
> \usepackage{fontspec}<br>
><br>
> \usepackage{unicode-math}<br>
><br>
> \setromanfont{Calibri}<br>
><br>
><br>
> \setmathfont{Asana Math}<br>
><br>
><br>
> \begin{document}<br>
> Aum Amriteshwaryai Namaha<br>
><br>
> \begin{equation}<br>
><br>
> x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}<br>
><br>
> \end{equation}<br>
> \end{document}<br>
><br>
><br>
> (/home/suresh/texmf/tex/latex/filehook/filehook.sty)<br>
><br>
> ! Undefined control sequence.<br>
><br>
> l.92 \xetex_or_luatex:nnn<br>
><br>
> { \cs_new:Npn \um_cs_compat:n #1 }<br>
><br>
><br>
> How to fix this error?<br>
><br>
><br>
> thanks<br>
><br>
> suresh<br>
<br>
</div>Howdy,<br>
<br>
You need to update your TeX Distribution.<br>
<br>
Good Luck,<br>
<br>
Herb Schulz<br>
(herbs at wideopenwest dot com)<br>
<br>
<br>
<br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>R Suresh Kumar,<br><a href="http://www.ee.ucr.edu/~sramachandranna" target="_blank">http://www.ee.ucr.edu/~sramachandranna</a><br>Sarve bhavantu sukinaha (May everyone be happy)<br>
<div>Sarve santu niramiyaha (May everyone be without affliction)</div><div>Sarve bhadrani pashyantu (May everyone see only goodness)</div><div>Ma kashchit dukha bhak bhavet (Let none be the victim of suffering)</div><div>
<br></div><br>
</div>