MathGroup Archive 2008

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

Search the Archive

Re: Colored Output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87233] Re: Colored Output
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Sat, 5 Apr 2008 04:21:20 -0500 (EST)
  • References: <ft4n1k$3pt$1@smc.vnet.net>

foice.news at gmail.com wrote:
> I would like to have evaluated expression with some costants painted
> in a particular color, just to make reading easier.
> Say my input is
> 
> D[a*Sin[x]]
> 
> and the output should be
> 
> a*Cos[x]
> 
> with colored "a", say magenta.
> 
> Is this achievable, and how? which kind of attributed of the constant
> a should I set?
> 
> Best
> Roberto
> 
Try this:

MakeBoxes[a, StandardForm] := StyleBox["a", Red]

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: RE: What is @@@?
  • Next by Date: Inconsistent behavior?
  • Previous by thread: Re: Colored Output
  • Next by thread: Re: Colored Output