>>>>> "Gady" == Gady Kozma <[EMAIL PROTECTED]> writes:
>> I sent an updated version to the list (which handles \label{\foo} >> correctly). Gady> Is this legal LaTeX? I don't think so. \ in a label should Gady> probably be discarded (with an error message, perhaps). Even \\ Gady> causes latex to complain. It is legal latex and it expands the definition of \foo if it exists. I'm sure this can be very useful, actually :) Here is an example file to play with: \documentclass{article} \begin{document} \def\foo{bar} \section{abab}\label{ab\foo} section is \ref{ab\foo} \end{document} But the point you raise is valid: we have to decide somehow whether the label key should be kept as latex sees it, which can be rather surprising (\label{a{}b} == \label{ab}) but also useful (\label{foo}), or if we want to hide latex subtleties under some conversions routines, which will undoubtedly confuse real latex users. BTW, somebody has to ensure also that label parsing in mathed is OK in 1.3.0cvs. JMarc