Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.

Bug Tracker RSS feed

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
Status Closed (Fixed)
Bumped ×1
Category jmlr
Version 1.24
Summary Incompatibility with cleveref

Sign in to subscribe to notifications about this report.

Description

When using cref 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

1 comment.

🔗Comment from anonymous
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

\documentclass[cleveref]{jmlr}

\begin{document}

\section{Theorem-like environments}
\label{sec:1}

\begin{definition}
\label{def:1}
\end{definition}

\begin{theorem}
\label{the:2}
\end{theorem}

\begin{lemma}
\label{lem:3}
\end{lemma}


\section{Cleveref test}
\cref{def:1}

\cref{the:2}

\cref{lem:3}

\end{document}
Replying to Comment #145:

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=170