Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Initialization cell appearance

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74273] Re: Initialization cell appearance
  • From: Albert <awnl at arcor.net>
  • Date: Thu, 15 Mar 2007 19:19:13 -0500 (EST)
  • References: <etb5c3$k2f$1@smc.vnet.net>

Hi,

> Is there any way to do this automatically ?   I.e., have something like the 
> background colour of an Input cell change when it is marked as an 
> Initialization cell.

you could write a Mathematica function which uses the Frontend-functions 
to select all Initialization-Cells and switch their background and run 
it on your notebook once in a while, but...

> I realise that one could always define a new cell style but I am not 
> entirely sure whether the other features of initialization cells would 
> continue to work.

this is the way to go. It works, I am using this all the time. Just make 
a copy of your favourit StyleSheet, in that make a copy of the 
InputCell-Style and change it to be an Initialization Cell. Depending on 
where you put the new definition in your StyleSheet, you can even switch 
between this new style and a regular InputCell...

> In my opinion, it would be good to have this in some of the standard 
> notebook style sheets.

I also would like to see this, but it is easy enough to set this up 
anyway...

hth,

albert


  • Prev by Date: Re: Animate command on ListPlot:
  • Next by Date: RE: Initialization cell appearance
  • Previous by thread: Re:Re: Normal for Limit
  • Next by thread: Re: Initialization cell appearance