4

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

user5601
  • 3,573
  • 2
  • 24
  • 56
  • 2
    Something like: CellMargins -> {{Inherited + 10, 10}, {10, 5}}? – Carl Woll Mar 01 '17 at 23:15
  • @CarlWoll That's only for style inheritance - not cell groups in general, or am I wrong about that? – user5601 Mar 01 '17 at 23:35
  • @Mr.Wizard thanks, do my edits clear it up? – user5601 Mar 02 '17 at 00:56
  • 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? – Mr.Wizard Mar 02 '17 at 01:11
  • @Mr.Wizard Mr.Wizard ain't no dunce! – user5601 Mar 02 '17 at 01:23
  • 1
    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. – user5601 Mar 02 '17 at 01:29
  • Afaic you can not. Take a look at subitemparagraph and friends, they have those vales hardcoded. P.s. this was asked before I think. – Kuba Mar 02 '17 at 02:22
  • In a vague tangential way this is related to a question of my own: (346) – Mr.Wizard Mar 02 '17 at 17:57

0 Answers0