Post by Robert VoogdgeertDear TeX-users,
Can any of you tell me whether is it possible to use the overline
command outside mathmode?
Greetings,
Robert.
This macro may help:
\newcommand{\OL}[1]{\mbox{$\overline{\textrm{#1}}$}}
Usage:
\OL{symbol}
However, it actually does use math mode internally. As written it will always put the argument in Roman stle.
It doesn't work well if you give it several words in succession. Although the words all will have an overline, the result can easily extend into the right margin because the lines will not break properly. However, if you just want an overline over a single word, it should suffice.
It doesn't work if you use it inside a math formula, either. Doubtless there is a more general way to solve this problem.
Charles B. Cameron