Comments (6)
Ok it seems the bug comes from the JMLR class (which the MIDL class is based upon): see https://www.dickimaw-books.com/bugtracker.php?action=view&key=157&page=1&search_category=jmlr
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.
This explains why you have the issue with texlive 2019, while I do not have it in texlive 2020---you are missing the latex jmlr class. Overleaf uses 2020 by default now so there is no issue there as well.
A solution would be to force the use of the latest version of the JMLR class, by dropping the source files into your folder. https://ctan.org/pkg/jmlr
I am not fully sure, and you will have to test, but jmlr.cls
and jmlrutils.sty
might be enough to copy.
from midllatextemplate.
I just tried on the vanilla sample midl-fullpaper.tex and it seems to work (texlive 2020).
Are you loading additionnal packages in the preamble? There is indeed some packages conflicts around subfigure/subcaption and others ; you shouldn't load any other one.
from midllatextemplate.
I am not loading any additional package. The example I have in the post was generated by minimally modifying midl-fullpaper.tex
. Below is the result of tex --version
TeX 3.14159265 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
from midllatextemplate.
This is really bizarre. Can you post the result of the following snippet, compiled with pdflatex
(run it at least twice)? This should help us to nail down what is causing the issue.
\documentclass{midl}
\usepackage{mwe} % to get dummy images
\jmlrvolume{-- Under Review}
\jmlryear{2021}
\jmlrworkshop{Full Paper -- MIDL 2021 submission}
\editors{Under Review for MIDL 2021}
% \usepackage{subfigure}
\title[Short Title]{Full Title of Article}
% More complicate cases, e.g. with dual affiliations and joint authorship
\midlauthor{\Name{Author Name1\midljointauthortext{Contributed equally}\nametag{$^{1,2}$}} \Email{[email protected]}\\
\addr $^{1}$ Address 1 \\
\addr $^{2}$ Address 2 \AND
\Name{Author Name2\midlotherjointauthor\nametag{$^{1}$}} \Email{[email protected]}\\
\Name{Author Name3\nametag{$^{2}$}} \Email{[email protected]}\\
\Name{Author Name4\midljointauthortext{Contributed equally}\nametag{$^{3}$}} \Email{[email protected]}\\
\addr $^{3}$ Address 3 \AND
\Name{Author Name5\midlotherjointauthor\nametag{$^{4}$}} \Email{[email protected]}\\
\addr $^{4}$ Address 4
}
\begin{document}
\maketitle
\begin{figure}[htbp]
\floatconts
{fig:example2}% label for whole figure
{\caption{An Example Figure with Subfigures.}}% caption for whole figure
{%
\subfigure[An example subcaption]{%
\label{fig:pic1}% label for this sub-figure
\includegraphics[width=0.4\linewidth]{example-image}
}\qquad % space out the images a bit
\subfigure[Another example subcaption]{%
\label{fig:pic2}% label for this sub-figure
\includegraphics[width=0.4\linewidth]{example-image}
}
}
\end{figure}
\subfigref{fig:pic1}
\end{document}
from midllatextemplate.
Thank you for the quick follow-ups. I used similar code to generate the image in the original post but FWIW, I copied code from your comment and the resulting pdf is attached.
I would like to point out again that this works fine on overleaf but the problem is local installation.
from midllatextemplate.
I updated the jmlr package and it worked. Thanks!
from midllatextemplate.
Related Issues (17)
- Clean up joint authorship feature and multiple affiliations HOT 3
- PMLR page count slightly off when last pages contains only figures HOT 3
- `\midlotherjointauthor` not showing the footnote mark HOT 1
- Migrate tests from travis to github actions HOT 6
- referencing to arxiv papers HOT 5
- Empty page at the end of full paper HOT 2
- Intended behaviour of JMLR fields HOT 2
- Referencing subfigures doesn't work as expected HOT 4
- Update year in template to 2020 HOT 3
- First page break in anonymous mode HOT 2
- Miktex failures in CI HOT 4
- doesn't compile under texlive2019 HOT 12
- Template for short paper HOT 1
- latex error: file mwe.sty not found HOT 2
- Issue with subcaptions HOT 4
- Large number of authors and affiliations does not show correctly HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from midllatextemplate.