Re: Colored Output
- To: mathgroup at smc.vnet.net
- Subject: [mg87230] Re: [mg87193] Colored Output
- From: Carl Woll <carlw at wolfram.com>
- Date: Sat, 5 Apr 2008 04:20:46 -0500 (EST)
- References: <200804040754.CAA03661@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 > > You can use MakeBoxes: MakeBoxes[a, StandardForm] := StyleBox["a", Green] Then, evaluate D[a Sin[x], x] If you're default output format type is TraditionalForm, then just substitute TraditionalForm for StandardForm in the MakeBoxes rule. Carl Woll Wolfram Research
- References:
- Colored Output
- From: foice.news@gmail.com
- Colored Output