Underlining in Microsoft Word is trivial (CTRL-U), but adding a overline is hard. Most people would resort to using equations, which is slow to render, and may have different font, spacing, and linespacing with the surrounding text. Here's a text-based way of doing this:
PressCTRL+F9to insert field braces.
EnterEQ \o(W,¯)and delete any extra spaces in the field. The overscore character can be entered by holding downALTand typing0175.
PressSHIFT+F9to show the results of the field code.
If the overline is too wide or narrow, pressSHIFT+F9to show the field code again and select the overscore character.
PressCtrl-Dto edit font properties for the overscore character.
Change to the character spacing tab, adjust the font scale (eg, 150% if we want to overline the character W), and click Ok.
PressSHIFT+F9to show the results of the field code. Iterate if necessary.