I'm trying to create a style for TOC entries for book section titles. I would like to have slightly more space vertically between these section titles and either other section titles or subsection titles, like so:
and so on. To do that, I can readily add space before and space after for the section title style. The problem comes when there are two section titles together with no intervening subsections, like 2 and 3 in the example above. Then the space between these titles is doubled. If I define either a nonzero space before or space after, but not both, then the titles will not be spaced properly in areas where there are subsections either below or above a section title. Does anyone know of a way to achieve consistent spacing?
Thanks in advance for any advice!
Make a third style for the case where there are two section titles together.
Sometimes you just have to go in and apply a manual override...