MathGroup Archive 2012

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

Search the Archive

Re: Different Color in ToString


Text[Row[{Style["There is ", Blue], Style[ToString[n], Red],
   Style[" numbers here", Blue]}]]

--David

On Mar 21, 6:45 am, Scott Colwell <scolw... at uoguelph.ca> wrote:
> Does anyone know how to change the color of the font in a ToString command.
>
> For example, in the following, the text should be blue, but the number 3 should be red.
>
> n = 3;
> Text[Style["There is "<> ToString[Style[n, Red]] <> " numbers here", Blue]]
>
> Thank you,




  • Prev by Date: Re: Eigenvalues, eigenvectors, matrix ranks, determinants, and all that stuff
  • Next by Date: Re: Different Color in ToString
  • Previous by thread: Re: Different Color in ToString
  • Next by thread: Re: Different Color in ToString