0 votes

Hi,
I’m working on Urdu Persian text, while typesetting on some pages the text is not filling available space at the bottom. Please see the screenshot. Can someone please help me to solve the issue.
This issue may be similar to Unable to fill text until bottom margin · Issue #79 · sillsdev/ptx2pdf · GitHub

PTXprint by (224 points)
reshown

2 Answers

0 votes

My best guess is that the problem is to do with balancing columns. (I.e. Making sure that there are the same number of lines on each side)
I believe that at the moment the code has a ‘balance at any cost’ as approach. Thus if you have 5 lines in the next paragraph as I think I see, the code cannot find a good place to break it. 5 lines means:
3 lines on one side 2 on the other (unbalanced, and so bad)
2lines on the next page 1 line in one side, 2 on the other (equally unbalanced)
3 lines on the next page, 1 line on each side. (May be allowed, but not if the 2nd column starts a new paragraph, as breaking a paragraph after just one line is usually a forbidden thing.)

If you pick a longish paragraph that is on the page and use the adjust list to make it one line longer, then that might solve the issue.
Alternatively you may want to allow “orphan” / “widow” paragraphs.

by (737 points)
0 votes
As DG states, the gap is because the macros are balancing the columns and also ensuring that there are no widows (1 line hanging on the previous page) or orphans (1 line of a paragraph on its own on the next page) and footnotes. To get perfect breaking one needs to go through and use the Adjlist to stretch and perhaps shrink paragraphs by a line here or there to make the macros happy and fill the page.

If you don't have time for that, the quick and dirty approach is to allow unbalanced columns in the layout page and to increase that to say 4 (the macros will try to minimise the amount of unbalance, but will not go above the number you specify)
by (374 points)

Related questions

0 votes
6 answers
0 votes
2 answers
0 votes
1 answer
0 votes
4 answers
0 votes
1 answer
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For where two or three gather in my name, there am I with them.
Matthew 18:20
2,648 questions
5,396 answers
5,069 comments
1,443 users