[XeTeX] \newcommand and ZWNJ

وفا خلیقی، Vafa Khalighi vafa at live.com.au
Thu Apr 30 10:37:26 CEST 2009


If I define a new command, where the name of the command is in Persian like:

(Sorry if you see it the wrong way, I have written it in the correct format but because of RTL and LTR direction, it looks wrong.)
Then that works fine but if a command name contains ZWNJ character which is common in Persian like:

Then I get error and that is
! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
l.3 \newcommand\متن‌س
? %%%%%%%%%%%%%%%%%%%%%%%%%

But it does not happen if I use \def instead \newcommand

Does anyone know if there is a way that I can use \newcommand to define a command whose name contain ZWNJ character like متن‌سیاه

This is a minimal LTX document:



As I mentioned above, the first new command is ok but the second one produces the error. Any solutions to fix this?

Need a new place to rent, share or buy? Let ninemsn property search for you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090430/da6aac08/attachment.html 

More information about the XeTeX mailing list