summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jmlr/jmlr.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-27 03:01:30 +0000
committerNorbert Preining <norbert@preining.info>2020-03-27 03:01:30 +0000
commit6c0ddfe655a39b71d1ab6a4a95d57a7ea0d94243 (patch)
tree65567ae2d29e1e8af56375fccfc1debc19b190c5 /macros/latex/contrib/jmlr/jmlr.dtx
parent2bd4f7f317b392c32ce18c70d03fd5ba9ddd9e6d (diff)
CTAN sync 202003270301
Diffstat (limited to 'macros/latex/contrib/jmlr/jmlr.dtx')
-rw-r--r--macros/latex/contrib/jmlr/jmlr.dtx123
1 files changed, 98 insertions, 25 deletions
diff --git a/macros/latex/contrib/jmlr/jmlr.dtx b/macros/latex/contrib/jmlr/jmlr.dtx
index bde2faa142..577b06010d 100644
--- a/macros/latex/contrib/jmlr/jmlr.dtx
+++ b/macros/latex/contrib/jmlr/jmlr.dtx
@@ -1,14 +1,14 @@
%\iffalse
% jmlr.dtx generated using makedtx version 1.2 (c) Nicola Talbot
% Command line args:
+% -doc "jmlr-manual.tex"
+% -author "Nicola Talbot"
+% -section "chapter"
% -src "jmlrutils.sty\Z=>jmlrutils.sty"
% -src "jmlr.cls\Z=>jmlr.cls"
% -src "jmlrbook.cls\Z=>jmlrbook.cls"
-% -doc "jmlr-manual.tex"
-% -section "chapter"
-% -author "Nicola Talbot"
% jmlr
-% Created on 2020/1/31 10:46
+% Created on 2020/3/26 11:30
%\fi
%\iffalse
%<*package>
@@ -52,7 +52,7 @@ Research (PMLR)},
\doxitem{Option}{option}{package options}
-\CheckSum{5237}
+\CheckSum{5259}
\newcommand*{\appopt}[1]{\texttt{-{}-#1}}
@@ -70,7 +70,7 @@ Research (PMLR)},
% \author{Nicola L. C. Talbot\\[10pt]
%\url{http://www.dickimaw-books.com/}}
%
-% \date{2020-01-31 (version 1.26)}
+% \date{2020-03-26 (version 1.27)}
% \maketitle
%\tableofcontents
%
@@ -1143,11 +1143,11 @@ Research (PMLR)},
%\section{Where To Go For Help}
%
%If you have a general \LaTeX\ query, the first place to go to is the
-%\urlfootref{http://www.tex.ac.uk/faq}{UK TUG FAQ}.
+%\urlfootref{https://texfaq.org/}{\TeX\ FAQ}.
%
%If you are unfamiliar or just getting started with \LaTeX, there's
%a list of on-line introductions to \LaTeX\ at
-%\url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=man-latex}
+%\url{https://texfaq.org/FAQ-man-latex}
%or have a look at
%\href{http://www.dickimaw-books.com/latex/novices}{\LaTeX\ for Complete Novices}.
%
@@ -1753,7 +1753,7 @@ Research (PMLR)},
%Non-class dependent code. This package is automatically loaded by
%\cls{jmlr} but may be used with other classes.
% \begin{macrocode}
-\ProvidesPackage{jmlrutils}[2020/01/31 v1.26 (NLCT)]
+\ProvidesPackage{jmlrutils}[2020/03/26 v1.27 (NLCT)]
% \end{macrocode}
% Package options:
%\begin{macro}{\ifjmlrutilsmaths}
@@ -2117,21 +2117,59 @@ Research (PMLR)},
}
% \end{macrocode}
%\end{macro}
+% The LaTeX kernel changed the definition of \cs{refstepcounter} to
+% allow \cs{p@\ldots} to have an argument. This means we need to
+% check the kernel version and pick up that extra argument if
+% present.
+%\changes{1.27}{2020-03-26}{added check for \LaTeX\ kernel version}
+% \begin{macrocode}
+ \@ifl@t@r\fmtversion{2019/08/22}%
+ {
+% \end{macrocode}
+% Newer kernel versions.
%\begin{macro}{\@subfigurelabel}
% Define how label appears.
% \begin{macrocode}
- \newcommand*\@subfigurelabel[2]{#1\subfigurelabel{#2}}
+ \newcommand*\@subfigurelabel[3]{#1\subfigurelabel{#2}}
% \end{macrocode}
%\end{macro}
+%\begin{macro}{\@subfigref}
+% \begin{macrocode}
+ \newcommand*\@subfigref[1]{%
+ {%
+ \def\@subfigurelabel##1##2##3{\subfigurelabel{##2}}%
+ \ref{#1}%
+ }%
+ }
+% \end{macrocode}
+%\end{macro}
+% \begin{macrocode}
+ }%
+ {
+% \end{macrocode}
+% Older kernel versions.
+%\begin{macro}{\@subfigurelabel}
+% Define how label appears.
+% \begin{macrocode}
+ \newcommand*\@subfigurelabel[2]{#1\subfigurelabel{#2}}
+% \end{macrocode}
+%\end{macro}
+%\begin{macro}{\@subfigref}
+% \begin{macrocode}
+ \newcommand*\@subfigref[1]{%
+ {%
+ \def\@subfigurelabel##1##2{\subfigurelabel{##2}}%
+ \ref{#1}%
+ }%
+ }
+% \end{macrocode}
+%\end{macro}
+% \begin{macrocode}
+ }
+% \end{macrocode}
%\begin{macro}{\subfigref}
% Reference the sub-figure without including the figure number.
% \begin{macrocode}
- \newcommand*\@subfigref[1]{%
- {%
- \def\@subfigurelabel##1##2{\subfigurelabel{##2}}%
- \ref{#1}%
- }%
- }
\newcommand*{\subfigref}[1]{%
\let\@objectname\@empty
\def\@objectref{}%
@@ -2229,21 +2267,56 @@ Research (PMLR)},
}
% \end{macrocode}
%\end{macro}
+%As with \cs{@subfigure} we again need to check \LaTeX\ kernel version.
+%\changes{1.27}{2020-03-26}{added check for \LaTeX\ kernel version}
+% \begin{macrocode}
+ \@ifl@t@r\fmtversion{2019/08/22}%
+ {
+% \end{macrocode}
+% Newer kernel versions.
%\begin{macro}{\@subtablelabel}
% Define how label appears.
% \begin{macrocode}
- \newcommand*\@subtablelabel[2]{#1\subtablelabel{#2}}
+ \newcommand*\@subtablelabel[3]{#1\subtablelabel{#2}}
% \end{macrocode}
%\end{macro}
+%\begin{macro}{\@subtabref}
+% \begin{macrocode}
+ \newcommand*\@subtabref[1]{%
+ {%
+ \def\@subtablelabel##1##2##3{\subtablelabel{##2}}%
+ \ref{#1}%
+ }%
+ }
+% \end{macrocode}
+%\end{macro}
+% \begin{macrocode}
+ }%
+ {
+% \end{macrocode}
+% Older kernel versions.
+%\begin{macro}{\@subtablelabel}
+% Define how label appears.
+% \begin{macrocode}
+ \newcommand*\@subtablelabel[2]{#1\subtablelabel{#2}}
+% \end{macrocode}
+%\end{macro}
+%\begin{macro}{\@subtabref}
+% \begin{macrocode}
+ \newcommand*\@subtabref[1]{%
+ {%
+ \def\@subtablelabel##1##2{\subtablelabel{##2}}%
+ \ref{#1}%
+ }%
+ }
+% \end{macrocode}
+%\end{macro}
+% \begin{macrocode}
+ }%
+% \end{macrocode}
%\begin{macro}{\subtabref}
% Reference the sub-table without including the table number.
% \begin{macrocode}
- \newcommand*\@subtabref[1]{%
- {%
- \def\@subtablelabel##1##2{\subtablelabel{##2}}%
- \ref{#1}%
- }%
- }
\newcommand*{\subtabref}[1]{%
\let\@objectname\@empty
\def\@objectref{}%
@@ -2680,7 +2753,7 @@ Research (PMLR)},
% Declare class and required TeX format:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{jmlr}[2020/01/31 v1.26 (NLCT) Journal of Machine Learning Research]
+\ProvidesClass{jmlr}[2020/03/26 v1.27 (NLCT) Journal of Machine Learning Research]
% \end{macrocode}
%\changes{1.10}{2011-01-05}{hyperref now loaded by jmlr instead of
%jmlrbook}
@@ -4806,7 +4879,7 @@ Keywords:} \ignorespaces}%
% \end{macrocode}
% Declare class:
% \begin{macrocode}
-\ProvidesClass{jmlrbook}[2020/01/31 v1.26 (NLCT) JMLR Book Style]
+\ProvidesClass{jmlrbook}[2020/03/26 v1.27 (NLCT) JMLR Book Style]
% \end{macrocode}
% Need \sty{xkeyval} package to have key=value class options
% \begin{macrocode}