sillsdev / ptx2pdf

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

Percentage signs in piclists need escaping. #912

Closed davidg-sil closed 8 months ago

davidg-sil commented 9 months ago

A percentage sign is treated as a "rest of this line is a comment" character in piclists. It is used this way in some old publications / projects. Putting a percentage in a caption thus causes an odd error in PTXprint, unless it is escaped like this: \%

Either:

markpenny commented 8 months ago

@mhosken I have a feeling that this was done - or was that only on the TeX side and we are we still waiting for the python UI code to be updated \% ?

davidg-sil commented 8 months ago

The TeX side change a month ago allowed something (#? to be a whole-line comment). % is working at a lower level, and if it occurs unescaped then it truncates the line. Hence the need for a decision on what approach to take as above. Option 2 is probably the most robust.

davidg-sil commented 8 months ago

I've implemented Option 2, including the template. If anyone has an already-escaped % sign, (\%) in their piclist, then that's fine, it now doesn't matter.