Is there a stylesheet property that can be set to control the extra level of indentation of a cell in its group (I don't want to specify absolute CellMargins)?

Carl suggests in the comments to use this in the stylesheet:

Cell[StyleData["Item"], CellMargins -> {{Inherited + 20, 10}, {10, 5}}]

which yields:

enter image description here

But this looks bad, I'd like them to be indented left-horizontally flush to their cell group's parent cell, plus a fixed about. Would look approximately like this (I used the ruler toolbar):

enter image description here

  • 2
    $\begingroup$ Something like: CellMargins -> {{Inherited + 10, 10}, {10, 5}}? $\endgroup$
    – Carl Woll
    Mar 1 '17 at 23:15
  • $\begingroup$ @CarlWoll That's only for style inheritance - not cell groups in general, or am I wrong about that? $\endgroup$
    – user5601
    Mar 1 '17 at 23:35
  • $\begingroup$ @Mr.Wizard thanks, do my edits clear it up? $\endgroup$
    – user5601
    Mar 2 '17 at 0:56
  • $\begingroup$ I'm probably just being a dunce (again) but I'm still not certain I understand. Perhaps you could manually edit the CellMargins for your example to show what your desired format would look like? $\endgroup$
    – Mr.Wizard
    Mar 2 '17 at 1:11
  • 1
    $\begingroup$ Could it be that stylesheets aren't expressive enough to deal with such a constraint? I wish that the documentation for Inherited was clearer about use cases involving cell groups and in stylesheets. $\endgroup$
    – user5601
    Mar 2 '17 at 1:29

Your Answer

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

Browse other questions tagged or ask your own question.