Re: Underline string in colour
- To: mathgroup at smc.vnet.net
- Subject: [mg82020] Re: Underline string in colour
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 10 Oct 2007 04:16:15 -0400 (EDT)
- Organization: Uni Leipzig
- References: <fefhsm$j5f$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
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}}]
Regards
Jens
tomfabtastic at hotmail.com 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
>
>