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?
Suppressing heading from Print TOC when using TOC Depth
-
- 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
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.
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
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Suppressing heading from Print TOC when using TOC Depth
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.
Re: Suppressing heading from Print TOC when using TOC Depth
Solved it with some help - I had the mc-heading-level set on the madcap-tocProxy style. It needed to be clear.