Frank Mittelbach <[log in to unmask]> writes: > David > > > > so does yours i think, or how was your proposal meant? > > > > It was supposed to hit at \label time. But since putting a label > > i still don't see how that would work without starting to rewrite > the code for \label which would be awfully dangerous and error > prone. so if i overlook something obvious i would be interested to > see how you would go for it. as i understand your code fragment it > only hits at \ref time No, it hits at the \protected@edef in \label, since it contains an undefined control sequence name. But it was a stupid idea, anyway. > > > > > any suggestion for a good text? > > > > > > > > \label{whatever} without preceding or enclosing \caption. > > > > Labels must follow the item they are referencing. > > > > > > well "whatever" is not known when we generate that text, is it? > > > > Probably not. But doesn't \label use something like > > \protected@edef before \write? If the label name at that time > > was stored in some macro, it should be possible to have it > > written out as part of the text. > > but not by the time you see the \ref. It would be expanded by the \protected@edef, of course. That is at \label time. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum