Bug Tracker

ID: 157 🔗 Closed (Fixed) jmlr 1.26 Nicola Talbot 2020-03-26 11:39:10 subfigure and subtable references produce extraneous text

Report

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

\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-b}\fbox{B}}%
}
\end{figure}

\begin{table}
\floatconts
{tab:ex}%label
{\caption{Sample Table}}% caption
{%
\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.

Watch This Report

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional.)