Adjusting output of internal links in PDF and Print

Hi,

I’m relatively new to Scrivener and have done my best to figure this out from the user manual and Google searches, but still stuck - hoping someone can point me in the right direction! Thanks in advance.

I’m working on a book project which has a document per chapter, which are grouped into three folders within the project.

My aim is that when I export for print (using the Print compile option and saving a PDF) the internal links appear as e.g. “Chapter Two (Title of Chapter Two)”, and when I export for ebook formats the links appear the same, but as clickable hyperlinks.

Currently the built-in “Chapter with Title” layout is doing a great job of starting each chapter with e.g.
Chapter Two
Title of Chapter Two

With “Title Prefix” set to the default of Chapter <$t:chapter><$rst_scene>

By moving <$rst_scene> to the “Title Suffix” field and disabling the option “Links use title prefixes only (exclude titles and suffixes)” option, I was able to keep that start-of-chapter appearance but get the output cross-references to read e.g. “Chapter Two - Title of Chapter”. Almost there!

I tried setting the “Suffix enclosing markers” as parentheses and running “Update Document Links to Use Target Titles”, but the output comes out the same.

Additionally, when I export as an epub, it is not a clickable link (I’m testing in Apple’s Books app).

How can I:

#1: Put the chapter title in parentheses rather than after a dash
and
#2: Get clickable links in the epub?

I’m using version 3.3.6 (16305) on macOS.

Thanks!

Instead of “exporting”, what happens when you use Scrivener’s default settings to compile to PDF?

Sorry, I should have said “Compile” rather than “export” - that’s what I’m using.

If I use the “Default” item under Formats to Compile to PDF, the links come out as just “Title of Chapter” (no chapter number included) and are clickable (though with no change in colour or underlining).

That’s using the default assignment of the “As Is” layout for my chapter documents.

Ad #1: in the Title Options tab, replace Chapter <$t:chapter><$rst_scene> with Chapter <$t:chapter> (<$title>) <$rst_scene>. You can leave out the scene counter reset if you don’t need it. You can find a List of all placeholders in the help menu.

Ad#2: Links should be clickable by default in ePub. There’s a Compile setting in the third tab above the right-hand side column in the Compile Overview window to “Remove all hyperlinks” that should NOT be ticked.

1 Like

Thank you!

Setting “Title Prefix” under Title Options to <$t:chapter> (<$title>) is now producing e.g. “Chapter Two (Title of Chapter - Title of Chapter)”. Any idea why that repetition would be happening?

This has also modified the start of each chapter, which now shows e.g.
Chapter Two (Title Of Chapter)
Title of Chapter

(no repetition within the parentheses here!)

I’d like to leave that as it was (i.e. title on the second line, not shown in parentheses). Is that possible?

Re: epub, thanks for the pointer - the “remove all hyperlinks” option is not ticked.