4

Is there a way to make a minor modification of the default appearance of cells in the current Notebook without specifying the all set of options? For example, I wish to have all Cells with style "Text" in the current Notebook by default having

 CellMargins -> {{Inherited, Inherited}, {0, Inherited}}

All the other options should be inherited from the default stylesheet. How can I achieve this?

Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93

1 Answers1

4

Open up Edit stylesheet from Format menu.

Then paste there the following:

Cell[StyleData["Text"], 
 CellMargins -> {{Inherited, Inherited}, {0, Inherited}}]

EDIT: Adding a screen-shot:

enter image description here

Sasha
  • 5,935
  • 1
  • 25
  • 33
  • Could you include a screen capture, please? – Dr. belisarius Mar 31 '11 at 13:27
  • After doing what you suggest all text cells in the Notebook looks as if would have `CellMargins->0`. It seems that `Inherited` does not work. Is it possible to make it working? – Alexey Popkov Mar 31 '11 at 13:34
  • I would like to change only bottom cell margin but leave all others as they are in the default stylesheet whatever it is. – Alexey Popkov Mar 31 '11 at 13:39
  • @Alexey Yes, it appears that Inherited is not supported, i.e. interpreted as zero. In case it helps, the Default stylesheet specifies {{66,10},{7,7}} for cell margins. You can set margins explicitly. – Sasha Mar 31 '11 at 13:52
  • 1
    Stylesheets could be changed from one *Mathematica* version to another. In *Mathematica* 5.2 and 7.0.1 by default `CellMargins->{{60, 10}, {7, 7}}`. At the same time, a user can specify his own stylesheet. It would be nice to have working inheritance and don't worry about incompatibilities... – Alexey Popkov Mar 31 '11 at 14:18