I want to create a notebook where the background is one color, the input cells are another color, and the output cells are white. I have tried messing around with Option Inspector and creating a custom style sheet, but it all cases I cannot get the background and the input cells to have a different color. Any thoughts?
1 Answer
You can do this by editing the private stylesheet (see other SE questions about this):
which gives:
or evaluate this, which can be inferred from other questions on this site about style sheeting:
SetOptions[EvaluationNotebook[],
StyleDefinitions ->
Notebook[{Cell[StyleData[StyleDefinitions -> "Default.nb"]],
Cell[StyleData["Notebook"], Background -> GrayLevel[0.5]],
Cell[StyleData["Input"], Background -> RGBColor[0.87, 0.94, 1]],
Cell[StyleData["Output"], Background -> GrayLevel[1]]},
StyleDefinitions -> "PrivateStylesheetFormatting.nb"]
]
Background->RGBColor[1,1,0]
,; for "Notebook" addBackground->RGBColor[1,1,0]
; for "Output" addBackground->GrayLevel[1]
$\endgroup$