Including headings in mini-TOCs but not in the main TOC

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Including headings in mini-TOCs but not in the main TOC

Post by Ken S »

In PDF output, is there any way to include a heading level in the mini-TOCs but exclude (or hide) it in the main TOC? The reason I ask is that I would like to create a document with an abbreviated main TOC (containing one or two heading levels) and detailed TOCs at the beginning of each chapter (containing all heading levels within the chapter).

Thank you.
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Including headings in mini-TOCs but not in the main TOC

Post by GregStenhouse »

My initial thought was that you could play around with the target>printed output setting "Use TOC Depth for Heading Levels". But, it appears this setting applies to both the TOC proxy and mini-TOCs, you cannot set them separately for both.

Another option (untested) might be to set the relevant styles for the glossary proxy to Display:None. For example, try that for p.TOC3, p.TOC4 etc and see what happens.

Cheers
Greg
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Re: Including headings in mini-TOCs but not in the main TOC

Post by Ken S »

Thanks Greg.

I tried setting the p.TOCx tags to "display: none" in the CSS, but they continued to appear in the main TOC.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Including headings in mini-TOCs but not in the main TOC

Post by LTinker68 »

If you don't want a heading style (h1 to h6) to appear in the generated TOC, then you set its mc-heading-level to 0.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Ken S
Propeller Head
Posts: 26
Joined: Fri Aug 14, 2009 2:15 pm

Re: Including headings in mini-TOCs but not in the main TOC

Post by Ken S »

After some tinkering, I found a way to remove heading levels from the main TOC while keeping them in the chapter-level mini TOCs. I added the following CSS code to the MadCapBlaze.css file (under %Program Files%\MadCap Software\MadCap Flare V5\Flare.app\Resources\BlazeTargetCompiler):

Code: Select all

table.GenTOCTable#
{
	display: none;
}
Where # is the desired heading level.

Thank you for your suggestions.
Post Reply