[Xy-pic] Xy-pic with cyrtex

Ross Moore ross at ics.mq.edu.au
Sat Jun 3 02:11:26 CEST 2006

Hello Dmitry,

On 03/06/2006, at 2:19 AM, Dmitry Pavlov wrote:

> Hi all,
> I am very impressed with Xy-pic package for TeX system.
> I used it, and it works in plain TeX.
> Unfortunately, it does not work with cyrtex (the 'Cyrillic' TeX 
> format).
> I tried to compile the file listed below in teTeX under Debian Linux 
> and
> MikTeX under Windows, and got the same error (output below).
> I have not found any recommendations on this issue in Web or Usenet 
> archives.
> Can you give some advice how to fix it?

The problem on loading the Xy-pic package is due to the fact that
Cyr-TeX has redefined the TeX primitive  \lowercase .

viz.  these lines from the CyrTeX source coding:

plainenc.tex:101:% support for uppercase/lowercase
\protected at edef\reserved at a{\@lowercase\expandafter{\the\@uclctoks}}%
plainenc.tex:145:  \let\uppercase\uppercas@\let\lowercase\lowercas@
plainenc.tex:148:  \let\uppercase\@uppercase\let\lowercase\@lowercase

So before you do   \input xy
it is necessary to revert the meaning of  \lowercase  to its original 

   \let \cyrtexlowercase \lowercase
   \catcode`\@ 11
   \let \lowercase \@lowercase
   \catcode`\@ 12
   \input xy
   \let \lowercase \cyrtexlowercase

With any luck, this will allow Xy-pic to load correctly for you.
However, it is possible that it will still not work correctly, due to 
changed catcodes, etc.

Please try it with a real example, and report back on your results.

> Big thanks,

Hope this helps,

	Ross Moore

> Dmitry
> --- a.tex
> \input xy
> Hello
> \bye
> --- cyrtex output:
> This is TeX, Version 3.141592 (MiKTeX 2.4)
> (a.tex
> Babel <v3.8a> and hyphenation patterns for english, french, german, 
> ngerman, ru
> ssian, dumylang, nohyphenation, loaded.
> (C:\texmf\tex\generic\xypic\xy.tex Bootstrap'ing: catcodes, docmode,
> ! Undefined control sequence.
> <inserted text> ...nifdefined \docm@ \gdef \docm@
>                                                  {\docm at i 
> }\xywarnifdefined...
> \lowerc at se ...rcase \expandafter {\the \@uclctoks
>                                                  }}\reserved at a }
> l.77 ...DE\docm at iv{\def\next{#1}\docecho@ \docm@}}
>                                                  %
> ?
> _______________________________________________
> xy-pic mailing list
> http://tug.org/mailman/listinfo/xy-pic

More information about the xy-pic mailing list