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

TOC problems FM2019, poor indentation etc

Engaged ,
Feb 28, 2022 Feb 28, 2022

As described in my previous post https://community.adobe.com/t5/framemaker-discussions/navigation-panel-problem-responsible-html5/td-... 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.

 

pdfTOC.JPG

 

 

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"?

 

864
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 ,
Feb 28, 2022 Feb 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.

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
Engaged ,
Feb 28, 2022 Feb 28, 2022

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

Which part of it? Here's one (of 2) part of it where Heading 1 is mentioned:

refpage1.JPG

(Also found in HTML Mapping Table.)

 

I did just add the new Heading 1 new html page to the table, but no changes in the output.

 

Paragraph Format? Which ones? I have compared the values found in the paragraph designer for the old and new Heading 1 styles, and I can't find any differences.

 

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 ,
Feb 28, 2022 Feb 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.

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
Engaged ,
Feb 28, 2022 Feb 28, 2022


This is how it looks:

refpage2.JPG

How do I which line which belongs to which Paragraph Format?

Should I add an entry for my new "Heading 1" here?

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 ,
Feb 28, 2022 Feb 28, 2022

One of those <$paratext> lines should already be in Heading1TOC format.

Click in each and see what's reported in the window footer, or Paragraph Designer.

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
Engaged ,
Feb 28, 2022 Feb 28, 2022

One of them where in (the old) Heading1TOC format. I have now made a copy of it for my new "Heading1 new htmlpageTOC".

 

The following Heading 2TOC entreis now are properly indentated.

 

But the "Heading1 new htmlpageTOC" still has no right justified page numbers. (And the following Chapter still starts on a new page in the TOC.)

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 ,
Feb 28, 2022 Feb 28, 2022

re: One of them where in (the old) Heading1TOC format. I have now made a copy of it for my new "Heading1 new htmlpageTOC".

Why did you do that?
If a TOC refpage contains a format not auto-created by FM, FM is unlikely to use it for anything.

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
Engaged ,
Feb 28, 2022 Feb 28, 2022

Pure trial and error.

Am I not supposed to edit the reference pages? How am I then supposed to get my new Heading style work properly?

 

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 ,
Feb 28, 2022 Feb 28, 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).

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
Engaged ,
Mar 01, 2022 Mar 01, 2022
LATEST

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.)

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