trouble with compiled ToC

Hi,

Whenever I try to copy a hierarchical table of contents from the Binder and paste it into a document, and then I compile to, say, a PDF to 8.5" x 11", I get the first level of the ToC just fine, but all it prints out thereafter is just a column of page numbers. I know this has to do with setting the indents and tabs properly, but for the life of me I can’t figure out how to set them up properly. Can someone please help me out? I’m using a two-level ToC, with no indent on the first level, a quarter-inch indent on the second level, and the “dots” go all the way to the edge of the page with all page numbers fully justified to the other margin, with a .75" left margin and a .5" right margin, .75" top margin, .5" bottom margin, alternating left and right margins, across two or three pages, with 1.1 line spacing in an 11 point font.

Thanks,
Andy H.

Does the ToC document in Scrivener have all the information you want?

If it does, then you should be able to use the Ruler in the Editor pane to reposition things as needed.

Katherine

I reposition the ToC entries with the ruler, but that does no good. The entries are positioned correctly. However, when I compile, all I get is a column of page numbers, with no ToC entries lined up before them.

It would help if you showed us what your toc looks like in the binder, before compile, and the the compile setting for it.

Okay, here you go:



Are you compiling the ToC “As is”?

No, should I be? I thought that if I did that, the ToC would not fill in the <$p> symbols with the right page numbers.

This is what I get, even if I compile the ToC “As is.” Either way, I get this:

And the ToC was created by using Copy as ToC?

Yes. I selected the contents of the Binder, selected “Copy as Toc” from the edit menu, then pasted into the Front Matter document “Table of Contents,” then selected the appropriate Front Matter folder in the Compile dialogue, then Compiled.


Hmm, try this: in “Title Adjustments”, deselect “Update titles in document links with prefix and suffix settings”. This causes all document links containing titles to be replaced with the titles as they are set up in the Compile “Formatting” tab, but for all the documents missing titles in your compiled output, they aren’t set to include titles in the Compile settings. I think that might be the cause (if so, I need to update the code to fall back on the binder title if there is no title at all…). Let me know if that fixes it.

Yep! That fixed it, Keith! Thanks! :smiley: You’re a genius, you are.