Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

upperscore

30 views
Skip to first unread message

amara vati

unread,
Nov 15, 2004, 11:32:49 PM11/15/04
to
Hi,

could anybody tell me how to add line above text just similar to an underscore.

regs
amar

Scott Pakin

unread,
Nov 15, 2004, 11:47:01 PM11/15/04
to
amara vati wrote:
> could anybody tell me how to add line above text just similar to an underscore.

\overline{text}

-- Scott

amara vati

unread,
Nov 18, 2004, 5:39:31 AM11/18/04
to
but this works only in $$ mode making text look like italics in the
math mode. cant we keep the text regular and accomplish this.

regards
amar

Scott Pakin <scot...@pakin.org> wrote in message news:<41998645...@pakin.org>...

Robin Fairbairns

unread,
Nov 18, 2004, 8:46:43 AM11/18/04
to
amara...@yahoo.com (amara vati) writes:
>but this works only in $$ mode making text look like italics in the
>math mode. cant we keep the text regular and accomplish this.

\usepackage{amsmath}
...
\ensuremath{\overline{\text{<your text>}}}

or tell us what you're actually doing -- quite likely there's an
application-specific package for it...
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge

Donald Arseneau

unread,
Nov 18, 2004, 9:02:35 AM11/18/04
to
amara...@yahoo.com (amara vati) writes:

> but this works only in $$ mode making text look like italics in the
> math mode. cant we keep the text regular and accomplish this.

LaTeX redefines \underline to make it available in text.

\let\@@underline\underline
\def\underline#1{%
\relax
\ifmmode\@@underline{#1}%
\else $\@@underline{\hbox{#1}}\m@th$\relax\fi}

Do the same for \overline:

\let\@@overline\overline
\def\overline#1{%
\relax
\ifmmode\@@overline{#1}%
\else $\@@overline{\hbox{#1}}\m@th$\relax\fi}

--
Donald Arseneau as...@triumf.ca

amara vati

unread,
Nov 18, 2004, 11:30:35 PM11/18/04
to
hi guys, thanks for that. it works.

amar

Donald Arseneau <as...@triumf.ca> wrote in message news:<yfifz37...@triumf.ca>...

0 new messages