<div dir="ltr"><div>Hi all, below is my minimal sample file and I just assume the specification at the end of file will direct the process to xetex.<br></div>What else can I do to make it work?<br><div><div><div><br>\documentclass{article}<br><br>\usepackage{xesearch}<br>% \newcounter{counted}% for creating unique counted* macros<br>% \newcounter{words}[counted]% let words counter be reset by counted<br>% \makeatletter<br>% \newenvironment{counted}{%<br>%   \noindent\hrulefill\par<br>%   \stepcounter{counted}%<br>%   \@ifundefined{counted\thecounted}{%<br>%     \marginpar{\footnotesize\itshape?? words}%<br>%   }{%<br>%     \marginpar{\footnotesize\itshape\@nameuse{counted\thecounted} words}%<br>%   }%<br>%   % \marginpar{\footnotesize\textit{\thewords\ words}}%<br>%   % \setcounter{words}{0}%<br>%   \SearchList!{wordcount}{\stepcounter{words}}<br>%   {a?,b?,c?,d?,e?,f?,g?,h?,i?,j?,k?,l?,m?,<br>%     n?,o?,p?,q?,r?,s?,t?,u?,v?,w?,x?,y?,z?}<br>%   \UndoBoundary{'}<br>%   \SearchOrder{p;}}{%<br>%   \StopSearching<br>%   \immediate\write\@auxout{\string\global\string\@namedef{counted\thecounted}{\thewords}}%<br>%   \marginpar{\raggedright\footnotesize\textit{End counting words}}<br>%   \par\noindent\hrulefill}<br>% \makeatother<br><br>\begin{document}<br><br>\section{Section 1}<br>% \begin{counted}<br>Text here<br>% \end{counted}<br>% (\thewords\ words.)<br><br>\end{document}<br>%%% Local Variables:<br>%%% coding: utf-8<br>%%% mode: latex<br>%%% TeX-engine: xetex<br>%%% TeX-master: t<br>%%% End:<br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 10:13 PM, David Carlisle <span dir="ltr"><<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.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="HOEnZb"><div class="h5">On 16 November 2015 at 19:59, John Wong <<a href="mailto:thjwong@gmail.com">thjwong@gmail.com</a>> wrote:<br>
> Dear mailing list members,<br>
><br>
> I am a user of TeX Live (with cygwin under windows).<br>
><br>
> The xesearch package does not load and simply \usepackage{xesearch} will<br>
> give me the following errors.<br>
><br>
><br>
> ERROR: Undefined control sequence.<br>
><br>
> --- TeX said ---<br>
> l.91 \XeTeXinterchartoks<br>
>                         \xs@lrDel\xs@Classless={\xs@LearnLetter}<br>
> --- HELP ---<br>
> TeX encountered an unknown command name. You probably misspelled the<br>
> name. If this message occurs when a LaTeX command is being processed,<br>
> the command is probably in the wrong place---for example, the error<br>
> can be produced by an \item command that's not inside a list-making<br>
> environment. The error can also be caused by a missing \documentclass<br>
> command.<br>
><br>
> When I check the source files, the line stated is obviously not truncate<br>
> while I am not sure what is the real reason of error.<br>
><br>
> Thanks in advance.<br>
><br>
> Best,<br>
> John<br>
<br>
</div></div>Are you sure you have used xetex? You would get exactly that error<br>
from tex, pdftex or luatex.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>