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


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

Re: Styling initialization cells

Started by"David Park" <djmpark@comcast.net>
First post2011-09-18 08:12 +0000
Last post2011-09-18 08:12 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#5028 — Re: Styling initialization cells

From"David Park" <djmpark@comcast.net>
Date2011-09-18 08:12 +0000
SubjectRe: Styling initialization cells
Message-ID<j54957$67j$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web