Bug Tracker 
I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)
ID | 170🔗 |
---|---|
Date: | 2020-11-22 14:12:00 |
Last update: | 2025-02-14 10:30:59 |
Status | Open Bumped ×1 |
Category | jmlr |
Version | 1.24 |
Summary | Incompatibility with cleveref |
Sign in to subscribe to notifications about this report.
Description
When usingcref
of cleveref
, the definitions and lemma defined in this package are displayed as theorems.
To reproduce this error, do
\usepackage{cleveref} \begin{document} \begin{definition} \label{def} \end{definition} \cref{def} % displayed as "theorem~1" \end{document}
MWE
Download (139B)
\documentclass{jmlr} \usepackage{cleveref} \begin{document} \begin{definition} \label{def} \end{definition} \cref{def} \end{document}
Evaluation
Version 1.29 (2022-01-29) now has the class option cleveref
which will integrate cleveref with the theorem-like environments. This option isn't on by default as it may conflict with other user settings.
Comments
2 comments.
Date: 2025-02-13 12:29:29
Repying to: anonymous 2024-10-21 14:43:22
It seems that the bug persists :(
In case it helps anyone, I managed to go around it using the fancyref
package. Unfortunately, that requires a bunch of setup and definitions. But after that you can simply replace the \cref
command with \fancyref
(e.g., letting with the line \let\cref\fref
)
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=170
Date: 2024-10-21 14:43:22
Nice of you to also support cleveref!
Unfortunately, the current implementation does not appear to be functioning the way it is intended. Consider the following MWE, which on my system (Tex Live 2024, jmlr version 1.30), gives three references to section 1:
MWE