{"action":"closed","issue":{"url":"https://api.github.com/repos/PierreSenellart/apxproof/issues/19","repository_url":"https://api.github.com/repos/PierreSenellart/apxproof","labels_url":"https://api.github.com/repos/PierreSenellart/apxproof/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/PierreSenellart/apxproof/issues/19/comments","events_url":"https://api.github.com/repos/PierreSenellart/apxproof/issues/19/events","html_url":"https://github.com/PierreSenellart/apxproof/issues/19","id":340271267,"node_id":"MDU6SXNzdWUzNDAyNzEyNjc=","number":19,"title":"Not compatible with \\dump precompilation","user":{"login":"kbauer","id":7498468,"node_id":"MDQ6VXNlcjc0OTg0Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/7498468?v=4","gravatar_id":"","url":"https://api.github.com/users/kbauer","html_url":"https://github.com/kbauer","followers_url":"https://api.github.com/users/kbauer/followers","following_url":"https://api.github.com/users/kbauer/following{/other_user}","gists_url":"https://api.github.com/users/kbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/kbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbauer/subscriptions","organizations_url":"https://api.github.com/users/kbauer/orgs","repos_url":"https://api.github.com/users/kbauer/repos","events_url":"https://api.github.com/users/kbauer/events{/privacy}","received_events_url":"https://api.github.com/users/kbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-11T14:36:17Z","updated_at":"2018-07-17T19:42:28Z","closed_at":"2018-07-17T19:42:28Z","author_association":"NONE","body":"LaTeX has a mechanism, where preambles can be precompiled for faster subsequent compilation, that can be summarized as \r\n\r\n  - Create a separate file ``document_preamble.tex``.\r\n  - Compile it with `pdflatex -ini \"&pdflatex\" \"document_preamble\" \"\\\\dump\"` creating a `document_preamble.fmt` binary dump of several megabytes.\r\n  - In `document.tex`, load this \"format\" file by starting the file with `%&document_preamble`. Otherwise it is compiled with `pdflatex document` as usual.\r\n\r\n## Expected behavior\r\n\r\n  - During compilation of the preamble, no `.axp` file should be created.\r\n  - When compiling `document.tex`, `document.axp` should be created.\r\n\r\n## Actual behavior\r\n\r\n  - During compilation of the preamble, `document_preamble.axp` is created.\r\n  - When compiling `document.tex`, no `.axp` file is created, leading to a \"no such file\" error when the appendix is typeset.\r\n\r\n## Cause\r\n\r\nThe 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`.\r\n\r\nIf nothing else prevents it, the obvious fix would be to defer the initialization of the `.axp` file with an `\\AtBeginDocument`."}}
{"actor":{"display_login":"PierreSenellart"}}