Suppressing heading from Print TOC when using TOC Depth

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Madeline
Propeller Head
Posts: 40
Joined: Thu Sep 14, 2017 7:49 pm

Suppressing heading from Print TOC when using TOC Depth

Post by Madeline »

hi,

I've been going round in circles for a couple of hours. Basically, I have topic containing the TOC proxy for the PDF output:
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="2" MadCap:lastHeight="94" MadCap:lastWidth="720">
<head>
</head>
<body>
<h1 class="NoTOC">Test</h1>
<MadCap:tocProxy />
</body>
</html>

I don't want the H1 to display in the print TOC so created the h1.NoTOC style with mc-heading-level set to 0. But because I'm using the 'Use TOC Depth for heading levels' method, applying the h1.NoTOC style means no print TOC is displayed.

Is it possible to suppress headings (specifically the one in the topic containing the TOC proxy) from displaying in the generated print TOC?
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Suppressing heading from Print TOC when using TOC Depth

Post by ChoccieMuffin »

I have a separate page layout that I use for the table of contents which contains my Contents heading, and apply that page layout to the topic that contains the TOC. That way I don't need to have the line "<h1 class="NoTOC">Test</h1>" in my topic.

Give that a go and see how you get on.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Madeline
Propeller Head
Posts: 40
Joined: Thu Sep 14, 2017 7:49 pm

Re: Suppressing heading from Print TOC when using TOC Depth

Post by Madeline »

That works thank you but when I select the 'Use TOC depth for heading level' option on the target, the generated TOC doesn't display in the print output at all? I don't understand why these are related.
Madeline
Propeller Head
Posts: 40
Joined: Thu Sep 14, 2017 7:49 pm

Re: Suppressing heading from Print TOC when using TOC Depth

Post by Madeline »

Solved it with some help - I had the mc-heading-level set on the madcap-tocProxy style. It needed to be clear.
Post Reply