Skip to main content
March 6, 2009
Question

Heading 1 level missing from TOC?

  • March 6, 2009
  • 11 replies
  • 4831 views
I have this little RH 7 sample project.

When converting to PDF using 'Printed Documentation Wizard', the primary Heading 1 level is NOT included in the MS Word/PDF 'Table of Contents'.
I'm not using any MS Word templates, just the project's CSS styles.
Arcrobat PDFMaker settings in MS Word are set to default and include Heading 1-9.

I've searched and searched but I don't know how to include this Heading 1 level in the TOC.

When checking the MS Word 2003 document through Insert >> Reference >> Index and Tables, the Heading 1 level is missing from the tab 'Table of Contents'.
When adding the Heading 1 level there through 'Options' button, the TOC updates correctly, but I don't know how to include this Heading 1 level through RH.

Sample project here

A note on the sample project:
You'll see that every topic title associated with TOC book is excluded from PDF through conditional build tags.
This was done so prevent titles from being printed twice in PDF.

For example, in the TOC there's an item titled 'Balance sheet', the associated topic Balance_sheet.htm has exactly the same title 'Balance sheet'.
To prevent this title from being printed twice in PDF, the topic title was excluded through conditional build tag.

Any help would be appreciated.

Best regards,
Herman
This topic has been closed for replies.

11 replies

March 10, 2009
> I do have a WebEx toolbar in MS Word that is not installed on the PC that creates the correct TOC. I don't know how it's integrated but it doesn't show as an add-in. I'll nevertheless uninstall WebEx and try again.

Doesn't change a thing :-(

I'll try your other suggestions. Thanks Peter.
Peter Grainge
Community Expert
Community Expert
March 10, 2009
Running out of ideas now.

1] Try one of the supplied sample projects.

2] Try a repair of Word.

3] Try an uninstall and reinstall of RH.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
March 10, 2009
BTW, I checked for other installed MS Word add-ins. There a no add-ins installed.

I do have a WebEx toolbar in MS Word that is not installed on the PC that creates the correct TOC. I don't know how it's integrated but it doesn't show as an add-in. I'll nevertheless uninstall WebEx and try again.
March 10, 2009
> This is sounding more like a Word issue.

I agree

> 1] Do you also get different problems on your machine if you generate with no build expression? I am expecting a Yes but want to check.

Yes, I get the duplication of headers that I was trying to avoid. TOC is still WITHOUT heading 1 levels (Intro, Balance sheet etc.)

> 2] Try using Style Mapping template instead of CSS Styles.

Tried Style Mapping.dot plus other MS Word template. I'm still getting incorrect TOCs.

> 3] Rename you Normal.dot and open Word so that it creates a new one. Try again. Afterwards, trash the new template and restore the old one.

Did that. Compiled with 'None-Use the Project's CSS Styles' plus Style Mapping.dot. I get incorrect TOCs

Herman
Peter Grainge
Community Expert
Community Expert
March 10, 2009
This is sounding more like a Word issue. With similar issues in the past, that tab has been OK and the problem has been elsewhere.

1] Do you also get different problems on your machine if you generate with no build expression? I am expecting a Yes but want to check.

2] Try using Style Mapping template instead of CSS Styles.

3] Rename you Normal.dot and open Word so that it creates a new one. Try again. Afterwards, trash the new template and restore the old one.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
March 10, 2009
> Try generating on the rogue machine to just Word, not the PDF. When the document opens in Word instead of reinserting the TOC, right click to the right of the TOC and select Update Field. Does that correct it?

No.

To correct the TOC in MS Word, I have to go to Insert >> Reference >> Index and Tables. The Heading 1 level is missing from the tab 'Table of Contents'.
When adding the Heading 1 level there through 'Options' button, the TOC updates correctly.
March 9, 2009
> > Are you sure the print layout is 100% the same on both PCs, particularly the Build Expression?
> I'll check again this evening when I have access to the other PC.

I took a copy of the project on the rogue machine, copied it to the second machine, ran the printed documentation wizard and checked the settings. The result is as expected. I get the TOC with the correct headings, the second one in my PDF.

In the meantime I've also compiled the printed documentation on a third PC (with XP + PDF plugin that comes with RoboHelp). The result is the wrong TOC, the first one in my PDF.

> Try generating on the rogue machine to just Word, not the PDF. When the document opens in Word instead of reinserting the TOC, right click to the right of the TOC and select Update Field. Does that correct it?

I'll try that tomorrow when I have access to that PC.

Very weird.

Thanks again Peter.

Herman
Peter Grainge
Community Expert
Community Expert
March 9, 2009
I realised that I generated the document after seeing the build expression and jumping to the conclusion that was to blame.

I have now generated the document with and without it.

WITH - I get the duplication that you are trying to avoid.

WITHOUT - I get the TOC with just the correct headings, the second one in your PDF.

So I am getting the same result as on your second machine, the correct result, meaning we are not really any futher forward.

Try generating on the rogue machine to just Word, not the PDF. When the document opens in Word instead of reinserting the TOC, right click to the right of the TOC and select Update Field. Does that correct it?

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
March 9, 2009
> Are you sure the print layout is 100% the same on both PCs, particularly the Build Expression?

I'll check again this evening when I have access to the other PC.

Thanks Peter!
Peter Grainge
Community Expert
Community Expert
March 9, 2009
Are you sure the print layout is 100% the same on both PCs, particularly the Build Expression?

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.