Skip to content

Import moveproofs will crash if there is no \makeproof#7

Open
piotr-semenov wants to merge 1 commit into
thisisdhaas:masterfrom
piotr-semenov:fix/avoid_empty_appendix_generation
Open

Import moveproofs will crash if there is no \makeproof#7
piotr-semenov wants to merge 1 commit into
thisisdhaas:masterfrom
piotr-semenov:fix/avoid_empty_appendix_generation

Conversation

@piotr-semenov
Copy link
Copy Markdown
Contributor

If user imports moveproofs package but has no \makeproof calls in his TeX then it crashes with the error like below:

! Package pgfkeys Error: I do not know the key '/moveproofs/proofs/list' and I am going to ignore it. Perhaps you misspelled it.

Please, find the minimal non-working example named mnwe.tex below.

\documentclass{article}

\usepackage{lipsum}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}

\usepackage{hyperref}

\usepackage[location=appendix]{moveproofs}


\begin{document}
\end{document}

To check mnwe.tex you can use next bash:

docker run --rm -v $(pwd):/work -w /work -it texlive/texlive:latest latexmk -pdf -pdflatex mnwe.tex

This PR introduces the flag \ifMPproofsdefined to indicate if there is no proofs and initializes proof list as empty one.
This PR was tested with TeX Live 2026.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant