sillsdev / ptx2pdf

XeTeX based macro package for typesetting USFM formatted (Paratext output) scripture files
21 stars 7 forks source link

Problem on pages (Issue #935) #936

Closed KNNettey closed 5 months ago

KNNettey commented 6 months ago

Yes, I installed the newest version before I did the job. GBVN96-DefaultPTXprintArchive.zip GBVN96_Default_MRK_ptxp.pdf

You will notice that some of the pages do NOT have the suggested number of lines on them. Page 1 has the title of the book and then 2 text lines.

How do I get all the to have the same number lines except the last page which may be shorter.

Thank you.

Kingsley Nettey

mhosken commented 6 months ago

As a quick workaround, you can set the unbalanced lines (max) to 1 on the laying out tab. That will get you going. If you want to really balance the columns then you'll have to stretch a paragraph somewhere on that page. 11pt text is certainly generous! There's nothing actually wrong with the engine, it's just with the short paragraphs being out of sync in the two columns, the engine can't find a better place to break if you insist on balanced columns (as in it does an emergency break). But at least you see it!

mhosken commented 6 months ago

The general principle is if you get a really bad break and you don't want to fix it by stretching paragraphs (or whatever), then increasing the number of allowed bad lines should help. For example, I modified the \r style to increase the space above to 0.33 and decrease the space below to -.0.2 (since Charis has a huge descender space), and that reduced the references to only take 2 lines, but that made the page break bad again and I had to increase the maximum unbalanced lines to 2. It all depends if you are after: something that looks OK for a test print, versus: it must be perfect for a final typesetting. If the latter, then you will need to stretch and shrink paragraphs and get the max unbalanced lines down to 0 again.

KNNettey commented 6 months ago

GBVN96_Default_MRK_ptxp 1 Column.pdf

I have used 1 column and attached is the results. The Parallel Reference \r seems to break to the next page because of the line spacing below. I am still don't understand why in the 2 column PDF first page breaks after the first line and only the left column is set.

My goal is to typeset a diglot with the old orthography of the same text as secondary text.

KNNettey commented 6 months ago

GBVN96_Charis_MRK_ptxp.pdf

I checked the text again and made a few corrections. i have attached the resulting PDF.

mhosken commented 6 months ago

Since you are setting one paragraph per verse (which is bad practise) you have many short paragraphs which makes it hard to balance pages. You have a choice:

Things only get worse for single columns where paragraphs are even shorter.

I wish you well.

On Sat, 23 Dec 2023, 10:53 KNNettey, @.***> wrote:

GBVN96_Charis_MRK_ptxp.pdf https://github.com/sillsdev/ptx2pdf/files/13758822/GBVN96_Charis_MRK_ptxp.pdf

I checked the text again and made a few corrections. i have attached the resulting PDF.

— Reply to this email directly, view it on GitHub https://github.com/sillsdev/ptx2pdf/issues/936#issuecomment-1868267849, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLMO3JLELEYN3Y2FGNZIQ3YK2Z2FAVCNFSM6AAAAABA7XNEIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGI3DOOBUHE . You are receiving this because you commented.Message ID: @.***>