• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Realign all text frames to fit into page master margins

Explorer ,
Jul 15, 2023 Jul 15, 2023

Copy link to clipboard

Copied

I would like to automatically command all of my text boxes to align to the page margins as set up in the page masters. My book has 750 pages, so I do not want to do this manually. See screesnshot. Thank you.

TOPICS
How to

Views

153

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 17, 2023 Jul 17, 2023

Copy link to clipboard

Copied

Does anyone have any ideas?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 17, 2023 Jul 17, 2023

Copy link to clipboard

Copied

Were all of the text frames originally created using the Parent Pages? If that was the case—and it's just a matter of moving the frames back to their original location—then select all of the document pages in the Pages Panel and use the "Apply Parent to pages..." option in the Pages Panel pull-down menu. In the Apply Parent dialog that comes up choose the option to apply the appropriate Parent Page to all pages.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 17, 2023 Jul 17, 2023

Copy link to clipboard

Copied

That doesn't work for me. I've never found a good solution to the OP's problem, especially if any text frames have been resized. It seems to me there is one, but I can't recall how it works.


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2023 Jul 18, 2023

Copy link to clipboard

Copied

My suggestion was based on the possibilty—as unlikely as it probably is—that the document had used a primary text frame and that the only alteration to that frame as it appeared on the document pages was that it had been moved from its original position on each page. In any other scenario applying the Parent page would revert the pages to the configuration of the original Parent Page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2023 Jul 18, 2023

Copy link to clipboard

Copied

If it's one long story - without unlinked objects - you could delete all pages and reflow text again - or just create new document and reflow text there. 

 

Or... if you have ONLY your story on a dedicated layer - you could copy contents of the Story and reflow it on a new layer. 

 

Otherwise - script could do that for you. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2023 Jul 18, 2023

Copy link to clipboard

Copied

Hi @MarinusBarletius:

 

How did you get into this situation? Did you change the margins for the document after you already laid out the text?

 

There is a feature in InDesign called Adjust Layout that instructs the text frames to move with margin changes. If that's how you got here, I think you could simply restore the original margins without Adjust Layout enabled so that the frames again match the frame edges, and then update the margins a second time with Adjust Layout enabled. It's worth a shot.

https://helpx.adobe.com/indesign/using/adjust-layout.html

 

Barb

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2023 Jul 18, 2023

Copy link to clipboard

Copied

LATEST

Hi @MarinusBarletius , Are text frames that are mis-aligned overridden master/parent page items that have been moved? An overriden masterpage item that has been repositioned will no longer respond to a position change from the master.

 

If that’s the case, a script could set the overriden text frames’ positions to match the parent page text frame’s position. Something like this:

 

 

 

var tf = app.activeDocument.textFrames.everyItem().getElements()
for (var i = 0; i < tf.length; i++){
    if (tf[i].overridden) {
        tf[i].geometricBounds = tf[i].overriddenMasterPageItem.geometricBounds
    } 
};   

 

 

 

Before and after running the script:

 

Screen Shot 13.pngScreen Shot 16.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines