Skip to main content
Almtuna
Inspiring
February 28, 2022
Question

TOC problems FM2019, poor indentation etc

As described in my previous post https://community.adobe.com/t5/framemaker-discussions/navigation-panel-problem-responsible-html5/td-p/12769011, I have created an additional "Heading 1 new html page", to add the choice to have a new html page for each such heading. This paragraph style is a copy of the old Heading 1. For the TOC I have created a copy of Heading 1TOC, called Heading 1 new html pageTOC.

 

This works fine when I publish as Responsible HTML5. But I also publish pdf.

 

The TOC looks a bit odd - in at least 3 ways.

 

1) The new Heading1 new html page entries have the correct font, size etc, but the page number isn't right justifed (as for the regular Heading 1.) There seems to be a missing <tab>. (If I enter it manually in the TOC, it looks fine until the next update, when the tab's are lost.)

 

2) The TOC indentation is messed up. All Heading 2TOC entries in a chapter having the new Heading1 new html page have been moved to the left.

 

 

 

3) A chapter following a chapter having the new Heading1 new html page, will be on a new page in the TOC.

 

How can I make the new "Heading 1 new html pageTOC" to behave just as the original "Heading 1TOC"?

 

    Ce sujet a été fermé aux réponses.

    1 commentaire

    Bob_Niland
    Community Expert
    Community Expert
    February 28, 2022

    Chances are that anyone with insight will need to see what you have on Reference Page TOC in the xxxTOC.fm file and may also need some details for the Paragraph Formats therein applied.

    Bob_Niland
    Community Expert
    Community Expert
    February 28, 2022

    re: Reference Page? That's a new world to me.

    In your file with a name ending in …TOC.fm.
    View » Reference Pages
    Page forward or back to the page named "TOC".
    You'll see some markup there, for example:
    openXmlElementId <$relfilename>:<$UniqueXmlElementId> <$RelativeXmlElementId>¶
    <$paratext> <$pagenum>¶
    openObjectId <$relfilename>:<$ObjectType> <$ObjectId>¶
    <$paratext> <$pagenum>¶
    <$paratext> <$pagenum>¶
    <$paratext> <$pagenum>§

    Each one of those lines is a separate paragraph, with a separate Paragraph Format, auto-created by FM when you first generated the TOC. In the example above, the bottom line is ¶ Heading2TOC.
    The Paragraph Formats of each of those lines controls how they render into the published TOCs.

    Almtuna
    AlmtunaAuteur
    Inspiring
    March 1, 2022

    Various RPs are indeed intended to be edited, including TOC, but it requires knowing how they work. I rarely find it necessary to actually edit RP TOC, but do routinely modify the Paragraph Catalog for formats with names ending in …TOC.

    A generated …TOC.fm file contains {optionally} some hand-entered leading static text, but everything else is going to be auto-created format named paranameTOC, based on what you specified for paranames during Insert » Create TOC. Reference Page TOC is consulted during regeneration and render of the …TOC.fm file, but only for the generated paras. Anything else on the RP is ignored.

    Now, getting the TOC to look as desired for PDF is one thing (and relatively straightforward). Getting the HTML export to be ideal can present additional challenges (and is not a workflow I'm really familiar with).


    Now, getting the TOC to look as desired for PDF is one thing (and relatively straightforward). Getting the HTML export to be ideal can present additional challenges (and is not a workflow I'm really familiar with).

     

    Let's start with the PDF TOC look as desired. (I *think* I've got the HTML5 output as desired already.)