MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Underline string in colour

  • To: mathgroup at
  • Subject: [mg82020] Re: Underline string in colour
  • From: Jens-Peer Kuska <kuska at>
  • Date: Wed, 10 Oct 2007 04:16:15 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <fefhsm$j5f$>
  • Reply-to: kuska at


the documentation say
"Underlined represents an underlined font."

and this mean that the characters in the font have
an underline. So there is not the letter and the (under) line
there is always the letter *with* the underline. It may not work when
the font itself has no underlined variant.

The only way to get a red underline under any text is to
make a graphics

Graphics[{Text["Word", {0, 0}], {Red,
    Line[{{-0.03, -0.02}, {0.03, -0.02}}]}},
  PlotRange -> {{-0.5, 0.5}, {-0.5, 0.5}}]


tomfabtastic at wrote:
> Hello,
> A straight forward question: I would like to know how to underline a
> String in colour.
> Style["Word", Underlined] underlines the word, and
> Style["Word", Underlined, Red] makes everything red.
> But I only want the underline to be red (not the string). Any
> suggestions ?
> Thanks,
> Tom

  • Prev by Date: Re: Change colors in contour plot and including a legend?
  • Next by Date: Re: rule based program for "Deleting repeated members of a list."
  • Previous by thread: Underline string in colour
  • Next by thread: How much memory is needed?