I'm still pursuing my quest to code a better \widebar command. I can do bars over single characters quite well already, but I have problems when it comes to letter combinations such as AW. \overline{AW} produces

which doesn't look nice in my opinion: the bar extends too far to the left; it doesn't take the skew of the A into account.
To correct this, I must be able to find out the first character of the argument of my \widebar command. For AW this is easy, but I also would like to cover the following arguments:
\mathcal{AW}or\mathcal{A}W(where\mathcal{A}is the first character),\sin x(where an uprightsis the first character),\mathchar"0141(which is just the characterAfrom the standard math font),\left(a^2+b^2\right)(where some(is the first character).
Maybe #4 is too tricky since a large ( might turn out to be a box and not a character. Of course, fractions and radicals shouldn't come up in the beginning of the argument; personally, I wouldn't want to overline such quantities.
So my question is: given a math list that starts with a character, can one find out what that first character is?
bmto solve the problem? – Hendrik Vogt Sep 12 '12 at 19:16:-)– Hendrik Vogt Sep 12 '12 at 19:21