<$toc> placeholder not working in Scrivener 3

User avatar
Silverdragon
Posts: 422
Joined: Mon Jul 29, 2013 2:52 pm
Platform: Mac + iOS
Location: Tarzana, California, USA
Contact:

Sat Dec 02, 2017 5:20 am Post

From the manual:
Screenshot 2017-12-01 20.58.31.png
Screenshot 2017-12-01 20.58.31.png (125.5 KiB) Viewed 521 times

What I get in my .mobi output:
Screenshot 2017-12-01 21.06.53.png
Screenshot 2017-12-01 21.06.53.png (19.89 KiB) Viewed 521 times
So you know where I'm coming from:
  • I'm a user, not an L&L employee.
  • Mac Scrivener 2.9 & 3.0.1, MacBook Air 11, MacOS 10.12.6 (Sierra)
  • IOS Scrivener 1.1.5, iPhone 6s, iPad Air 2, iOS 11.2.5

User avatar
Bridey
Posts: 390
Joined: Wed Nov 22, 2017 2:24 pm
Platform: Mac

Sat Dec 02, 2017 10:03 am Post

I tried this, having read your post, and got the same result.

Managed to make it work with either:

1. Marking the <$toc> with Preserve Formatting.

OR

2. Creating a unique section type for the <$toc> page and then assigning a simple text section layout to that section type in the compile settings.

Both of the methods above worked to produce a proper table of contents, but the Kindle app on macOS plonked the contents at the start of the book, even though I had set the <$toc> to be the final page. Don't have a Kindle device to try it on.

User avatar
KB
Site Admin
Posts: 19365
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Sun Dec 03, 2017 10:32 pm Post

I’ve fixed this for the next update.
Best,
Keith
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."

Ci
CindyWho
Posts: 1
Joined: Sun Dec 03, 2017 8:34 pm
Platform: Mac

Sun Dec 03, 2017 11:33 pm Post

I haven't figured out how to make a post of on own instead of in a thread. I just upgraded and now I can't find one of the manuscripts I was working on and getting very afraid. I know that Scrivener automatically saves, but after the upgrade I can't seem to find the file that I've been working on for a past few months. Any ideas?

User avatar
Silverdragon
Posts: 422
Joined: Mon Jul 29, 2013 2:52 pm
Platform: Mac + iOS
Location: Tarzana, California, USA
Contact:

Mon Dec 04, 2017 12:11 am Post

Thanks so much, Keith! @CINDYWHO, Have you tried File > Find All Projects in Spotlight ?
So you know where I'm coming from:
  • I'm a user, not an L&L employee.
  • Mac Scrivener 2.9 & 3.0.1, MacBook Air 11, MacOS 10.12.6 (Sierra)
  • IOS Scrivener 1.1.5, iPhone 6s, iPad Air 2, iOS 11.2.5

Si
Sigerson
Posts: 1
Joined: Sun Jan 06, 2013 6:45 am
Platform: Mac

Tue Jan 09, 2018 11:07 pm Post

I'm having this problem as well when compiling for ePub. I am using version 3.0.1.I've tried the to suggestions above without success. My goal is simple. I want to move the toC to a different location. I've created the page, added the code, clicked create HTML ToC, but all I get is the ToC appearing at the start of the ePub document and a page with the code <$toc> where I would like the ToC to appear

User avatar
KB
Site Admin
Posts: 19365
Joined: Tue Jun 13, 2006 11:23 pm
Platform: Mac
Location: Truro, Cornwall
Contact:

Wed Jan 10, 2018 10:34 am Post

Is <$toc> the only text in an otherwise blank document, does it have a section break before and after it, and does the title of the document containing the <$toc> code match the title given to the ToC page in the Compile settings? All of those must be true for the <$toc> tag to be used.

All the best,
Keith
"You can't waltz in here, use my toaster, and start spouting universal truths without qualification."