Skip to main content
Inspiring
November 11, 2017
Answered

Chapter title in TOC inserts a "1"

  • November 11, 2017
  • 4 replies
  • 589 views

In my reference page when it generates it adds

<$paratext> <$pagenum>

openXmlElementId <$relfilename>:<$UniqueXmlElementId> <$RelativeXmlElementId>

openObjectId <$relfilename>:<$ObjectType> <$ObjectId>

And each chapter gets a "1" beside it in the TOC. I don't want the number to appear at all.

Why does it keep adding the line above when I delete it?

    This topic has been closed for replies.
    Correct answer Matt-Tech Comm Tools

    Thanks for posting the image!

    *The quick answer to your problem:

    Remove the <$pagenum> block from the line controlling the chapter title from the TOC reference page.

    More detail:

    The "1" is the page number created by the <$pagenum> building block.

    It appears there are a number of definitions that aren't being used on the reference page, so you need to do a little investigation.

    First, note the paragraph style used to control your chapter title.

    Then search through each entry (all the lines starting in <$paratext> for the paragraph style noted above, with TOC (e.g. ChapterTitleTOC) There may be more than one paragraph with that style.

    Remove the <$paranum> building block and update your book.

    Also: you may have more than one TOC reference page. The page you showed me doesn't have an entry that seems to match with your current TOC. Look for a TOC reference page (or TOC text flow on a reference page) that precedes the one you showed. You may find that it is the one that is actually controlling your TOC.

    If it's still driving you nuts next week, send me the file and I'll check it out. I'll be away from email until Monday morning, Pacific time zone.

    4 replies

    Matt-Tech Comm Tools
    Community Expert
    Community Expert
    November 11, 2017

    The <$paratext> <$pagenum> it keeps creating is the paragraph format you need to modify.

    I'm not sure what you're attempting to do...

    Can you post an image of both the TOC body page and the reference page as they exist right now, and also an image of what you want the TOC to look like when it's generated?

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant
    Inspiring
    November 11, 2017

    Here is a section of the body page in the TOC. I want to eliminate the "1".

    The line at the top of the Reference page keeps coming back after I delete it:

    Matt-Tech Comm Tools
    Community Expert
    Matt-Tech Comm ToolsCommunity ExpertCorrect answer
    Community Expert
    November 11, 2017

    Thanks for posting the image!

    *The quick answer to your problem:

    Remove the <$pagenum> block from the line controlling the chapter title from the TOC reference page.

    More detail:

    The "1" is the page number created by the <$pagenum> building block.

    It appears there are a number of definitions that aren't being used on the reference page, so you need to do a little investigation.

    First, note the paragraph style used to control your chapter title.

    Then search through each entry (all the lines starting in <$paratext> for the paragraph style noted above, with TOC (e.g. ChapterTitleTOC) There may be more than one paragraph with that style.

    Remove the <$paranum> building block and update your book.

    Also: you may have more than one TOC reference page. The page you showed me doesn't have an entry that seems to match with your current TOC. Look for a TOC reference page (or TOC text flow on a reference page) that precedes the one you showed. You may find that it is the one that is actually controlling your TOC.

    If it's still driving you nuts next week, send me the file and I'll check it out. I'll be away from email until Monday morning, Pacific time zone.

    -Matt Sullivan, FrameMaker Course Creator, Author, Trainer, Consultant