I’m wanting to make an automatically generated table of contents for my project, and followed a tutorial on scrivenerville using the Edit>Copy Special and so on steps. However, whenever I compile my project as a PDF the page numbers are incorrect in the final file, listing only the numbers 2, 3 and 4 alongside the chapter headings for reasons unclear.
I’m assuming there is something I’m missing either in the compile or project settings but which is not listed in the tutorial. I would appreciate anybodys help here to save me manually typing in all the page numbers myself!
Are you compiling only the ToC or the Front Matter?
You need alle pages to make the link of the page numbers working.
1 Like
No, I’m compiling the TOC and my project together. I should mention I’m on Windows.
The compilation should not influence your page numbers stream <$P>. Are you resetting the page count in a Section Layout somehow?
Maybe a screenshot could clarify why this happens?
Well my project is laid out with a main folder, monthly subfolders in that folder, and then individual files in each of those subfolders, so does this structure perhaps interfere with the automatic page numbering?
Do your documents have a Section Layout with a Separator for a New Page? Otherwise every doc will add to the same page and you will have as many pages as months.
Your description of the problem is also unclear.
First of all, the automatic table of contents exists only for eBooks, and it’s automatic, meaning you don’t have to do anything to create it (except to give section breaks to documents you want in the ToC) … but then there’d be no page numbers, since eBooks don’t have pages.
So you’re creating a manually generated ToC. Are there only three chapters in the book, and the problem is that page numbers start with 2 instead of 3? Probably not, since chapters probably use more than one page. In that case, the ToC doesn’t seem to be numbered with the <$p> placeholder. Show us what the ToC looks like in Scrivener, and everything will be a lot more clear.
PDFs have multiple pages, no matter what the Separators are.
Compilation creates the page numbers.
I don’t think that’s possible.