This is my first question on stackexchange!
I am using the tocloft package for my thesis and my university requires doublespacing before and after the chapter titles in the ToC, but only if the chapter has sections.
I am thinking that I will require some way to detect if the chapter has sections, or add a newline before the first section in each chapter. Can somebody suggest a way to achieve this?
Best Answer
If I understood your question, you can use the
etoolbox
package to hook to the\section
command to add a vertical spacing in the ToC if the section counter is one: