Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Colored Output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87237] Re: Colored Output
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 5 Apr 2008 04:22:06 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <ft4n1k$3pt$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

a /: MakeBoxes[a, fmt_] :=
  StyleBox["a", FontColor -> RGBColor[1, 0, 0]]

for red.

Regards
   Jens

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
> 


  • Prev by Date: Re: How to display parameter in animation?
  • Next by Date: Re: Colored Output
  • Previous by thread: Re: Colored Output
  • Next by thread: Re: Colored Output