Skip to main content
SuzzyFlamingo
Inspiring
August 12, 2025
Question

Next word in story

  • August 12, 2025
  • 1 reply
  • 304 views

Hi friends!

I would like to hear input about the best way to automate the following:

 

I have a lot of long footnotes that spread multiple pages. To help the user always continue in the right direction I want that whenever a story, either main text or footnote flows to another page, the first word of the continuation on the next page is printed under the last word of the first page. So the readers know where to continue. So if for example the first page end with the sentence: "President Trump dyes his hair yellow" and the next page continues " every night", the word "every" I s under the word "yellow" (in small print) on page one. And so on ....for footnotes that span

over pages 

Thanks upfront

SF

1 reply

Inspiring
August 12, 2025

What happens if the story is edited in a way that changes the text flow? You'd probably expect the continuation word to update automatically. That could be tricky. 

SuzzyFlamingo
Inspiring
August 12, 2025

Yes, that would be the optimal solution.

"Tricky" ... smells like you have some sort of beginning idea to build on 🙂 

 

PS Anyone familiar with the page layout of the Talmud knows exactly what i am talking about:

 

Inspiring
August 12, 2025

Well, the only idea I can come up with is an event-listener function to acquire the continuation word and copy it. But the only event I know of is "afterSelectionChanged" , which fires every time you move the insertion point or select a new page item. I have used it only to catch the first time that the selection changes, not to constantly monitor a text frame for changes. I'm afraid that would really bog down your session.

A more practical idea might be to use a function that runs when the document opens or closes or when invoked by the user.