Herbert Voss <[EMAIL PROTECTED]> writes: > Angus Leeming wrote: > > > On Friday 19 July 2002 2:36 pm, Herbert Voss wrote: > > > >>Angus Leeming wrote: > >> > >>>On Friday 19 July 2002 2:19 pm, Andre Poenitz wrote: > >>> > >>>>.. fails with labels containing underscores. Just try the > >>>>'scary-eqns.lyx' that came over this list recently. > >>>> > >>this is _no_ bug of preview.sty, it is not allowed to have > >>TeX-command-characters in labels. preview.sty is so kind to > >>change such characters into \? > >> > > The new version does something like that I believe. > > > I know, but this is not a good idea of David. The users > should know that there are some characters which they > should be aware of. When it works for labels they wonder > why it does not works in another case ...
\label works with \csname. \csname accepts character tokens. This includes &$_^{} characters (unless they have been made active and redefined). It is quite a bad idea to be using those characters for labels, but not necessary illegal. Such labels usually work fine, so the showlabels options should not make them fail when other uses don't. I believe that the CVS version of preview.sty should work with labels like that (for some months now). If you would check whether scary-eqns.lyx comes out correct with that, I would be grateful. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum Email: [EMAIL PROTECTED]