TOC with H1 & H2 only, excl. Table of Contents entry

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Mina
Jr. Propeller Head
Posts: 6
Joined: Wed Sep 18, 2019 2:18 am

TOC with H1 & H2 only, excl. Table of Contents entry

Post by Mina »

I am trying to create a TOC for PDF output and I need to remove or hide the highlighted entry.

I found a article online that suggested changing the TOC heading in the topic to H4, then amend the H4.TOC style to be transparent and hidden. I have tried everything I can think of and nothing is helping.

This is my table of contents topic

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
    <head>
        <link href="../Resources/Stylesheets/Test.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h4>Table Of Contents</h4>
        <MadCap:tocProxy />
    </body>
</html>
H4 and H4.TOC stylesheet

Code: Select all

h4
	{
		font-style: normal;
		margin-top: 6pt;
		margin-bottom: 24pt;
		mc-hyphenate: never;
		font-variant: normal;
		padding-top: 24pt;
		padding-bottom: 0pt;
		font-weight: normal;
		mc-auto-number-position: none;
		visibility: hidden;
		color: transparent;
		font-size: -6.2pt;
		mc-toc-depth: 0;
	}

	h4.TOC
	{
		mc-heading-level: 9;
		visibility: hidden;
		color: transparent;
		font-size: 1;
	}
You do not have the required permissions to view the files attached to this post.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: TOC with H1 & H2 only, excl. Table of Contents entry

Post by ChoccieMuffin »

Create H1.TOC make it mc-heading-level:0 and no auto-numbering, apply that style to your Table of Contents heading. Sorted!
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
Post Reply