diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/jmlr/jmlr.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/jmlr/jmlr.cls | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/jmlr/jmlr.cls b/Master/texmf-dist/tex/latex/jmlr/jmlr.cls index dc3f8c7172b..fe190f07484 100644 --- a/Master/texmf-dist/tex/latex/jmlr/jmlr.cls +++ b/Master/texmf-dist/tex/latex/jmlr/jmlr.cls @@ -7,7 +7,7 @@ %% jmlr.dtx (with options: `jmlr.cls,package') %% %% jmlr.dtx -%% Copyright 2020 Nicola Talbot +%% Copyright 2022 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -41,7 +41,7 @@ %% First editor: %% Second editor: \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{jmlr}[2020/09/21 v1.28 (NLCT) Journal of Machine Learning Research] +\ProvidesClass{jmlr}[2022/01/29 v1.29 (NLCT) Journal of Machine Learning Research] \RequirePackage{xkeyval} \RequirePackage{calc} \RequirePackage{etoolbox} @@ -56,8 +56,8 @@ \PassOptionsToPackage{color}{xcolor}} \DeclareOptionX{gray}{\grayscaletrue \PassOptionsToPackage{gray}{xcolor}} -\DeclareOptionX{draft}{\setlength\overfullrule{5pt}} -\DeclareOptionX{final}{\setlength\overfullrule{0pt}} +\DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{article}} +\DeclareOptionX{final}{\PassOptionsToClass{\CurrentOption}{article}} \newif\iftablecaptiontop \tablecaptiontoptrue \newcommand{\tableconts}[3]{% @@ -107,6 +107,7 @@ \DeclareOptionX{nowcp}{\jmlrnowcp} \DeclareOptionX{wcp}{\jmlrwcp} \DeclareOptionX{pmlr}{\jmlrpmlr} +\DeclareOptionX{cleveref}{\PassOptionsToPackage{cleveref}{jmlrutils}} \DeclareOptionX{oneside}{\@twosidefalse \@mparswitchfalse} \DeclareOptionX{twoside}{\@twosidetrue \@mparswitchtrue} \@twosidetrue @@ -143,6 +144,7 @@ \setlength{\textwidth}{6.0 true in} \fi \AtEndDocument{\@jmlrenddoc} +\RequirePackage{placeins} \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{natbib} @@ -481,6 +483,7 @@ Keywords:} \ignorespaces}% \def\firstpageno#1{\setcounter{page}{#1}} \@ifundefined{startpage}{}{\firstpageno{\startpage}} \newcommand*{\@jmlrenddoc}{% + \FloatBarrier \phantomsection \protected@edef\@currentlabelname{end of \@shorttitle}% \label{jmlrend}\null @@ -958,6 +961,7 @@ Keywords:} \ignorespaces}% \let\tableofcontents\arttableofcontents \def\thesection{\arabic{section}}% } +\newcommand*{\@jmlr@check@warn}[1]{} \newcommand*{\@jmlr@check@packages}{% \@ifpackageloaded{epsfig}{% \ClassError{jmlr}{Obsolete package `epsfig' detected. @@ -970,13 +974,13 @@ Keywords:} \ignorespaces}% Please use \string\includegraphics\space to include images instead}{}}{}% \@ifpackageloaded{subfig}{% - \ClassError{jmlr}{Package `subfig' detected.\MessageBreak + \@jmlr@check@warn{Package `subfig' detected.\MessageBreak This will cause a conflict if the article is incorporated \MessageBreak into a book using jmlbook.cls. \MessageBreak Please use \string\subfigure\space and - \string\subtable\space instead}{}}{}% + \string\subtable\space instead}}{}% \@ifpackageloaded{theorem}{% \ClassError{jmlr}{Package `theorem' detected.\MessageBreak This can cause a conflict with other packages used by jmlr}{}}{}% @@ -986,10 +990,12 @@ Keywords:} \ignorespaces}% \@ifpackageloaded{amsthm}{% \ClassError{jmlr}{Package `amsthm' detected.\MessageBreak This package conflicts with the jmlr class}{}}{}% - \@ifpackageloaded{pdfpages}{Package `pdfpages' detected.\MessageBreak - This can cause a problem for jmlrbook}{}% - \@ifpackageloaded{geometry}{Package `geometry' detected.\MessageBreak - This can cause a problem for jmlrbook}{}% + \@ifpackageloaded{pdfpages}% + {\@jmlr@check@warn{Package `pdfpages' detected.\MessageBreak + This can cause a problem for jmlrbook}}{}% + \@ifpackageloaded{geometry}% + {\@jmlr@check@warn{Package `geometry' detected.\MessageBreak + This can cause a problem for jmlrbook}}{}% \@ifpackageloaded{tabularx}{% \ClassError{jmlr}{Package `tabularx' detected.\MessageBreak This will break footnote links}{}}{}% |