Copy link to clipboard
Copied
I'm having a problem that I found several previous posts about, but none of them solve my problem. Three chapters are missing from my TOC (Abstract, Intro, and Chapter 1), and I can't figure it out. Here's what I've done after reading the posts:
1. Checked the paragraph styles, which are all correct. I synchronized the book using a chapter that is included in the TOC just to make sure
2. Checked that the text in the naughty chapters aren't on hidden layers and selected "include text on hidden layers" just to be extra thorough
3. I have no style groupings in this book, so that's not the problem
Attached are screenshots of my TOC creation box and the test TOC, plus a shot of the book file with the missing chapter highlighted.
I'm happy to share the TOC file and one naughty and one nice chapter.
Thanks for any help!
Susan
[...] but changing the type of story seems quicker.
By @Susan Culligan
OK, I should've checked before posting 😉
You need to crate a new TextFrame - connect it to the first TextFrame of your old Story:
then delete this new TextFrame:
Then, when you create TOC - it won't automatically replace your main story:
Copy link to clipboard
Copied
Please click my nickname and send me link privately.
Copy link to clipboard
Copied
I don't rember if you work on Windows, but if you do, then you could use free version of my ID-Tasker tool - you could just open a "good" and a "bad" file, load all ParaStyles, sort by Name and check if you've all the same styles in both files.
Copy link to clipboard
Copied
Check, if the paragraph styles of the headlines and their folders have exactly the same name. Those are case sensitive and a space at the end of a style name makes an invisible difference.
Copy link to clipboard
Copied
Hi Susan:
As per Willi, this is often the case of a slight difference in style names. If that is what the problem is, you'll see the variation in the right column, but you've scrolled too far down right for us to see it in your screen shot.
If that's not it, I'm also happy to take a quick look at your files.
~Barb
Copy link to clipboard
Copied
Thanks, here are
I've loaded the relevant Chapter 2 Paragraph Styles into all the naughty files, so I know they're the same.
If you (or anyone) can figure this out, may blessings fall upon your head.
Thanks,
Susan
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I know 😄
Somehow, you've re-used TOC Story as your "body" story.
I got to this by trying to create Index - in the same document - and your "body" text - vanished.
Copy link to clipboard
Copied
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#StoryTypes.html
Name |
Description |
Value |
---|---|---|
StoryTypes.ENDNOTE_STORY |
The story is an endnote story |
1701737332 |
StoryTypes.INDEXING_STORY |
The story is an index. |
1768190836 |
StoryTypes.REGULAR_STORY |
The story is a regular text story. |
1919382388 |
StoryTypes.TOC_STORY |
The story is a table of contents. |
1953461108 |
Copy link to clipboard
Copied
Unfortunately, I don't have any idea what this means or how to fix it. I could have run a TOC from another file by mistake, as Barb mentioned. But how do I change the type of story in the naughty docs?
Barb fixed Ch1, and I could do that with the other three docs, but changing the type of story seems quicker.
Oy!
Copy link to clipboard
Copied
StoryType property is read-only so you need to copy your text to a completely new TextFrame and reflow - either in the same document or in a new document - create a new Story.
The old, wrong Story needs to be deleted.
Copy link to clipboard
Copied
[...] but changing the type of story seems quicker.
By @Susan Culligan
OK, I should've checked before posting 😉
You need to crate a new TextFrame - connect it to the first TextFrame of your old Story:
then delete this new TextFrame:
Then, when you create TOC - it won't automatically replace your main story:
Copy link to clipboard
Copied
Yahoo! Genius! It worked perfectly. Thank you so so much, I've spent a week trying to figure this out. This was the last step in finishing an Epub file and uploading to Amazon.
You're a prince!
SC
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you for trusting us with your files, Susan. I'm happy to remove them for your privacy after you are clear on the answer.
So I took a very close look at your files and couldn't find any reason why the content isn't being pulled into the TOC.
I finally created a new file, copied the ch01 text and pasted it in the new file. I didn't change anything other than saving it and adding it to the book and it worked exactly as expected. This points to corruption in the ch01 file (that saving as .idml didn't fix).
My recommendation is that you move the ch01 content to a new file. This would be simplied/streamlined by opening a working chapter like ch02, saving it under a new name and then replacing the ch02 content with the ch01 content. Add it to the book and update. If it pulls in the content then you can stop and review the new ch01 to make sure everything is in place.
~Barb
Copy link to clipboard
Copied
There is no corruption.
Copy link to clipboard
Copied
This is fascinating, Susan. Did you inadvertently create a TOC in ch01, delete it and then flow in the text? Or base ch01 on the TOC chapter? I've never seen this before.
~Barb
Find more inspiration, events, and resources on the new Adobe Community
Explore Now