Page 1 of 1

TOC proxy limit to only heading h1

Posted: Fri Jul 19, 2024 3:28 am
by henkjans
Good day,

I currently use a "TOC proxy" in a PDF manual that shows all chapters (h1) and all underlying paragraphs (h2, - h5).

I would like to limit the "TOC proxy" to show just h1 (and maybe h2).
Inside each chapter I use a "mini TOC proxy" that shows paragraphs h2 - h5.

Does anyone know how to limit the "TOC proxy" to h1 (and h2)?

Re: TOC proxy limit to only heading h1

Posted: Sun Jul 21, 2024 4:31 pm
by robdocsmith
TOC depth in the main TOC proxy is set on the Heading styles themselves. H1-6 styles with an "mc-heading-level" greater than zero will display in the TOC.
So set the following:

Code: Select all

h1
{
    mc-heading-level: 1;
}
h2,h3,h4,h5,h6
{
    mc-heading-level: 0;
}
Will only include the h1 level into the main TOC. If you wanted the h2's included, set those to "mc-heading-level:2;"

TOC depth for mini-tocs are relative to the level of the file they are contained in and are set on the mini-toc proxy themselves. Right click the mini-toc proxy and set the depth. You'll see the property set in the .htm file itself:

Code: Select all

<MadCap:miniTocProxy style="mc-toc-depth: 2;" MadCap:conditions="Gen.DeliveryOnline" />

Re: TOC proxy limit to only heading h1

Posted: Mon Jul 22, 2024 11:13 pm
by henkjans
thank you so much Robdocsmith