Linking internally to parts of a chapter?

I don’t think this is what I mean. An example:

  1. Say I initially wrote “As discussed in Chapter 5…”, selected the “Chapter 5” and drag-droped the corresponding chapter from from the binder onto it. The “Chapter 5” is now a link.
  2. Now I add a new chapter so that the former Chapter 5 is now Chapter 6.
  3. The link still points to the correct position in my Master-document but the in-text string is still stuck with the “As discussed in Chapter 5…”, even thought it points to the new Chapter 6.
  4. Is there a way for the number to be also automatically updated from 5 to 6?

I’ve read here that one can use the <$t> placeholder to autoupdate the links text field but I can’t figure out how

What is the name of the item in the Binder?

If the item is named “Chapter 5” and you change the name to “Chapter 6,” then the “Update Document Links” command will work. But if “Chapter 5” is just arbitrary text, how is Scrivener supposed to know to change it?

1 Like

The use of a placeholder is limited compile, as per the article.

1 Like

I figured out the solution and it was indeed toggling the checkmark in the Compile window–>Document Title Links–> Links use title prefixes only (exclude titles and).
This updates the link-title dynamically from “Chapter 5” to “Chapter 6”. What I am now stuck with, though, is the fact that apparently the links get lost when compiling to Word. But that’s for another day…

When the destination is not in the compilation, your document links won’t show up as Links.

1 Like

I just tried it with compiling the whole master document (i.e. destination chapter is in it) but the link is still absent.
But also, now I just have the added problem that what I use as title prefix in the Compile window also is used for the in-text links. I have the following title prefix:
Chapter <$t:chapter>:
Which after compiling looks like this:
Chapter Five: Theoretical perspectives

However, now the in-text link titles also include the colon such as in
“As I showed in Chapter Five:, the following…”

There are options in the Compile Format Designer Text Layout menu to show or hide prefix and or postfix in document links.

1 Like

My problem is rather that I’d want to hide only part of the prefix in the document links. Put differently, I want the chapter titles to be:
Chapter Five: Theoretical perspectives
Which I get by using the Chapter <$t:chapter>:

And for the document links I want to use the Chapter <$t:chapter>:
but without the : at the end. So hiding the whole prefix wouldn’t do the job.

Thank you so much for all the answers btw!

How about unchecking the Title content type in the Section Layout and using <$title> in the prefix or postfix? You’ll have to play around a bit to see it you can get what you want.

I never add a chapter number, but refer to chapter titles: See the chapter on Compiling, where the chapter name is “Compiling”…

1 Like