7
$\begingroup$

In version 11, initialization cells got a dedicated style which has a light gray background. How can I ensure that the background of this type of cell conforms to the actual stylesheet?

Compare below the two basic stylesheets, ReverseColor and Default. The initialization cell is barely readable with the reversed stylesheet.

Mathematica graphics

$\endgroup$
0

1 Answer 1

5
$\begingroup$

You need to add to the private stylesheet or edit the ReverseColor.nb with

Cell[StyleData["InitializationCell"], Background->GrayLevel[0]]

because it was missed somehow. E.g. "Code" cell has this fixed already:

Cell[StyleData["Code"],
  FontColor->GrayLevel[0.9],
  Background->GrayLevel[0]
]

p.s. Built in stylesheets can be edited safely when moved from $InstallationDirectory to appropriate directory in e.g $UserBaseDirectory. An example: Package editor interface

To make the copied stylesheet file editable, open Option Inspector (Ctrl+Shift+O), make sure that the Show option values field says Selected Notebook, find Notebook options > File options > Editable and set it to True.

$\endgroup$
2
  • $\begingroup$ I'd report that. $\endgroup$
    – Kuba
    Commented Aug 11, 2016 at 8:24
  • 1
    $\begingroup$ Thanks for the answer Kuba. Actually I've already reported it before posting here, but they are slower to provide a workaround, so I expected that someone here already knows the answer. $\endgroup$ Commented Aug 11, 2016 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.