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: A cell style question

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

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[
 "Text"]],
 CellMargins->{{3, 0}, {0, 0}},
 MenuPosition->1420,
 Background->RGBColor[1, 1, 0]]


Sincerely,
 
John Fultz
jfultz at wolfram.com
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