Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Numbering of restated theorems is not the same as in the original theorem using jmlr #13

Closed
jcalifornia opened this issue Apr 19, 2023 · 4 comments

Comments

@jcalifornia
Copy link

jcalifornia commented Apr 19, 2023

Describe the bug
The numbering doesn't reset. See the example below where it is Lemma 1,2 in main text and is Lemma 3,4 in the appendix when restated

To Reproduce: Minimal Working Example
Simple example:

\documentclass[pmlr]{jmlr}% new name PMLR (Proceedings of Machine Learning)
\usepackage[createShortEnv]{proof-at-the-end}


\begin{document}


\begin{lemmaE}[Something here][end,restate,text link section]
\end{lemmaE}
\begin{proofE}
The proof is self-evident
\end{proofE}

\begin{lemmaE}[Something else here][end,restate,text link section]
\end{lemmaE}
\begin{proofE}
The proof is also self-evident
\end{proofE}

\appendix


\section{Proofs}

\printProofs

\end{document}

The ouput is:

Lemma 1 (Something here)
See proof in section A .
Lemma 2 (Something else here)
See proof in section A .
Appendix A. Proofs
Lemma 3 (Something here)
Proof [Proof of Theorem 1]The proof is self-evident
Lemma 4 (Something else here)
Proof [Proof of Theorem 2]The proof is also self-evident

Version
Overleaf texlive 2022

Version of proof-at-the-end: master

@jcalifornia jcalifornia changed the title [BUG] Numbering of restated proofs is not the same as in the original theorem using jmlr [BUG] Numbering of restated theorems is not the same as in the original theorem using jmlr Apr 19, 2023
@jcalifornia
Copy link
Author

Works if I define my own counters

@dpo
Copy link

dpo commented Aug 10, 2023

Could you please show how you solved the problem?

@jcalifornia
Copy link
Author

I added these to the start of the appendix

\setcounter{lemma}{0}
\setcounter{theorem}{0}
\setcounter{equation}{0}

@tobiasBora
Copy link
Contributor

tobiasBora commented Aug 15, 2023

Note that you might want to use cref instead that is more resilient than the default autoref, and add section to the counters taken into account by thm-restate as explained here #14 (comment)

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

No branches or pull requests

3 participants