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

How to generate table of contents from headings in HTM files

Guest
Apr 07, 2011 Apr 07, 2011

Hi -

I have created approximately 20 HTM files.  Each HTM file contains heading tags (<h1>, <h2>, ...).  We would like the "Contents" tab in the CHM file to follow the headings in the HTM file.  Here is an example.  Suppose the first HTM file contains the following

<h1>File1 Heading1</h1>

<h2>File1 Heading2</h2>

and the second HTM file contains the following

<h1>File2 Heading1</h1>

<h2>File2 Heading2</h2>

Then in the "Contents" tab of the CHM file we would like to see the following

File1 Heading1

File1 Heading2

File2 Heading1

File2 Heading2

When I edit the table of contents in RoboHelp it looks like I need to manually create the books and pages.  That is going to be quite a bit of maintenance for us.  Is there any way to automatically generate the table of contents from the headings?

Any help on this would be greatly appreciated.

Thank you -

Karen Ahmad

863
Translate
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 08, 2011 Apr 08, 2011

I haven't seen anyone publish a way of achieving this. Auto-create is based on folders in project manager rather than headings so that will not help you.

To get headings within topics you will need to create bookmarks. That is going to be a lot of work. The norm is H1 only as otherwise you end up with a massive TOC and it becomes self defeating as a means of navigation.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
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
Guest
Apr 08, 2011 Apr 08, 2011

Thanks for your response.

I'm not sure if this affects your answer.  But, the indenting in my original message did not stick when I posted it.  I'll try illustrating again using bullets.

  • File1 Heading1

    • File1 Heading2

  • File2 Heading1

    • File2 Heading2

So, in the above example both of the Heading1 entries would be books and both of the Heading2 entries would be pages.

Any help on this would be greatly appreciated.

Thank you -

Karen Ahmad

Translate
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 08, 2011 Apr 08, 2011
LATEST

The books are not based on topics or headings. Either you create them or auto create does from the folders.

The topics are based on the topic title, regardless of heading.

Have I understood?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
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