New answers tagged


Carl Woll's answer using CurrentValue is definitely the way to go once you know exactly what properties you want, and you want to do so programmatically. To expand upon murray's answer using NotebookRead, and to perhaps provide an answer directed towards the title of your post, here is a method that uses NotebookRead to make a "handy dictionary" of ...


So I can show the pic: CurrentValue[{StyleDefinitions, "Text", CellMargins}] {{66, 10}, {7, 8}} CurrentValue[{StyleDefinitions, "Text", CellFrameMargins}] 8 Cell[ CellGroupData[ { Cell[ "top", "Text", FontColor -> White, Background -> Pink, CellMargins -> {{66, 10}, {0, 0}}...


Undoubtedly, there are commands to specify background colors for Default styles, but I found creating Private Style Definitions to be easy and convenient. With an open notebook, open the Format menu and choose Edit Stylesheet ... to create Then choose styles from the dropdown menu at the left and format them from the Format menu, in this case by choosing ...


you can use this command which makes the whole notebook light gray. But I don't know how to change the background of a single cell. SetOptions[EvaluationNotebook[], Background -> LightGray]

Top 50 recent answers are included