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

Wrong column balancing (Second column data is more than the first)

Explorer ,
Nov 16, 2022 Nov 16, 2022

Usually on a “Frame to Content” fit, the first column will have more lines than the second column (check first image)

ShivAllva_1-1668661362128.png

But on the below case (check second image), why the second column is having more lines than first? It seems like the keep logics applied to the number list does this. 

ShivAllva_2-1668661501662.png

Please let me know how to prevent this and always have first column more lines? Do we really need a scripting support here? Have attached the DEMO indesign file.

TOPICS
How to
717
Translate
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

correct answers 1 Correct answer

Community Expert , Nov 16, 2022 Nov 16, 2022

The reason is that there not enough space for the no.3 bullet to fit in that space.

You have to reduce the paragraph spacing to 0p2 to fit it in

EugeneTyson_0-1668669861190.png

 

 

Or reduce space elsewhere

EugeneTyson_1-1668669925153.png

 

 

Or increase the size of your text frame and for No. 3 - set it to keep with previous

EugeneTyson_2-1668670021897.png

 

Then fit frame to content works

EugeneTyson_3-1668670054474.png

 

 

Translate
Community Expert ,
Nov 16, 2022 Nov 16, 2022

Make the Affilation Author with rule and email span columns.

Maybe, the rule should be part of Article note, not of Affiliation Author.

Translate
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 ,
Nov 16, 2022 Nov 16, 2022

It's because of the Keep options on your paragraph style for the numbered items. It will not break any paragraph into less than two lines. This forces the last item in the first column to the top of the second column.

Screen Shot 2022-11-17 at 12.12.23 AM.png

You could turn it off, but having single lines is bad typography.

"Usually on a “Frame to Content” fit, the first column will have more lines than the second column"

No. It will make the text box the smallest. In this case, that means putting the extra item in the second column.

Translate
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 ,
Nov 16, 2022 Nov 16, 2022

The reason is that there not enough space for the no.3 bullet to fit in that space.

You have to reduce the paragraph spacing to 0p2 to fit it in

EugeneTyson_0-1668669861190.png

 

 

Or reduce space elsewhere

EugeneTyson_1-1668669925153.png

 

 

Or increase the size of your text frame and for No. 3 - set it to keep with previous

EugeneTyson_2-1668670021897.png

 

Then fit frame to content works

EugeneTyson_3-1668670054474.png

 

 

Translate
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 ,
Nov 17, 2022 Nov 17, 2022

ok, thanks for your valuable info.

I took the last solution what you provided and created a script, works good!

Script logic:
1. If secondcolumn_firstline_baseline goes shorter than firstcolumn_firstline_baseline, then apply keepWithPrev for secondColumn firstPara
2. And do a fit

-- here is the working JS code ---
function frameBalance(frame){
    if(frame.textColumns[1].lines[0].baseline < frame.textColumns[0].lines[0].baseline){
        frame.textColumns[1].lines[0].paragraphs[0].keepWithPrevious = true;
        frame.fit(FitOptions.frameToContent);
    }
}

Output:

ShivAllva_0-1668672122052.png

 

 

Translate
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 ,
Nov 17, 2022 Nov 17, 2022

Did you intend on the text on the right column not to go to the top of the frame?

Translate
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 ,
Nov 17, 2022 Nov 17, 2022
LATEST

Yes, i've the frame's vertical justification set to bottom!

Translate
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