Dear Cesar,<br><br>Perhaps you've already seen <br><br><a href="http://cikitsa.blogspot.com/2010/07/xelatex-for-sanskrit.html">http://cikitsa.blogspot.com/2010/07/xelatex-for-sanskrit.html</a><br><br>that explores how to do this and similar tasks?<br>
<br>I tried your file, and it worked more or less out-of-the-box. I don't have XITS, so I replaced that with Charis SIL. See the input and output in the attached zip file.<br><br>I'm using TeXlive 2010, updated as of this morning.<br>
<br>Dominik<br><br><div class="gmail_quote">On 2 October 2010 16:38, Cesar Romani <span dir="ltr"><<a href="mailto:cesar.romani@gmail.com">cesar.romani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm using xelatex from TexLive 2008 on Win XP.<br>
I wanted to run the following text under xelatex:<br>
<br>
--------------------<br>
\documentclass{article}<br>
<br>
\usepackage{fontspec}<br>
\usepackage{xunicode}<br>
\usepackage{xltxtra}<br>
\usepackage{polyglossia}<br>
<br>
\newfontfamily\devanagarifont[Script=Devanagari]{Nakula}<br>
\newfontfamily\englishfont[Script=Latin]{XITS}<br>
<br>
\setmainlanguage{sanskrit}<br>
\setotherlanguages{english}<br>
<br>
\begin{document}<br>
<br>
\section{संस्कृतम्}<br>
जीवनस्य लक्ष्यमेव संस्कृतस्य वर्धनम्<br>
\subsection{कोऽम्}<br>
\textenglish{(Sanskrit)}<br>
\end{document}<br>
--------------------<br>
<br>
<br>
Bu I'm getting the following error:<br>
<br>
--------------------<br>
! Undefined control sequence.<br>
\zf@check@ot@lang ...Tcountlanguages \zf@basefont<br>
\c@zf@script \c@zf@index \...<br>
l.14 \begin{document}<br>
--------------------<br>
<br>
Many thanks in advance,<br><font color="#888888">
<br>
-- <br>
Cesar<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>
</font></blockquote></div><br>