Skip to content

Fix pdflatex issues

What does the merge request do?

Closes #493 (closed), Closes #507 (closed), Closes #502 (closed)

Implementation notes

The python change is fairly trivial, but it changes the output of all unit tests (also due to changes in Inkscape 1.3), and all mock files have to be regenerated.

I've added a mechanism to only regenerate missing mock files. Otherwise, each NO_MOCK_COMMANDS=1 run regenerates ALL of them and the you don't know which one was actually needed (which is particularly fun for the second call to Inkscape which gets a different hash everytime the first mock file is regenerated since the pdflatex output changes (timestamp in the pdf)! Great times...).

Summary for release notes

Fix a bug where formulas generated with the pdflatex extensions were sometimes clipped vertically, and remove reference to (nonexistent) log files in case of a pdflatex compile error.

Improve testing mechanism for mock commands.

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history

Merge request reports