sillsdev / ptx2pdf

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

Adj list only generates portion of a book, but overwrites everything when more chapters are specified #945

Open KimB2017 opened 3 months ago

KimB2017 commented 3 months ago

I'm typesetting Genesis with lots of pictures. It's much faster to start with ch 1-11 than to have all 50 ch reformat after adjusting each page. I made a mess the first time and had to start over, so I regenerated the Adj List. Got to the end of chapter 11, told PTXPrint to process GEN 1-24.

I discovered that my new, finalized Adj List only included paragraphs in ch 1-11, because that was the chapter range I was working with when I started over. The only way I can see to keep my 1-11 adjustments is to copy them (the whole list at this point) to a safe place, regenerate the default Adj list, then paste my 1-11 adjustments back in. Could there be a way to ask it to regenerate a chapter at a time, perhaps?

davidg-sil commented 3 months ago

Probably the best thing to do is to start with generating the adjust list for the entire book and then change the selection while you're actually adjusting. Otherwise... you can decide to write your own. While the gererated list specifies the first verse in a paragraph, any verse in a paragraph is OK.

But yes, cut-and-paste (or copy the file to whatever.myadjs) the best way to preserve an existing list if you're going to hit generate again.

KimB2017 commented 3 months ago

Perhaps could there be an addition to the "are you sure you want to regenerate..." message, to warn that the new adj list will only include chapters in the current scope on the Basic page?

It would be very helpful to be able to regenerate the adjustment list for "current chapter." Probably a lot of work though.