G. Milde wrote: > On 11.03.05, Andreas Vox wrote: >> If you tell me which way to go I can provide a mini-patch. > > I would prefer, if LyX did not accept "illegal" characters in a label, so > I am able to find this label in the form I entered in the LaTeX output > (which I share with my co-workeres) and in the LyX source (which I tend to > edit with regexp-replace from time to time.
Me too. But I think that we should not do this now but escape '\\', '{' and '}' too, because the former could introduce new bugs more easily. Note that this is a file format change and needs lyx2lyx support: A label "\xxx" is valid after the change, but not now. Hint: You can copy and adapt lyx_support_escape() in lyx2lyx/lyx_1_4.py. Georg