PierreSenellart / apxproof

LaTeX package for automatically putting proof environments in appendix
LaTeX Project Public License v1.3c
23 stars 8 forks source link

Not compatible with \dump precompilation #19

Closed kbauer closed 6 years ago

kbauer commented 6 years ago

LaTeX has a mechanism, where preambles can be precompiled for faster subsequent compilation, that can be summarized as

Expected behavior

Actual behavior

Cause

The axp file is created as \jobname.axp at the time, when the apxproof is loaded, i.e. when \usepackage{apxproof} is expanded. When working with precompiled preambles, at that time \jobname is document_preamble instead of document.

If nothing else prevents it, the obvious fix would be to defer the initialization of the .axp file with an \AtBeginDocument.

PierreSenellart commented 6 years ago

Thanks for the issue, and for the fix! You taught me about this precompilation mechanism. This is a straightforward fix indeed, merged in (abede86) with a few minor corrections. Will be integrated into the next release (1.0.7), once I process all your other issues. :-)