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 | 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.
I'm looking for a volunteer to take over
jmlr. If you are interested, please use the contact page.
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
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=157