4
$\begingroup$

In a style sheet there is this definition:

Cell[
  StyleData["InputInert"], 
    CellFrame -> {{5, 1}, {1, 1}}, 
    CellMargins -> {{66, 10}, {5, 10}}, 
    CellFrameColor -> RGBColor[0, 0.501961, 0.752941], 
    MenuSortingValue -> 10000
]

but

CurrentValue[
  Cell[
    StyleData["InputInert"]
  ],#
 ]& /@ {"CellFrame","CellMargins","CellFrameColor"}

returns for some options the corresponding value (CellMargins), whereas for some others a different one (CellFrame or CellFrameColor):

{True,{{66,10},{5,10}},GrayLevel[0.85]}

Please, can you explain why ?

$\endgroup$
  • $\begingroup$ Where did you get that CurrentValue with StyleData syntax from? $\endgroup$ – Kuba Feb 23 '16 at 6:51
  • $\begingroup$ I'm sorry, it comes from am ancient scratchpad notebook and I have no way to trace back its sources. But most likely it's from this community or some improvisation. $\endgroup$ – mitochondrial Feb 23 '16 at 12:03
3
$\begingroup$

If you add the style to the notebook's stylesheet and then tweak your command to this:

CurrentValue[{StyleDefinitions, "InputInert", #}] & /@ {CellFrame, 
      CellMargins, CellFrameColor}

You'll get the right response:

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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