Specifically I want different versions of 'Item1Numbered'. For example one with a frame and another with a background colour. How is that done?
Asked
Active
Viewed 192 times
1 Answers
9
You need to add StyleDefinitions -> StyleData["ParentStyle"] as an option to the StyleData of your new style (in the stylesheet), where "ParentStyle" is whatever you want to inherit from.
In your case, go to Format > Edit Stylesheet and add the following styles:
Cell[
StyleData["MyItemStyle1", StyleDefinitions -> StyleData["ItemNumbered"]],
CellFrame -> True
]
Cell[
StyleData["MyItemStyle2", StyleDefinitions -> StyleData["ItemNumbered"]],
Background -> GrayLevel[0.8]
]

rm -rf
- 88,781
- 21
- 293
- 472
CellDingbat. The default definition for number isCellDingbat->Cell[ TextData[{ CounterBox["ItemNumbered"], "."}], FontWeight -> "Bold"], which is inherited fromItemNumbered. Now if you addCellFrame -> Truealso to theCellused inCellDingbat, you will get a frame around the number. However, the two frames now overlap. To resolve this, you'll have to manually fiddle with theCellMargins(the left margin for the main cell and the right margin for the dingbat cell) to get a good appearance. – rm -rf Aug 07 '13 at 20:40