Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5028

Re: Styling initialization cells

From "David Park" <djmpark@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Styling initialization cells
Date 2011-09-18 08:12 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j54957$67j$1@smc.vnet.net> (permalink)
References <1155045.142253.1316252203355.JavaMail.root@m06>

Show all headers | View raw


You could design your own style sheet and add a definition for
"InitializedInput". It's underlying form would look like:

Cell[StyleData["InitializedInput", StyleDefinitions -> StyleData["Input"]],
 InitializationCell->True,
 Background->RGBColor[0.868628, 0.947059, 0.903922],
 MenuSortingValue->1506]

Use whatever color you wish.

The problem with this is that unless other users have the same style sheet,
or definition the notebook will not work for them.

Another possibility is to add the Background option to your initialization
cells by hand. Another possibility is that some clever person will write
some code to select and color all Initialization cells in a notebook. I
don't have time to work on it at the moment.


David Park
djmpark@comcast.net
http://home.comcast.net/~djmpark/ 


From: Mariano Su=E1rez-Alvarez [mailto:mariano.suarezalvarez@gmail.com]


Hi all,

Is there a way to alter the style of initialization cells (I want to change
their background color) using stylesheets?

By the way: whoever thought the minuscule line in the cell bracket that
indicates the initialization-cell-ness was a good way of marking those
cells?!

-- m

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Styling initialization cells "David Park" <djmpark@comcast.net> - 2011-09-18 08:12 +0000

csiph-web