When there are no headlines, using SIDETOC still displays "(line) Table of Contents (line)" in the sidebar.
My desired behavior: when there are fewer than a minimum number of headlines (3), "Table of Contents" text and the remaining headlines should not be displayed, just like a normal TOC. Basically, appearance of the SIDETOC conditional on number of headlines on the current page.
How do I achieve this?
When there are no headlines, using SIDETOC still displays "(line) Table of Contents (line)" in the sidebar.
My desired behavior: when there are fewer than a minimum number of headlines (3), "Table of Contents" text and the remaining headlines should not be displayed, just like a normal TOC. Basically, appearance of the SIDETOC conditional on number of headlines on the current page.
How do I achieve this?