Include a word in the TOC that doesn't appear in the heading

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
yossikarp
Propeller Head
Posts: 33
Joined: Sun Apr 06, 2014 4:13 am
Location: Israel

Include a word in the TOC that doesn't appear in the heading

Post by yossikarp »

Hi, Forum.

Is there a way to include a word in the TOC that doesn't appear in the actual heading in the PDF?

Specifically, I want to add the word "NEW" to an entry in the TOC, but I don't want it appearing as part of the H2 in the topic itself. Can that be done?

Thanks for your help,

Yossi Karp
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Include a word in the TOC that doesn't appear in the hea

Post by ChoccieMuffin »

Try this:

Create a span to apply to the word NEW and add it to the stylesheet used for your PDF:

span.hidden
{
display: none;
}

In your topic, apply span.hidden to the word NEW and the space after.

Generate your PDF and see what happens!
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
yossikarp
Propeller Head
Posts: 33
Joined: Sun Apr 06, 2014 4:13 am
Location: Israel

Re: Include a word in the TOC that doesn't appear in the hea

Post by yossikarp »

It works! Thank you so much for this. I didn't realize that display.none shows in the TOC.

Well, learn something new every day :lol:

Appreciated.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Include a word in the TOC that doesn't appear in the hea

Post by ChoccieMuffin »

No, I didn't realise either, so I've solved a problem I was having too, so thanks for asking the question!!! :-D
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