Question: how to write xbar in latex?
Answer: To put a bar over a letter, we can use either \bar or \overline . It seems that \bar is to \overline what \tilde is to \widetilde . There don't seem to be \overtilde or \widebar . Over a symbol with a subscript or superscript index, one can imagine four ways of putting a bar or tilde over it.