Enrico Forestieri schrieb: > On Sun, Nov 05, 2006 at 04:00:39PM +0100, Abdelrazak Younes wrote: > >> Enrico Forestieri wrote: >>> On Sun, Nov 05, 2006 at 09:58:28AM +0100, Georg Baum wrote: >>>>> I think that we should leave the 256, but if you and others don't agree, >>>>> then please also make the corresponding changes to texparser.C >>>> Abdel is right that a table of 256 is not needed, since we never set the >>>> catcode of any character above 256 to something else than 256, and we need >>>> the if anyway. I have changed the comment accordingly, but if anybody else >>>> prefers 256 I have no problem with that either. >>> I am trying to say that, currently, LyX is not correctly tracking catcodes >>> and if we want to improve on that, then we should maintain the 256. >>> >>> As an example, try importing in LyX the attached valid latex file and you >>> will see what I mean. This is a bug, IMO. >> Are you saying that it is allowed to create new catcodes in a latex file? > > Try to latex that file and you will have the answer ;-) > This is also what \makeatother and \makeatletter do, i.e., change the > catcode of '@'. And this is tracked in tex2lyx.
this is only the LaTeX way of changing special catcodes, but there is also a TeX one ... Herbert