Search code examples
wolfram-mathematicamathematica-8

bar and hat only apply to certain letters


I'm a beginner in Mathematica. Like shown in the image below, I'm trying to put hat and bar to some letters (I just want to write vector notation) but only some letters can have them. What's wrong with how I do?

enter image description here

If you could provide online resource that covers these syntax, that would be more appreciable. Thank you.

(Environment) { Mac OSX 10.7, Ubuntu 11.10, Ubuntu 10.10}, Mathematica 8.0.4 Student Edition


Solution

  • Use OverHat and OverBar:

    OverHat /@ CharacterRange["a", "z"]
    

    Overhat characters

    OverBar /@ CharacterRange["a", "z"]
    

    Overbar characters