Skip to main content
Inspiring
June 3, 2022
Answered

Repeating the same text to different text boxes on multiple pages

  • June 3, 2022
  • 2 replies
  • 1676 views

Hi all,

 

I'm trying to create a mini textbook and would like the titles and subtitles of each unit to be repeated in different text boxes, with different paragraph styles, in different places across the document.

 

The cover is a kind of title page with it's own master and a kind of table of contents.

The spreads are the different units, with their own master design.

 

I've tried using a running header, but this doesn't work unless it's on the same spread.

I've tried using a custom text variable, but the text doesn't wrap properly for longer texts.

I've tried using the content collector, but the paragraph styles are also copied.

 

Ideally, I'd like to be able type in the title and outcome on the 1st page of each unit and it be repeated where necessary.

 

I've attached some screenshots to help visualize the project.

 

Thanks

This topic has been closed for replies.
Correct answer andreww72089748

Much appreciated fella.


Just thought I'd add a follow-up.

 

I've found this script https://pastebin.com/N7CJjJ0J

It was posted a while back by another user and seems to work really nicely! I think the original writer of the script was someone called Tomaxxi.

2 replies

Joel Cherney
Community Expert
Community Expert
June 3, 2022

I am surprised that the running header doesn't work for you; it's pretty configurable. But if running headers won't cut it, you could use cross-references with a custom cross reference format:

 

 

 

Note that I had to edit the "Full Paragraph" cross-reference format to remove the quotation marks, and that I saved it so that the rest of the "Full Paragraph" xrefs I would make in this document would be free of those quote marks. 

Inspiring
June 3, 2022

Hi Joel,

 

That would've been perfect apart from getting an error when I try to delete the word 'title':

"The referenced paragraph or text anchor is missing."

Joel Cherney
Community Expert
Community Expert
June 3, 2022

Huh. I see what you mean! I found that I could first add to the title, then delete the word "Title," if I deleted it very carefully. That's because there is a special character being added that is needed for the xref to work. If I modify the line but leave the xref anchor in place, the xrefs are modified and can be updated, but if I delete the xref anchor, it's gone and you get a "referenced paragraph or text anchor is missing" error. Check out the special character for the xref:

John Mensinger
Community Expert
Community Expert
June 3, 2022
quote

I've tried using the content collector, but the paragraph styles are also copied.

 

True, but if you restyle after placing, the content link and its subsequently-applied style will hold.

 

 

Inspiring
June 3, 2022

Thanks John,

 

Yh, I noticed that and could fall back on it if nothing else works. But, I'm trying to be as efficient as possible and was looking for a kind of 'one and done' approach.