Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • You've made a comment but apparently deleted it, something about grouping? Commented Jul 2, 2015 at 20:41
  • @ChristianHupfer - Yeah, sorry about that. I was debating whether I would post it as a distinct question or not. I got an excellent answer more common to the spirit of the original attempts I had made using the code in the linked questions, and started to feel sort of bad about asking to change it, so I deleted it. I will restate it below in case it's actually a trivial change. Commented Jul 3, 2015 at 1:57
  • @ChristianHupfer - My grouping question was pointing out that I made a bad example in the MWE. The block quote is actually more relevant. If I include 2 chapters with figures in a single part, using your solution below I get a repetition of the common part title above each chapter. As the quote block above describes it would be best if there was not repetition. Commented Jul 3, 2015 at 2:00
  • I am confused. Do you really use my MWE or is there anything in the real document you want to obtain that changes something? I'll add a screenshot about the output of my 'solution'. There is only one part title per chapter group. However, the culprit is, that there is also a part title when chapters without figures are included. That should be changed, in my point of view. Commented Jul 3, 2015 at 6:45
  • @ChristianHupfer - "There is also a part title when chapters without figures are included". I am a little surprised at this behaviour, I guess I don't fully understand what is responsible for this. I only have 1 part in my document that has figures, and they are in two sequential chapters. This problem would make sense if there was a chapter without figures in between to chapters, but I guess it does make a certain amount of sense that any missing chapter would mess up the counters... I am updating my question above to include the screenshot your solution MWE output gives me. Commented Jul 3, 2015 at 13:44