• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to omit headings or pages from the ToC?

Explorer ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

I finally got all my projects updated to 2022.1 with all the output working and looking as expected.

Today, I installed the Update 2. Now the ToCs for my PDFs have page numbers for the headings on the cover page and the ToC itself, where they didn't before.

Update 1:

defaultbt4uzj77vtg6_0-1680545548558.png

Update 2:

defaultbt4uzj77vtg6_1-1680545566510.png

 

Is there a tried and true way to omit specific headings (or pages) from the ToC? The Cover page uses cover-specific classes on the H1 and H2. How can I set the ToC to exclude them (and the Contents page itself)?

Views

418

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Apr 04, 2023 Apr 04, 2023

Just to add on - I had the same issues when i started using rh 2022.  I only encountered these issues when using the PDF templates: Prime and Hi-Tech.  They kept printing ghost TOC entries also randomly repeating some chapters.  I switched to basic and have not hit the issue since.  

Votes

Translate

Translate
Community Expert ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

I'm not up on TOC creation in the New UI versions, but don't you have to have everything in the TOC if you want it included in the output? Then you just have to hide all the parts you don't want to appear in TOC.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

Are you saying to remove the "front matter" section from the ToC if I don't want it in the ToC? How does it get included in the PDF if it's not present in the ToC?

I tried enabling "Hide in output" for the "content properties" but a) that option's available only on the Cover Page topic, not on the TOC Page, and b) that didn't resolve the issue anyway. 😛

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

My understanding is that it has to exist in the TOC to get into the output. But topics can be set to hide in the TOC as you've found. That should deal with the Cover topic at least. The issue with the TOC page is a bit stranger - it seems like you must show that one, because if you hid it, how would you be able to navigate to the other topics? Maybe Peter will have some ideas tomorrow. Maybe going the Word route and customizing there is the way to go?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2023 Apr 04, 2023

Copy link to clipboard

Copied

2022 introduced templates and the cover page does not go into the TOC.

 

In a new project I created this structure in the book TOC, which I named Print.

 

image.png

 

The cover page comes from the template chosen, in this case I selected the PDF > Prime template. I then generated without any customisation and the cover page comes in as part of the template.

 

Check your set up for the TOC is similar. Then add a new template PDF > Prime and see if that fixes things.

 

It may not be customised as you want but that we can deal with once past this hurdle.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 04, 2023 Apr 04, 2023

Copy link to clipboard

Copied

Thank you, Peter! That was helpful.

I've moved the cover page to the publish/template section and removed it from the "front matter." The PDF generates great -- the cover looks good, the ToC comes right after...

But the ToC still includes the cover page as page 1 (along with the blank subtitle), and the Contents showing on page 2 as shown in my "Update 2" screenshot. <head exploding emoji>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2023 Apr 04, 2023

Copy link to clipboard

Copied

This is the area where I suspect something is wrong.

 

image.png

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 04, 2023 Apr 04, 2023

Copy link to clipboard

Copied

Just to add on - I had the same issues when i started using rh 2022.  I only encountered these issues when using the PDF templates: Prime and Hi-Tech.  They kept printing ghost TOC entries also randomly repeating some chapters.  I switched to basic and have not hit the issue since.  

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 05, 2023 Apr 05, 2023

Copy link to clipboard

Copied

LATEST

Thanks for this! I created another PDF template based on the Basic and the problems went away. (The previous templates were "converted" during the RH 2020->2022 update). I'll start there and customize. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp