sillsdev / ptx2pdf

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

Pictures don't refresh while PTXprint is running #940

Open davidc86 opened 6 months ago

davidc86 commented 6 months ago

v2.4.7 If I'm working with pictures and I see a problem, and I fix the picture file. The updated picture is NOT used when making the PDF.

The only way I have found to refresh the picture inventory is to exit PTXprint and reopen it (not a quick process).

Any clue why PTXprint is not pulling the pictures from the correct location each time it creates a PDF?

markpenny commented 5 months ago

My guess is that it is relying on the file in the tmpPics location, and not checking the timestamp on each to see if it needs to be updated. The process of creating the image files in tmpPics is rather complicated, and takes a significant chunk of time each time it needs to run; so we have tried to limit when it does that.

I'll chat with MH to see if there's a relatively quick fix to this while we wait for a more comprehensive overhaul of the system to keep track of dependencies throughout all the temporary files that PTXprint relies on to create the final PDF (only updating anything that really needs to be changed).