TOC proxy limit to only heading h1

This forum is for all Flare issues not related to any of the other categories.
Post Reply
henkjans
Sr. Propeller Head
Posts: 104
Joined: Wed Feb 02, 2011 1:59 am

TOC proxy limit to only heading h1

Post 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)?
Thanks,
Henk Jan Schut
The Netherlands
robdocsmith
Sr. Propeller Head
Posts: 271
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: TOC proxy limit to only heading h1

Post 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" />
henkjans
Sr. Propeller Head
Posts: 104
Joined: Wed Feb 02, 2011 1:59 am

Re: TOC proxy limit to only heading h1

Post by henkjans »

thank you so much Robdocsmith
Thanks,
Henk Jan Schut
The Netherlands
Post Reply