In my reference page when it generates it adds
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?
Copy link to clipboard
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?
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:
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.
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.
Thanks for the detailed reply! Yes that fixed it. Actually I changed the font and weight of the ChapterTitle TOC in the body page which is why it did not mesh with what you saw on the reference page. yeah I know I should change it in the reference page!