Services & Resources / Wolfram Forums
MathGroup Archive
*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: A cell style question

  • To: mathgroup at
  • Subject: [mg79630] Re: [mg79589] A cell style question
  • From: John Fultz <jfultz at>
  • Date: Wed, 1 Aug 2007 04:48:42 -0400 (EDT)
  • Reply-to: jfultz at

On Mon, 30 Jul 2007 06:45:46 -0400 (EDT), Fred Simons wrote:
> In a notebook I want to create a cell style called EmphasisText, which
> must be identical to the default text style, but with a yellow
> background and a black line in front. Hence in the style sheet I entered
> the following:
> Cell[StyleData["EmphasisText"],
> "Text",
> Background->RGBColor[1,1,0],
> CellMargins->{{3,0},{0,0}},
> MenuPosition->1420]
> Here "Text" is used in the hope that all settings of Text will be
> inherited by EmphasisText. But it does not work. Replacing "Text" with
> "Input" or even "Title" does not have any effect.
> Of course I can copy and paste all settings for the text style into this
> cell. But that would mean that when in the future the settings of the
> text style change, I have to enter manually the new settings. Is there a
> way for automatically importing the settings for the text cell in the
> cell defining EmphasisText?
> Regards,
> Fred Simons
> Eindhoven University of Technology

The correct way to do this is...

Cell[StyleData["EmphasisText", StyleDefinitions -> StyleData[
 CellMargins->{{3, 0}, {0, 0}},
 Background->RGBColor[1, 1, 0]]

John Fultz
jfultz at
User Interface Group
Wolfram Research, Inc.

  • Prev by Date: Re: Dot or Inner ... but not quite
  • Next by Date: Re: Dot or Inner ... but not quite
  • Previous by thread: Re: Other PDE heat equation
  • Next by thread: Re: Double Integration involving Struve and Neumann functions