MathGroup Archive 2007

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

Search the Archive

Re: A cell style question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79620] Re: [mg79589] A cell style question
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Tue, 31 Jul 2007 06:12:47 -0400 (EDT)
  • References: <200707301045.GAA01684@smc.vnet.net>

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
>  
>
A good reference for style sheets by John Fultz can be found at

http://tinyurl.com/yvzcqe

I think the answer he gives is to use:

Cell[StyleData["EmphasisText", StyleDefinitions->StyleData["Text"]], etc.]

Carl Woll
Wolfram Research
*

*


  • Prev by Date: Re: Re: Module inside Module. Conflict between inner Module local variable
  • Next by Date: Re: RE: Re: Workbench 1.0 -> 1.1 upgrade
  • Previous by thread: A cell style question
  • Next by thread: Re: A cell style question