Different Color in ToString
- To: mathgroup at smc.vnet.net
- Subject: [mg125602] Different Color in ToString
- From: Scott Colwell <scolwell at uoguelph.ca>
- Date: Wed, 21 Mar 2012 05:44:45 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
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,
- Follow-Ups:
- Re: Different Color in ToString
- From: Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
- Re: Different Color in ToString
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Different Color in ToString
- From: Tomas Garza <tgarza10@msn.com>
- Re: Different Color in ToString
- From: Adriano Pascoletti <adriano.pascoletti@uniud.it>
- Re: Different Color in ToString