Referring to a page number of a following document

I have a project in which in the text of the introduction (pag.2) I’d like to refer to the section number (II, in Roman numbering, automatically generated) and page number of a document which for the time being is at page 20 by means of a tag.

e.g
Page 2
Introduction

see page section II, at page 20


Page 19
I. Historical locations
Waterloo, Austerlitz, etc


Page 20
II. Historical sentences
veni, vidi,vici! Alea iacta est.

Now, as an absolute beginner, I was able to automatically generate the cross-reference of the section by writing in the document wit the # notation the reference to the section.
Page 2
Introduction

see page section <$R#sect:sentences>, at page 20



Page 19
<$R:sect:locations>. Historical locations
Waterloo, Austerlitz, etc


Page 20
<$R:sect:sentences>. Historical sentences
veni, vidi,vici! Alea iacta est.

But I don’t how to automatically generate the page number of a section that is in a following document.
Please help
Vittorio

It looks like you are building a table of contents. Have you checked out the Copy As TOC command? This is something you would use on a selection of docs in the Binder. It produces pasteable text which includes document title and page number placeholder that is also a Scriv link to the corresponding doc. On compile the latter will be converted to the page number of the section. If you are compiling to a compatible formet (e.g. pdf), the items will also be hyperlinked to your sections.

It is easiest if the docs in question are named as you would have them in your TOC, of course, but the pasted toc text is editable without destroying its linkage, so you can make the toc appear as you please.

gr

Thanks for the answer BUT…No. It isn’t the TOC.
My example is relating to the manuscript not to the TOC. Of course I showed a very “compact”, minimal manuscript.
What I meant was to crossreference the page number in the manuscript, before preparing any TOC.

Ciao
Vittorio

The ToC feature does demonstrate how to reference a page number for a section though. It’s very easy, just type in “<$p>”, select the token and then link it to the section you wish to refer to (easiest way to do that is to drag the section onto the selected text with the Option key held down, but you can also use the Edit/Scrivener Link menu if it isn’t easily available for drag and drop).

Or you could make a ToC somewhere outside of the draft and copy and paste the already linked page tokens as needed from that.

Thank you opt-click and drop on works like a charm and above all is what I needed.

Now, if I want to refer to the page of a document where a specific sentence is what should I do?

Ciao e grazie (bye and thank you)
Vittorio

Taking the example I posted recently let’s suppose that section II goes from page 20 to 25 and I want to crossreference to the page of a specific sentence which is, say, at page 23 waht should I do?
e.g
Page 2
Introduction

see page section II, at page 20
see sentence at page 23


Page 19
I. Historical locations
Waterloo, Austerlitz, etc


Page 20
II. Historical sentences
veni, vidi,vicit! Alea iacta est.


page 23

Multas per gentes et per aequora vectus, blah,blah,blah

ciao
Vittorio

Maybe there is a more sophisticated answer, but one quick (and somewhat imperfect) method would be to Split the doc with the target sentence in it at the nearest paragraph break before the sentence. Then use the technique you already know to refer forward to that document which has the sentence in it. This method is imperfect since in the compiled result a page break might intervene between the start of that paragraph and the target sentence – in which case the forward page reference would be one page off.

As far as I know, Scrivener lacks a placeholder which could act as a mere named anchor for page number cross-reference.

Best,
gr

Precise (word level) cross-referencing is one thing I really miss in the near-perfect package that is Scrivener. That, and indexing, and a native bibliography feature.

As for indexing, you should check out this thread in which we totally learn how to use Scriv 3 capabilities to do this!

[url=How An “Index-Creating” Algorithm Might Work]