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 157🔗
Submitted by: Nicola Talbot 🦜
Date: 2020-03-26 11:39:10
Status Closed (Fixed)
Category jmlr
Version 1.26
Summary subfigure and subtable references produce extraneous text

Sign in to subscribe to notifications about this report.

Description

The extra text produced following the reference is the counter name (subfigure or subtable). This is a result of the change in definition of the \p@... commands in the LaTeX kernel (in this case \p@subfigure and \p@subtable). The definitions of \@subfigurelabel and \@subtablelabel need to ignore a third argument with new versions of LaTeX.

MWE

Download (494B)

\documentclass{article}

\usepackage{jmlrutils}

\begin{document}
Reference \figureref{fig:ex-a} and \tableref{tab:ex-b}.

\begin{figure}
\floatconts
{fig:ex}%label
{\caption{Sample Figure}}% caption
{%
  \subfigure{\label{fig:ex-a}\fbox{A}}\qquad
  \subfigure{\label{fig:ex-b}\fbox{B}}%
}
\end{figure}

\begin{table}
\floatconts
{tab:ex}%label
{\caption{Sample Table}}% caption
{%
  \subtable{\label{tab:ex-a}\fbox{A}}\qquad
  \subtable{\label{tab:ex-b}\fbox{B}}%
}
\end{table}
\end{document}

Evaluation

Fixed in v1.27, which now has a check for the LaTeX kernel version to determine whether \@subfigurelabel and \@subtablelabel need a third argument.

Comments

0 comments.


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=157