In a style sheet there is this definition:

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


 ]& /@ {"CellFrame","CellMargins","CellFrameColor"}

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


Please, can you explain why ?

  • $\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

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 | |

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.