I’m generating a table of contents by selecting documents in the binder, and doing Edit -> Copy Special -> Copy Documents as ToC. Then I paste it into a ToC document. When I compile to a PDF, the Table of Contents is generated, but the page numbers are wrong. Instead of having the page numbers of all the chapters, it looks like its putting the the page number of the current page of the ToC section. So for example, I have a 1,000 page book, but all the chapter entries in the ToC show as page 1, 2, 3, etc. Any idea what I’m doing wrong?
I’m afraid I still don’t understand. Do you mean this:
TOC entry in TOC of project…1
TOC entry in TOC of project…2
as well as:
Document in project as TOC entry in TOC of project…1
Document in project as TOC entry in TOC of project…2
So they appear:
TOC entry in TOC of project…1
Document in project as TOC entry in TOC of project…1
TOC entry in TOC of project…2
Document in project as TOC entry in TOC of project…2
or something else?
Let’s say I have 10 chapters, and they fall as follows in the actual book:
Chapter 1 - page 10
Chapter 2 - page 20
Chapter 3 - page 30
etc.
In the ToC, I see this:
Chapter 1…1
Chapter 2…1
Chapter 3…1
.
.
Chapter 9…2
Chapter 10…2
Basically, the page numbers listed in the ToC entries are the page number of the actual ToC page (which is like page 1, 2, 3, etc.), as opposed to the page numbers the actual chapters are on (page 10, 20, 30, etc.)
Also, note that when I click on the <$p> links in the ToC, they jump to the correct place. So the links seems to be referencing the correct location, but aren’t printing the correct page number.
Also, I noticed that it works fine if I compile to RTF. But if I compile to PDF (which is what I want to do), I see the problem described above.
I got it working. Here’s what I had to do, in case it helps someone else in the future:
Go to Tools->Options
Select the “Import/Export” tab
Click the “Export Converters…” button
For “To File Format:”, choose “PDF”
For “via:”, choose “Microsoft Office (2007-2016)” (or whatever version of MS Office you have)
Click “OK”
After that, compiling to PDF produces the correct page numbers in the ToC.
I’m having the same issue as jvaran, except that it is also a problem for me with RTF format.
I’m also losing the indentation levels of the ToC in both .doc, .docx, .pdf, and .rtp formats.
Any ideas ?
Thanks !
I’m having the same problem when I convert to DOCX, DOC, RTF and PDF. It either shows everything on page 2, or shows a question mark.
Come on, this shouldn’t be so hard, right?
It’s fixed for PDF ( https://forum.literatureandlatte.com/t/table-of-content-shows-page-2-for-every-chapter-after-compilation/46121/1 )
and RTF ( go to print preview a couple of times, and the correct page numbers magically appear).
Not yet for word though