Debian Codegraph @

texmf-dist/source/latex/jmlr/jmlr.dtx

raw
1 %\iffalse
2 % jmlr.dtx generated using makedtx version 1.2 (c) Nicola Talbot
3 % Command line args:
4 % -src "jmlrutils.sty\Z=>jmlrutils.sty"
5 % -src "jmlr.cls\Z=>jmlr.cls"
6 % -src "(jmlrbook.*\.cls)\Z=>\1"
7 % -section "chapter"
8 % -doc "jmlr-manual.tex"
9 % -author "Nicola Talbot"
10 % jmlr
11 % Created on 2022/2/9 16:53
12 %\fi
13 %\iffalse
14 %<*package>
15 %% \CharacterTable
16 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
17 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
18 %% Digits \0\1\2\3\4\5\6\7\8\9
19 %% Exclamation \! Double quote \" Hash (number) \#
20 %% Dollar \$ Percent \% Ampersand \&
21 %% Acute accent \' Left paren \( Right paren \)
22 %% Asterisk \* Plus \+ Comma \,
23 %% Minus \- Point \. Solidus \/
24 %% Colon \: Semicolon \; Less than \<
25 %% Equals \= Greater than \> Question mark \?
26 %% Commercial at \@ Left bracket \[ Backslash \\
27 %% Right bracket \] Circumflex \^ Underscore \_
28 %% Grave accent \` Left brace \{ Vertical bar \|
29 %% Right brace \} Tilde \~}
30 %</package>
31 %\fi
32 % \iffalse
33 % Doc-Source file to use with LaTeX2e
34 % Copyright (C) 2022 Nicola Talbot, all rights reserved.
35 % \fi
36 % \iffalse
37 %<*driver>
38 \documentclass[report,widecs]{nlctdoc}
39
40 \usepackage{amsmath}
41 \usepackage[utf8]{inputenc}
42 \usepackage[T1]{fontenc}
43 \usepackage{ifthen}
44 \usepackage[colorlinks,
45 bookmarks,
46 hyperindex=false,
47 pdfauthor={Nicola L.C. Talbot},
48 pdftitle={Articles for Proceedings of Machine Learning
49 Research (PMLR)},
50 pdfkeywords={pmlr,jmlr wcp,jmlr}]{hyperref}
51
52 \doxitem{Option}{option}{package options}
53
54 \CheckSum{5415}
55
56 \newcommand*{\appopt}[1]{\texttt{-{}-#1}}
57
58 \begin{document}
59 \DocInput{jmlr.dtx}
60 \end{document}
61 %</driver>
62 %\fi
63 %\MakeShortVerb{"}
64 %\DeleteShortVerb{\|}
65 %
66 % \title{Articles for Proceedings of Machine Learning Research (PMLR)
67 %formerly Journal of Machine Learning Research Workshop and
68 %Conference Proceedings (JMLR W\&CP)}
69 % \author{Nicola L. C. Talbot\\[10pt]
70 %\url{http://www.dickimaw-books.com/}}
71 %
72 % \date{2022-02-09 (version 1.30)}
73 % \maketitle
74 %\tableofcontents
75 %
76 %\chapter{Introduction}
77 %
78 %The \clsfmt{jmlr} class was designed primarily for the Journal of
79 %Machine Learning Research Workshop and Conference Proceedings (JMLR
80 %W\&CP) based on the \sty{jmlrwcp2e} package to make it easier for
81 %production editors to combine articles into a single book.
82 %
83 %The \clsopt{nowcp} option implements the \sty{jmlr2e} style to make it
84 %easier to include reprints from JMLR articles. If you are an author
85 %wanting to submit an article to the JMLR, please see their
86 %guidelines and use their official package.
87 %
88 %Since the creation of this class, the JMLR W\&CP has changed its name to
89 %the Proceedings of Machine Learning Research (PMLR). Articles
90 %submitted to the PMLR should use the \clsopt{pmlr} option. Reprints of
91 %old JMLR W\&CP articles should use the \clsopt{wcp} option.
92 %
93 %The \clsfmt{jmlrbook} class was provided to combine articles that
94 %use the \clsfmt{jmlr} class into a book. The \cls{combine} class
95 %internally used by \clsfmt{jmlrbook} has stopped work following
96 %changes to the \LaTeX\ kernel in 2020. This means that the
97 %\clsfmt{jmlrbook} class is now deprecated. This only affects
98 %production editors not article authors.
99 %
100 %As from v1.24, some non-class dependent commands and environments
101 %have been moved to a new package \sty{jmlrutils} (see
102 %\sectionref{sec:jmlrutils}). This package is automatically loaded by
103 %\clsfmt{jmlr}, but may be used with other classes. (Note that you
104 %will need to explicitly load \sty{algorithm2e} if you want to use
105 %the \env{algorithm} environment.)
106 %
107 %\begin{important}
108 %Note that the \clsfmt{jmlr} (and therefore \clsfmt{jmlrbook}) class automatically loads
109 %the \sty{hyperref} package, but some packages need to be loaded
110 %before \sty{hyperref}.
111 %\end{important}
112 %
113 %Anything that needs to be done before \sty{hyperref} is loaded can be specified
114 %by defining the command
115 %\begin{definition}[\DescribeMacro{\jmlrprehyperref}]
116 %\cs{jmlrprehyperref}
117 %\end{definition}
118 %\emph{before} the class is loaded. For
119 %example, to load the packages \styfmt{foo} and \styfmt{bar} before
120 %\sty{hyperref}, you can do:
121 %\begin{verbatim}
122 %\newcommand{\jmlrprehyperref}{\usepackage{foo,bar}}
123 %\documentclass{jmlr}
124 %\end{verbatim}
125 %
126 %\section{Required Packages}
127 %
128 %The \clsfmt{jmlr} class is based on the \cls{article} class and loads
129 %the following packages: \sty{jmlrutils} (see \sectionref{sec:jmlrutils}),
130 %\sty{amsmath}, \sty{amssymb},
131 %\sty{natbib}, \sty{url}, \sty{graphicx} and \sty{algorithm2e},
132 %\sty{hyperref}, \sty{nameref}, \sty{xcolor} and \sty{xkeyval}.
133 %Note that unlike the \sty{jmlr2e} and \sty{jmlrwcp2e} packages,
134 %this class file does not load the obsolete \sty{epsfig} package.
135 %
136 %\chapter{Guidelines for Article Authors}
137 %\label{sec:jmlr}
138 %
139 %Article authors should use the \clsfmt{jmlr} class with the
140 %\clsopt{pmlr} option. This class
141 %comes with the example file \texttt{pmlr-sample.tex}, which can be used as
142 %a template.
143 %
144 %The following class options are available:
145 %\begin{description}
146 %\item[\clsopt{pmlr}] The article is for the Proceedings of Machine
147 %Learning Research (PMLR).
148 %\item[\clsopt{wcp}] The article is for JMLR Workshop and Conference
149 %Proceedings (JMLR W\&CP).
150 %\item[\clsopt{nowcp}] The article is for the Journal of Machine
151 %Learning Research (default).
152 %
153 %\item[\clsopt{twocolumn}] Use two-column style. The title and author
154 %information will span both columns through the use of the optional
155 %argument of \cs{twocolumn}. This means that no page break can occur
156 %in the title and author list.
157 %
158 %\item[\clsopt{onecolumn}] Use one-column style (default).
159 %
160 %\item[\clsopt{color}] Color version (see \sectionref{sec:color}).
161 %
162 %\item[\clsopt{gray}] Grayscale version (see \sectionref{sec:color}).
163 %
164 %\item[{\clsopt[top]{tablecaption}}] in a \env{table} environment,
165 %\ics{floatconts} puts the caption at the top.
166 %
167 %\item[{\clsopt[bottom]{tablecaption}}] in a \env{table} environment,
168 %\ics{floatconts} puts the caption at the bottom.
169 %
170 %\item[\clsopt{cleveref}] This option is passed to \sty{jmlrutils}
171 %(see \sectionref{sec:jmlrutils}).
172 %
173 %\item[\clsopt{nocleveref}] This option is passed to \sty{jmlrutils}
174 %(see \sectionref{sec:jmlrutils}).
175 %
176 %\end{description}
177 %
178 %\section{Title Information}
179 %
180 %The \clsfmt{jmlr} class uses different syntax from \sty{jmlr2e} and
181 %\sty{jmlrwcp2e} to specify the title information. In particular, it
182 %doesn't define \cs{jmlrheading} and \cs{ShortHeading}. Instead, the
183 %following commands should be used:
184 %
185 %\begin{definition}[\DescribeMacro{\jmlrvolume}]
186 %\cs{jmlrvolume}\marg{number}
187 %\end{definition}
188 %This specifies the volume number. For example:
189 %\begin{verbatim}
190 %\jmlrvolume{2}
191 %\end{verbatim}
192 %
193 %\begin{definition}[\DescribeMacro{\jmlryear}]
194 %\cs{jmlryear}\marg{year}
195 %\end{definition}
196 %This specifies the year. For example:
197 %\begin{verbatim}
198 %\jmlryear{2010}
199 %\end{verbatim}
200 %
201 %\begin{definition}[\DescribeMacro{\jmlrsubmitted}]
202 %\cs{jmlrsubmitted}\marg{date}
203 %\end{definition}
204 %This specifies the submission date.
205 %
206 %\begin{definition}[\DescribeMacro{\jmlrpublished}]
207 %\cs{jmlrpublished}\marg{date}
208 %\end{definition}
209 %This specifies the publication date.
210 %
211 %\begin{definition}[\DescribeMacro{\jmlrworkshop}]
212 %\cs{jmlrworkshop}\marg{title}
213 %\end{definition}
214 %This specifies the workshop title (for use with the \clsopt{wcp}
215 %class option).
216 %
217 %The title information is specified using the commands described
218 %below. These commands should typically go in the preamble. As
219 %with most class files, The title itself is produced using
220 %\begin{definition}[\DescribeMacro{\maketitle}]
221 %\cs{maketitle}
222 %\end{definition}
223 %This command should go after \verb|\begin{document}|. For example:
224 %\begin{verbatim}
225 %\begin{document}
226 %\maketitle
227 %\end{verbatim}
228 %Before \cs{maketitle}, you must specify the title information
229 %using the following commands:
230 %
231 %\begin{definition}[\DescribeMacro{\title}]
232 %\cs{title}\oarg{short title}\marg{title}
233 %\end{definition}
234 %This specifies the article's title. A short title for the page
235 %header can be supplied via the optional argument \meta{short title}.
236 %If you want to force a line break in the title, use
237 %\begin{definition}[\DescribeMacro{\titlebreak}]
238 %\cs{titlebreak}
239 %\end{definition}
240 %instead of \cs{newline} or \verb|\\| as this will ensure that the
241 %line break doesn't also end up in the table of contents or bookmarks
242 %when the article is included in a book. If there is content within
243 %the title that should not appear in the page headings or table of
244 %contents (for example, a footnote) use
245 %\begin{definition}[\DescribeMacro{\titletag}]
246 %\cs{titletag}\marg{title only stuff}
247 %\end{definition}
248 %For example:
249 %\begin{verbatim}
250 %\title{An Interesting Paper\titlebreak
251 %With a Line Break\titletag{\thanks{and an
252 %acknowledgement}}}
253 %\end{verbatim}
254 %
255 %
256 %\begin{definition}[\DescribeMacro{\editor}]
257 %\cs{editor}\marg{name}
258 %\end{definition}
259 %This specifies the editor's name. If there is more than one
260 %editor, use:
261 %\begin{definition}[\DescribeMacro{\editors}]
262 %\cs{editors}\marg{names}
263 %\end{definition}
264 %
265 %\begin{definition}[\DescribeMacro{\author}]
266 %\cs{author}\marg{author specs}
267 %\end{definition}
268 %This specifies the author. The specifications \meta{author specs}
269 %are a bit different to \sty{jmlr2e} and \sty{jmlrwcp2e}. Use
270 %\begin{definition}[\DescribeMacro{\Name}]
271 %\cs{Name}\oarg{abbreviated name}\marg{author's name}
272 %\end{definition}
273 %to specify the author's name. Note that if the surname contains a
274 %space it must be grouped (enclosed in braces \{\}). Similarly if
275 %the initial letter of each forename is a diacritic it must be
276 %grouped. If the abbreviation of the name doesn't get parsed
277 %properly you can override the default using the optional argument. (See below for examples.)
278 %
279 %If there is any content within \meta{author's name} that shouldn't
280 %get copied to the header, footer or table of contents, it should be
281 %enclosed within the argument of
282 %\begin{definition}[\DescribeMacro{\nametag}]
283 %\cs{nametag}\marg{title only stuff}
284 %\end{definition}
285 %For example:
286 %\begin{verbatim}
287 %\Name{Ann Other\nametag{\thanks{formerly with some other
288 %institute}}}
289 %\end{verbatim}
290 %
291 %\begin{important}
292 %Ensure no space occurs before \cs{nametag} otherwise the surname
293 %will be interpreted as an empty string because the space is used to
294 %separate the forenames from the surname.
295 %\end{important}
296 %
297 %\begin{definition}[\DescribeMacro{\Email}]
298 %\cs{Email}\marg{author's email}
299 %\end{definition}
300 %This specifies the author's email address. It should only be used
301 %within the argument to \cs{author}.
302 %
303 %\begin{definition}[\DescribeMacro{\and}]
304 %\cs{and}
305 %\end{definition}
306 %This should be used to separate two authors with the same address.
307 %
308 %\begin{definition}[\DescribeMacro{\AND}]
309 %\cs{AND}
310 %\end{definition}
311 %This should be used to separate authors with different addresses.
312 %
313 %\begin{definition}[\DescribeMacro{\\}]
314 %\verb|\\|
315 %\end{definition}
316 %This should be used before an author's address or between authors
317 %with the same address where there are more that two authors.
318 %
319 %\begin{definition}[\DescribeMacro{\addr}]
320 %\cs{addr}
321 %\end{definition}
322 %This should be used at the start of the address.
323 %
324 %\begin{description}
325 %\item[Example 1] Two authors with the same address:
326 %\begin{verbatim}
327 %\author{\Name{Jane Doe} \Email{[email protected]}\and
328 % \Name{John {Basey Fisher}} \Email{[email protected]}\\
329 % \addr Address}
330 %\end{verbatim}
331 %In this example, the second author has a space in his surname
332 %so the surname needs to be grouped.
333 %
334 %\item[Example 2] Three authors with the same address:
335 %\begin{verbatim}
336 %\author{\Name{Fred Arnold {de la Cour}} \Email{[email protected]}\\
337 % \Name{Jack Jones} \Email{[email protected]}\\
338 % \Name{{\'E}louise {\'E}abhla Finchley} \Email{[email protected]}\\
339 % \addr Address}
340 %\end{verbatim}
341 %In this example, the third author has an accent on her
342 %forename initials so grouping is required.
343 %
344 %\item[Example 3] Authors with a different address:
345 %\begin{verbatim}
346 %\author{\Name{John Smith} \Email{[email protected]}\\
347 % \addr Address 1
348 % \AND
349 % \Name{May Brown} \Email{[email protected]}\\
350 % \addr Address 2
351 % }
352 %\end{verbatim}
353 %
354 %\item[Example 4] The author is actually a company so there's no
355 %first name and surname:
356 %\begin{verbatim}
357 %\author{\Name[Some Company, Ltd]{Some Company, Ltd}\Email{xyz:some.com}\\
358 % \addr Address
359 %}
360 %\end{verbatim}
361 %\end{description}
362 %
363 %\section{Font Changing Commands}
364 %
365 %Use the \LaTeXe\ font changing commands, such as \cs{bfseries} or
366 %\cs{textbf}\marg{text}, rather than the obsolete \LaTeX2.09
367 %commands, such as \cs{bf}. (The obsolete font changing commands
368 %will produce a warning if used.)
369 %
370 %\begin{definition}[\DescribeMacro{\url}]
371 %\cs{url}\marg{address}
372 %\end{definition}
373 %This will typeset \meta{address} in a typewriter font. Special
374 %characters, such as \verb|~|, are correctly displayed. Example:
375 %\begin{verbatim}
376 %\url{http://theoval.cmp.uea.ac.uk/~nlct/}
377 %\end{verbatim}
378 %This command is provided by the \sty{url} package which is
379 %automatically loaded.
380 %
381 %\begin{definition}[\DescribeMacro{\mailto}]
382 %\cs{mailto}\marg{email address}
383 %\end{definition}
384 %This will typeset the given email address in a typewriter font.
385 %Note that this is not the same as \cs{Email}, which should only be
386 %used in the argument of \cs{author}. This command is provided by the
387 %supplementary package \sty{jmlrutils}. Other commands are described
388 %in \sectionref{sec:jmlrutils}.
389 %
390 %\section{Structure}
391 %
392 %\begin{definition}[\DescribeEnv{abstract}]
393 %\cs{begin}\{abstract\}\\
394 %\meta{text}\\
395 %\cs{end}\{abstract\}
396 %\end{definition}
397 %The abstract text should be displayed using the \envfmt{abstract}
398 %environment.
399 %
400 %\begin{definition}[\DescribeEnv{keywords}]
401 %\cs{begin}\{keywords\}\meta{keyword list}\cs{end}\{keywords\}
402 %\end{definition}
403 %The keywords should be displayed using the \envfmt{keywords}
404 %environment.
405 %
406 %\begin{definition}[\DescribeMacro{\acks}]
407 %\cs{acks}\marg{text}
408 %\end{definition}
409 %This displays the acknowledgements.
410 %
411 %\begin{definition}[\DescribeMacro{\section}]
412 %\cs{section}\marg{title}
413 %\end{definition}
414 %Section titles are created using \cs{section}. The heading is
415 %automatically numbered and can be cross-referenced using
416 %\cs{label} and \cs{ref}. Unnumbered sections can be produced
417 %using:
418 %\begin{definition}[\DescribeMacro{\section*}]
419 %\cs{section*}\marg{title}
420 %\end{definition}
421 %
422 %\begin{definition}[\DescribeMacro{\subsection}]
423 %\cs{subsection}\marg{title}
424 %\end{definition}
425 %Sub-section titles are created using \cs{subsection}. Unnumbered
426 %sub-sections can be produced using:
427 %\begin{definition}[\DescribeMacro{\subsection*}]
428 %\cs{subsection*}\marg{title}
429 %\end{definition}
430 %
431 %\begin{definition}[\DescribeMacro{\subsubsection}]
432 %\cs{subsubsection}\marg{title}
433 %\end{definition}
434 %Sub-sub-section titles are created using \cs{subsubsection}.
435 %Unnumbered sub-sub-sections can be produced using:
436 %\begin{definition}[\DescribeMacro{\subsubsection*}]
437 %\cs{subsubsection*}\marg{title}
438 %\end{definition}
439 %
440 %Further sectioning levels can be obtained using \cs{paragraph}
441 %and \cs{subparagraph}, but these are unnumbered with running heads.
442 %
443 %\begin{definition}[\DescribeMacro{\appendix}]
444 %\cs{appendix}
445 %\end{definition}
446 %Use \cs{appendix} to switch to the appendices. This changes
447 %\cs{section} to produce an appendix. Example:
448 %\begin{verbatim}
449 %\appendix
450 %\chapter{Proof of Theorems}
451 %\end{verbatim}
452 %
453 %\section{Citations and Bibliography}
454 %
455 %The \clsfmt{jmlr} class automatically loads \sty{natbib} and sets
456 %the bibliography style to \texttt{plainnat}. References should
457 %be stored in a \texttt{.bib} file.
458 %
459 %\begin{definition}[\DescribeMacro{\bibliography}]
460 %\cs{bibliography}\marg{bib file}
461 %\end{definition}
462 %This displays the bibliography.
463 %
464 %\begin{definition}[\DescribeMacro{\citep}]
465 %\cs{citep}\oarg{pre note}\oarg{post note}\marg{label}
466 %\end{definition}
467 %Use \cs{citep} for a parenthetical citation.
468 %
469 %\begin{definition}[\DescribeMacro{\citet}]
470 %\cs{citet}\oarg{note}\marg{label}
471 %\end{definition}
472 %Use \cs{citet} for a textual citation.
473 %
474 %See the \ctandoc{natbib} for further details.
475 %
476 %\section{\styfmt{jmlrutils} supplementary package}
477 %\label{sec:jmlrutils}
478 %
479 %The \sty{jmlrutils} package is automatically loaded by the
480 %\clsfmt{jmlr} class but may be used with other classes.
481 %
482 %\subsection{Package Options}
483 %
484 %The following options may be passed to the \styfmt{jmlrutils}
485 %package if it is to be used without the \clsfmt{jmlr} class.
486 %\begin{description}
487 %\item[\pkgopt{maths}] Define the commands \cs{set} and \cs{oldvec}
488 %and redefine \cs{vec}. This will also automatically load the
489 %\sty{amsmath} package. (Default.)
490 %\item[\pkgopt{nomaths}] Don't define \cs{set} and \cs{oldvec}
491 %and don't redefine \cs{vec}.
492 %\item[\pkgopt{theorems}] Define the theorem commands and
493 %environments listed in \sectionref{sec:theorems}. (Default.)
494 %\item[\pkgopt{notheorems}] Don't define the theorem commands and
495 %environments.
496 %
497 %\item[\pkgopt{cleveref}] Loads \sty{aliascnt} and \sty{cleveref}
498 %and defines the theorem environments with aliased counters. Note
499 %that this option is largely redundant with \pkgopt{notheorems}. When
500 %\sty{jmlrutils} is loaded implicitly by \cls{jmlr}, this option will
501 %also ensure that \sty{hyperref} is loaded before \sty{cleveref}. If
502 %\sty{jmlrutils} is loaded without \cls{jmlr} then \sty{hyperref}
503 %won't be loaded unless \ics{jmlrprehyperref} is defined.
504 %
505 %\item[\pkgopt{nocleveref}] Don't load \sty{aliascnt} and
506 %\sty{cleveref} (default).
507 %
508 %\item[\pkgopt{subfloats}] Define the sub-figure and sub-table
509 %commands listed in \sectionref{sec:subfloats}. (Default.)
510 %\item[\pkgopt{nosubfloats}] Don't define the sub-figure and
511 %sub-table commands.
512 %\end{description}
513 %The non-default options are provided when \styfmt{jmlrutils} is
514 %loaded without the \clsfmt{jmlr} class.
515 %Don't try passing the non-default options to \styfmt{jmlrutils} if
516 %you are using the \clsfmt{jmlr} class as this could interfere with
517 %the build process for the proceedings or book.
518 %
519 %The \styfmt{jmlrutils} package doesn't recognise any of the
520 %\clsfmt{jmlr} class options (such as \pkgopt{tablecaption}).
521 %
522 %\subsection{Figures and Tables}
523 %\label{sec:floats}
524 %
525 %Floats, such as figures, tables and algorithms, are moving objects
526 %and are supposed to float to the nearest convenient location.
527 %Please don't force them to go in a particular place. In general
528 %it's best to use the \texttt{htbp} specifier and don't put
529 %the float in the middle of a paragraph (that is, make sure there's
530 %a paragraph break above and below the float). Floats are supposed
531 %to have a little extra space above and below them to make them
532 %stand out from the rest of the text. This extra space is put in
533 %automatically and shouldn't need modifying.
534 %
535 %To ensure consistency, please \emph{\bfseries don't} try changing the
536 %format of the caption by doing something like:
537 %\begin{verbatim}
538 %\caption{\textit{A Sample Caption.}}
539 %\end{verbatim}
540 %or
541 %\begin{verbatim}
542 %\caption{\em A Sample Caption.}
543 %\end{verbatim}
544 %You can, of course, change the font for individual words or
545 %phrases. For example:
546 %\begin{verbatim}
547 %\caption{A Sample Caption With Some \emph{Emphasized Words}.}
548 %\end{verbatim}
549 %
550 %The \styfmt{jmlrutils} package provides the following command for displaying
551 %the contents of a figure or table:
552 %\begin{definition}[\DescribeMacro{\floatconts}]
553 %\cs{floatconts}\marg{label}\marg{caption command}\marg{contents}
554 %\end{definition}
555 %This ensures that the caption is correctly positioned and that
556 %the contents are centred. For example:
557 %\begin{verbatim}
558 %\begin{table}[htbp]
559 %\floatconts
560 % {tab:example}% label
561 % {\caption{An Example Table}}% caption command
562 % {%
563 % \begin{tabular}{ll}
564 % \bfseries Dataset & \bfseries Result\\
565 % Data1 & 0.123456
566 % \end{tabular}
567 % }
568 %\end{table}
569 %\end{verbatim}
570 %If the \clsfmt{jmlr} class is used, the table caption (when used
571 %with \cs{floatconts}) will obey the \clsopt{tablecaption} class option,
572 %otherwise it will be placed above the table contents. Within the
573 %\env{figure} environment, \cs{floatconts} will put the caption below
574 %the contents. This command may be used within other floats.
575 %
576 %The \clsfmt{jmlr} class automatically loads \sty{graphicx} which
577 %defines:
578 %\begin{definition}[\DescribeMacro{\includegraphics}]
579 %\cs{includegraphics}\oarg{options}\marg{file name}
580 %\end{definition}
581 %where \meta{options} is a comma-separated list of options.
582 %If you are using \styfmt{jmlrutils} with another class you need to load
583 %\sty{graphicx} in order to use this command. See the documentation
584 %for the \sty{graphicx} package for further details of this command
585 %and other provided commands.
586 %
587 %For example, suppose you have an image called
588 %\texttt{mypic.png} in a subdirectory called \texttt{images}:
589 %\begin{verbatim}
590 %\begin{figure}[htbp]
591 %\floatconts
592 % {fig:example}% label
593 % {\caption{An Example Figure}}% caption command
594 % {\includegraphics[width=0.5\textwidth]{images/mypic}}
595 %\end{figure}
596 %\end{verbatim}
597 %
598 %Note that you shouldn't specify the file extension when including
599 %the image when using the \clsfmt{jmlr} class. It's helpful if you
600 %can also provide a grayscale version of colour images. This should be
601 %labelled as the colour image but with \texttt{-gray} immediately
602 %before the extension. (The extension need not be the same as that
603 %of the colour image.) For example, if you have an image called
604 %\texttt{mypic.pdf}, the grayscale can be called
605 %\texttt{mypic-gray.pdf}, \texttt{mypic-gray.png} or
606 %\texttt{mypic-gray.jpg}. See \sectionref{sec:color} for further
607 %details.
608 %
609 %\begin{definition}[\DescribeMacro{\includeteximage}]
610 %\cs{includeteximage}\oarg{options}\marg{file name}
611 %\end{definition}
612 %If your image file is made up of \LaTeX\ code (e.g.\ \sty{tikz}
613 %commands) the file can be included using \cs{includeteximage}.
614 %The optional argument is a key=value comma-separated list
615 %where the available keys are a subset of those provided by
616 %\sty{graphicx}'s \cs{includegraphics}. The main keys are: \texttt{width},
617 %\texttt{height}, \texttt{scale} and \texttt{angle}. Some
618 %of the keys specific to image files (such as the bounding box
619 %and type keys) do nothing with \cs{includeteximage}.
620 %
621 %\subsubsection{Sub-Figures and Sub-Tables}
622 %\label{sec:subfloats}
623 %
624 %The \sty{subfig} package causes a problem for \clsfmt{jmlrbook} so
625 %the \clsfmt{jmlr} class will give an error if it is used. Therefore
626 %the \clsfmt{jmlr} class provides its own commands for including
627 %sub-figures and sub-tables. If you aren't using the \clsfmt{jmlr}
628 %class, you can prevent \styfmt{jmlrutils} from defining these
629 %commands with the \pkgopt{nosubfloats} package option.
630 %
631 %Sub-float captions that are wider than the corresponding sub-float content
632 %are placed inside a \cs{parbox} set to the width of the sub-float
633 %content. This allows long captions to line wrap in a mini-paragraph
634 %below the sub-float. However, if the sub-float is very narrow, this
635 %can lead to badly-broken sub-captions that generate overfull or
636 %underfull hbox warnings. You can specify a minimum width for
637 %sub-float captions by setting the following length:
638 %\begin{definition}[\DescribeMacro{\jmlrminsubcaptionwidth}]
639 %\cs{jmlrminsubcaptionwidth}
640 %\end{definition}
641 %The default value is 0pt. The value should be set with
642 %\cs{setlength}. The assignment can be localised by placing it within
643 %a group or environment.
644 %
645 %\begin{definition}[\DescribeMacro{\subfigure}]
646 %\cs{subfigure}\oarg{title}\oarg{valign}\marg{contents}
647 %\end{definition}
648 %This makes a sub-figure where \meta{contents} denotes the contents
649 %of the sub-figure. This should also include the \cs{label}.
650 %The first optional argument \meta{title} indicates a caption for
651 %the sub-figure. By default, the sub-figures are aligned at the
652 %base. This can be changed with the second optional argument
653 %\meta{valign}, which may be one of: \texttt{t} (top), \texttt{c}
654 %(centred) or \texttt{b} (base).
655 %
656 %For example, suppose there are two images files, \texttt{mypic1.png}
657 %and \texttt{mypic2.png}, in the subdirectory \texttt{images}.
658 %Then they can be included as sub-figures as follows:
659 %\begin{verbatim}
660 %\begin{figure}[htbp]
661 %\floatconts
662 % {fig:example2}% label for whole figure
663 % {\caption{An Example Figure.}}% caption for whole figure
664 % {%
665 % \subfigure{%
666 % \label{fig:pic1}% label for this sub-figure
667 % \includegraphics{images/mypic1}
668 % }\qquad % space out the images a bit
669 % \subfigure{%
670 % \label{fig:pic2}% label for this sub-figure
671 % \includegraphics{images/mypic2}
672 % }
673 % }
674 %\end{figure}
675 %\end{verbatim}
676 %
677 %\begin{definition}[\DescribeMacro{\subtable}]
678 %\cs{subtable}\oarg{title}\oarg{valign}\marg{contents}
679 %\end{definition}
680 %This is an analogous command for sub-tables. The default value
681 %for \meta{valign} is \texttt{t}.
682 %
683 %\subsection{Algorithms}
684 %The \clsfmt{jmlr} class automatically loads the \sty{algorithm2e}
685 %package. If you are using \styfmt{jmlrutils} with another class, you
686 %will need to load \sty{algorithm2e} if you want to use the
687 %\env{algorithm} and \env{algorithm2e} environments described below.
688 %
689 %\begin{definition}[\DescribeEnv{algorithm}]
690 %\cs{begin}\{algorithm\}\oarg{placement}\\
691 %\meta{contents}\\
692 %\cs{end}\{algorithm\}
693 %\end{definition}
694 %Enumerated textual algorithms can be displayed using the
695 %\envfmt{algorithm} environment.
696 %The optional argument is as for \env{figure} and \env{table}.
697 %
698 %Within the body of the
699 %environment you can use the \env{enumerate} environment.
700 %\begin{definition}[\DescribeEnv{enumerate*}]
701 %\cs{begin}\{enumerate*\}\\
702 %\cs{item} \meta{text}\\
703 %\ldots\\
704 %\cs{end}\{enumerate*\}
705 %\end{definition}
706 %If you want to have nested \env{enumerate} environments but you want
707 %to keep the same numbering throughout the algorithm, you can use the
708 %\envfmt{enumerate*} environment, provided by the \styfmt{jmlrutils}
709 %package. For example:
710 %\begin{verbatim}
711 %\begin{algorithm}
712 %\floatconts{alg:path}%label
713 %{\caption{Shortest Path}}% caption
714 %{% contents
715 %\begin{enumerate*}
716 % \item Set the label of vertex $s$ to 0
717 % \item Set $i=0$
718 % \begin{enumerate*}
719 % \item \label{step:locate}Locate all unlabelled vertices
720 % adjacent to a vertex labelled $i$ and label them $i+1$
721 % \item If vertex $t$ has been labelled,
722 % \begin{enumerate*}
723 % \item[] the shortest path can be found by backtracking, and
724 % the length is given by the label of $t$.
725 % \end{enumerate*}
726 % otherwise
727 % \begin{enumerate*}
728 % \item[] increment $i$ and return to step~\ref{step:locate}
729 % \end{enumerate*}
730 % \end{enumerate*}
731 %\end{enumerate*}
732 %}
733 %\end{algorithm}
734 %\end{verbatim}
735 %
736 %
737 %\begin{definition}[\DescribeEnv{algorithm2e}]
738 %\cs{begin}\{algorithm2e\}\\
739 %\meta{contents}\\
740 %\cs{end}\{algorithm2e\}
741 %\end{definition}
742 %Pseudo code can be displayed using the \envfmt{algorithm2e} environment,
743 %provided by the \sty{algorithm2e} package, which is automatically
744 %loaded. For example:
745 %\begin{verbatim}
746 %\begin{algorithm2e}
747 %\caption{Computing Net Activation}
748 %\label{alg:net}
749 %\DontPrintSemicolon
750 %\LinesNumbered
751 %\KwIn{$x_1, \ldots, x_n, w_1, \ldots, w_n$}
752 %\KwOut{$y$, the net activation}
753 %$y\leftarrow 0$\;
754 %\For{$i\leftarrow 1$ \KwTo $n$}{
755 % $y \leftarrow y + w_i*x_i$\;
756 %}
757 %\end{algorithm2e}
758 %\end{verbatim}
759 %
760 %See the \ctandoc{algorithm2e} for more details.
761 %
762 %\subsection{Description Lists}
763 %
764 %\begin{definition}[\DescribeEnv{altdescription}]
765 %\cs{begin}\{altdescription\}\marg{widest label}\\
766 %\cs{item}\oarg{label} \meta{item text}\\
767 %\cs{end}\{altdescription\}
768 %\end{definition}
769 %In addition to the standard \env{description} environment, the
770 %\clsfmt{jmlr} class also provides the \envfmt{altdescription} environment.
771 %This has an argument that should be the widest label used in the
772 %list. For example:
773 %\begin{verbatim}
774 %\begin{altdescription}{differentiate}
775 %\item[add] A method that adds two variables.
776 %\item[differentiate] A method that differentiates a function.
777 %\end{altdescription}
778 %\end{verbatim}
779 %
780 %\subsection{Theorems, Lemmas etc}
781 %\label{sec:theorems}
782 %
783 %The \clsfmt{jmlrbook} class doesn't work well with common theorem
784 %packages, so \styfmt{jmlrutils} provides theorem code that won't
785 %conflict with \clsfmt{jmlrbook}. If you're using \styfmt{jmlrutils}
786 %without the \clsfmt{jmlr} class, you can prevent the definition of
787 %these commands with the \pkgopt{notheorems} package option.
788 %
789 %The \styfmt{jmlrutils} package provides the following theorem-like
790 %environments: \env{theorem}, \env{example}, \env{lemma},
791 %\env{proposition}, \env{remark}, \env{corollary}, \env{definition},
792 %\env{conjecture} and \env{axiom}. Within the body of those
793 %environments, you can use the \env{proof} environment to display the
794 %proof if need be. The theorem-like environments all take an
795 %optional argument, which gives the environment a title. For example:
796 %
797 %\begin{verbatim}
798 %\begin{theorem}[An Example Theorem]
799 %\label{thm:example}
800 %This is the theorem.
801 %\begin{proof}
802 %This is the proof.
803 %\end{proof}
804 %\end{theorem}
805 %\end{verbatim}
806 %
807 %You can define your own numbered theorem-like environment using:
808 %\begin{definition}[\DescribeMacro{\newtheorem}]
809 %\cs{newtheorem}\marg{name}\oarg{counter}\marg{title}\oarg{outer
810 %counter}
811 %\end{definition}
812 %or you can define an unnumbered theorem-like environment using:
813 %\begin{definition}[\DescribeMacro{\newtheorem*}]
814 %\cs{newtheorem*}\marg{name}\marg{title}
815 %\end{definition}
816 %where \meta{name} is the name of the new environment and
817 %\meta{title} is the title tag at the start of the environment. In
818 %the case of the numbered theorems, \meta{counter} is a predefined
819 %counter to use with this theorem. If omitted, a new counter called
820 %\meta{name} will be defined. The final optional argument \meta{outer
821 %counter} is the name of a parent counter which, when incremented, should
822 %reset the theorem counter.
823 %
824 %Both \cs{newtheorem} and \cs{newtheorem*} set the new theorem's
825 %style to the current defined style. The current style is set using
826 %the following commands:
827 %\begin{definition}[\DescribeMacro{\theorembodyfont}]
828 %\cs{theorembodyfont}\marg{declarations}
829 %\end{definition}
830 %This sets the font declarations used in the body of the theorem.
831 %This defaults to \cs{itshape}.
832 %\begin{definition}[\DescribeMacro{\theoremheaderfont}]
833 %\cs{theoremheaderfont}\marg{declarations}
834 %\end{definition}
835 %This sets the font declarations used for the theorem title.
836 %This defaults to \cs{bfseries}.
837 %\begin{definition}[\DescribeMacro{\theorempostheader}]
838 %\cs{theorempostheader}\marg{text}
839 %\end{definition}
840 %This indicates what should occur at the end of the title. This
841 %defaults to nothing.
842 %\begin{definition}[\DescribeMacro{\theoremsep}]
843 %\cs{theoremsep}\marg{text}
844 %\end{definition}
845 %This indicates what to put between the header and the body of the
846 %environment. This defaults to nothing.
847 %
848 %For example, to define an unnumbered theorem-like environment called
849 %\qt{note} with the title \qt{Note} followed by a colon and a new
850 %line between the title and the body of the \texttt{note}
851 %environment:
852 %\begin{verbatim}
853 % \theorembodyfont{\upshape}
854 % \theoremheaderfont{\scshape}
855 % \theorempostheader{:}
856 % \theoremsep{\newline}
857 % \newtheorem*{note}{Note}
858 %\end{verbatim}
859 %Now it can be used in the document environment:
860 %\begin{verbatim}
861 %\begin{note}
862 %This is an numbered theorem-like environment.
863 %\end{note}
864 %\end{verbatim}
865 %
866 %\subsection{Cross-Referencing}
867 %\label{sec:crossref}
868 %
869 %Always use \ics{label} when cross-referencing, rather than writing
870 %the number explicitly. The \styfmt{jmlrutils} package provides some
871 %convenience commands to assist referencing. These commands,
872 %described below, can all take a comma-separated list of labels.
873 %
874 %\begin{definition}[\DescribeMacro{\sectionref}]
875 %\cs{sectionref}\marg{label list}
876 %\end{definition}
877 %Used to refer to a section or sections. For example, if you defined
878 %a section as follows:
879 %\begin{verbatim}
880 %\chapter{Results}\label{sec:results}
881 %\end{verbatim}
882 %you can refer to it as follows:
883 %\begin{verbatim}
884 %The results are detailed in \sectionref{sec:results}.
885 %\end{verbatim}
886 %This command may also be used for sub-sections and sub-sub-sections.
887 %
888 %\begin{definition}[\DescribeMacro{\appendixref}]
889 %\cs{appendixref}\marg{label list}
890 %\end{definition}
891 %Used to refer to an appendix or multiple appendices.
892 %
893 %\begin{definition}[\DescribeMacro{\equationref}]
894 %\cs{equationref}\marg{label list}
895 %\end{definition}
896 %Used to refer to an equation or multiple equations.
897 %
898 %\begin{definition}[\DescribeMacro{\tableref}]
899 %\cs{tableref}\marg{label list}
900 %\end{definition}
901 %Used to refer to a table or multiple tables. This can also be
902 %used for sub-tables where the main table number is also required.
903 %
904 %\begin{definition}[\DescribeMacro{\subtabref}]
905 %\cs{subtabref}\marg{label list}
906 %\end{definition}
907 %Used to refer to sub-tables without the main table number, e.g.
908 %(\emph{a}) or (\emph{b}).
909 %
910 %\begin{definition}[\DescribeMacro{\figureref}]
911 %\cs{figureref}\marg{label list}
912 %\end{definition}
913 %Used to refer to a figure or multiple figures. This can also
914 %be used for sub-figures where the main figure number is also
915 %required, e.g.\ 2(\emph{a}) or 4(\emph{b}).
916 %
917 %\begin{definition}[\DescribeMacro{\subfigref}]
918 %\cs{subfigref}\marg{label list}
919 %\end{definition}
920 %Used to refer to sub-figures without the main figure number, e.g.
921 %(\emph{a}) or (\emph{b}).
922 %
923 %\begin{definition}[\DescribeMacro{\algorithmref}]
924 %\cs{algorithmref}\marg{label list}
925 %\end{definition}
926 %Used to refer to an algorithm or multiple algorithms.
927 %
928 %\begin{definition}[\DescribeMacro{\theoremref}]
929 %\cs{theoremref}\marg{label list}
930 %\end{definition}
931 %Used to refer to a theorem or multiple theorems.
932 %
933 %\begin{definition}[\DescribeMacro{\lemmaref}]
934 %\cs{lemmaref}\marg{label list}
935 %\end{definition}
936 %Used to refer to a lemma or multiple lemmas.
937 %
938 %\begin{definition}[\DescribeMacro{\remarkref}]
939 %\cs{remarkref}\marg{label list}
940 %\end{definition}
941 %Used to refer to a remark or multiple remarks.
942 %
943 %\begin{definition}[\DescribeMacro{\corollaryref}]
944 %\cs{corollaryref}\marg{label list}
945 %\end{definition}
946 %Used to refer to a corollary or multiple corollaries.
947 %
948 %\begin{definition}[\DescribeMacro{\definitionref}]
949 %\cs{definitionref}\marg{label list}
950 %\end{definition}
951 %Used to refer to a definition or multiple definitions.
952 %
953 %\begin{definition}[\DescribeMacro{\conjectureref}]
954 %\cs{conjectureref}\marg{label list}
955 %\end{definition}
956 %Used to refer to a conjecture or multiple conjectures.
957 %
958 %\begin{definition}[\DescribeMacro{\axiomref}]
959 %\cs{axiomref}\marg{label list}
960 %\end{definition}
961 %Used to refer to an axiom or multiple axioms.
962 %
963 %\begin{definition}[\DescribeMacro{\exampleref}]
964 %\cs{exampleref}\marg{label list}
965 %\end{definition}
966 %Used to refer to an example or multiple examples.
967 %
968 %\subsection{Mathematics}
969 %
970 %The \clsfmt{jmlr} class loads the \sty{amsmath} package so you can
971 %use any of the commands and environments defined in that package.
972 %The \styfmt{jmlrutils} package will load \sty{amsmath} if the
973 %default \pkgopt{maths} package option is used but won't load
974 %\sty{amsmath} if the \pkgopt{nomaths} option is used. A brief
975 %summary of some of the more common commands and environments is
976 %provided here. See the \ctandoc{amsmath} for further details.
977 %
978 %\begin{definition}[\DescribeMacro{\set}]
979 %\cs{set}\marg{maths}
980 %\end{definition}
981 %In addition to the commands provided by \sty{amsmath}, the
982 %\styfmt{jmlrutils} package also provides the \cs{set} command which can
983 %be used to typeset a set. For example:
984 %\begin{verbatim}
985 %The universal set is denoted $\set{U}$
986 %\end{verbatim}
987 %This command won't be provided if the \pkgopt{nomaths} option is
988 %used.
989 %
990 %\begin{definition}[\DescribeMacro{\vec}]
991 %\cs{vec}\marg{maths}
992 %\end{definition}
993 %The \cs{vec} command is redefined by \styfmt{jmlrutils} to use
994 %\cs{boldsymbol}, which is provided by \sty{amsmath}.
995 %(This command won't be redefined if the \pkgopt{nomaths} option is
996 %used.) If you require
997 %the original \cs{vec}, you can access it with:
998 %\begin{definition}[\DescribeMacro{\orgvec}]
999 %\cs{orgvec}\marg{maths}
1000 %\end{definition}
1001 %This command won't be provided if the \pkgopt{nomaths} option is
1002 %used.
1003 %
1004 %Unnumbered single-line equations should be displayed using
1005 %\cs{[} and \cs{]}. For example:
1006 %\begin{verbatim}
1007 %\[E = m c^2\]
1008 %\end{verbatim}
1009 %Numbered single-line equations should be displayed using the
1010 %\env{equation} environment. For example:
1011 %\begin{verbatim}
1012 %\begin{equation}\label{eq:trigrule}
1013 %\cos^2\theta + \sin^2\theta \equiv 1
1014 %\end{equation}
1015 %\end{verbatim}
1016 %The above are provided by the \LaTeX\ kernel but may be adjusted by
1017 %packages such as \sty{amsmath}. The commands and environments below
1018 %are provided by \sty{amsmath}.
1019 %
1020 %Multi-lined numbered equations should be displayed using the
1021 %\env{align} environment. For example:
1022 %\begin{verbatim}
1023 %\begin{align}
1024 %f(x) &= x^2 + x\label{eq:f}\\
1025 %f'(x) &= 2x + 1\label{eq:df}
1026 %\end{align}
1027 %\end{verbatim}
1028 %Unnumbered multi-lined equations should be displayed using the
1029 %\env{align*} environment. For example:
1030 %\begin{verbatim}
1031 %\begin{align*}
1032 %f(x) &= (x+1)(x-1)\\
1033 %&= x^2 - 1
1034 %\end{align*}
1035 %\end{verbatim}
1036 %If you want to mix numbered with unnumbered lines use the
1037 %\env{align} environment and suppress unwanted line numbers with
1038 %\cs{nonumber}. For example:
1039 %\begin{verbatim}
1040 %\begin{align}
1041 %y &= x^2 + 3x - 2x + 1\nonumber\\
1042 %&= x^2 + x + 1\label{eq:y}
1043 %\end{align}
1044 %\end{verbatim}
1045 %An equation that is too long to fit on a single line can be
1046 %displayed using the \env{split} environment.
1047 %
1048 %Text can be embedded in an equation using \ics{text}\marg{text} or
1049 %you can use \ics{intertext}\marg{text} to interupt a multi-line
1050 %environment such as \env{align}.
1051 %
1052 %Predefined operator names are listed in \tableref{tab:operatornames}.
1053 %For additional operators, either use
1054 %\begin{definition}[\DescribeMacro{\operatorname}]
1055 %\cs{operatorname}\marg{name}
1056 %\end{definition}
1057 %for example
1058 %\begin{verbatim}
1059 %If $X$ and $Y$ are independent,
1060 %$\operatorname{var}(X+Y) =
1061 %\operatorname{var}(X) + \operatorname{var}(Y)$
1062 %\end{verbatim}
1063 %or declare it with
1064 %\begin{definition}[\DescribeMacro{\DeclareMathOperator}]
1065 %\cs{DeclareMathOperator}\marg{command}\marg{name}
1066 %\end{definition}
1067 %for example
1068 %\begin{verbatim}
1069 %\DeclareMathOperator{\var}{var}
1070 %\end{verbatim}
1071 %and then use this new command:
1072 %\begin{verbatim}
1073 %If $X$ and $Y$ are independent,
1074 %$\var(X+Y) = \var(X)+\var(Y)$
1075 %\end{verbatim}
1076 %
1077 %If you want limits that go above and
1078 %below the operator (like \ics{sum}) use the starred versions
1079 %(\ics{operatorname*} or \ics{DeclareMathOperator*}).
1080 %
1081 %\begin{table}[htbp]
1082 %\caption{Predefined Operator Names (taken from
1083 % \sty{amsmath} documentation)}
1084 %\label{tab:operatornames}%
1085 %\vskip\baselineskip
1086 %\centering
1087 %\begin{tabular}{rlrlrlrl}
1088 %\cs{arccos} & $\arccos$ & \cs{deg} & $\deg$ & \cs{lg} & $\lg$ & \cs{projlim} & $\projlim$ \\
1089 %\cs{arcsin} & $\arcsin$ & \cs{det} & $\det$ & \cs{lim} & $\lim$ & \cs{sec} & $\sec$ \\
1090 %\cs{arctan} & $\arctan$ & \cs{dim} & $\dim$ & \cs{liminf} & $\liminf$ & \cs{sin} & $\sin$ \\
1091 %\cs{arg} & $\arg$ & \cs{exp} & $\exp$ & \cs{limsup} & $\limsup$ & \cs{sinh} & $\sinh$ \\
1092 %\cs{cos} & $\cos$ & \cs{gcd} & $\gcd$ & \cs{ln} & $\ln$ & \cs{sup} & $\sup$ \\
1093 %\cs{cosh} & $\cosh$ & \cs{hom} & $\hom$ & \cs{log} & $\log$ & \cs{tan} & $\tan$ \\
1094 %\cs{cot} & $\cot$ & \cs{inf} & $\inf$ & \cs{max} & $\max$ & \cs{tanh} & $\tanh$ \\
1095 %\cs{coth} & $\coth$ & \cs{injlim} & $\injlim$ & \cs{min} & $\min$ \\
1096 %\cs{csc} & $\csc$ & \cs{ker} & $\ker$ & \cs{Pr} & $\Pr$
1097 %\end{tabular}\par
1098 %\begin{tabular}{rlrl}
1099 %\cs{varlimsup} & $\varlimsup$
1100 %& \cs{varinjlim} & $\varinjlim$\\
1101 %\cs{varliminf} & $\varliminf$
1102 %& \cs{varprojlim} & $\varprojlim$
1103 %\end{tabular}
1104 %
1105 %\end{table}
1106 %
1107 %\section{Color vs Grayscale}
1108 %\label{sec:color}
1109 %
1110 %If the proceedings are to be incorporated into a black and white
1111 %printed book, it can be helpful if authors supply grayscale versions
1112 %of their image files. This section can be ignored if your article
1113 %will only be available online.
1114 %
1115 %With external PDF, PNG or JPG graphic files, the grayscale version
1116 %should be named with \texttt{-gray} added to the basename (before
1117 %the image file extension).
1118 %
1119 %For example, if the file is called \texttt{myimage.png},
1120 %then the gray version should be \texttt{myimage-gray.png} or
1121 %\texttt{myimage-gray.pdf} or \texttt{myimage-gray.jpg}. You don't
1122 %need to modify your code. The \clsfmt{jmlr} class checks for
1123 %the existence of the grayscale version if it is print mode
1124 %(provided you have used \ics{includegraphics} and haven't
1125 %specified the file extension). This check is performed by code
1126 %provided by the \clsfmt{jmlr} class not the \styfmt{jmlrutils} package.
1127 %
1128 %\begin{definition}[\DescribeMacro{\ifprint}]
1129 %\cs{ifprint}\marg{true part}\marg{false part}
1130 %\end{definition}
1131 %You can use \cs{ifprint} to determine which mode you are in.
1132 %For example:
1133 %\begin{verbatim}
1134 %in \figureref{fig:nodes}, the
1135 %\ifprint{dark gray}{purple}
1136 %ellipse represents an input and the
1137 %\ifprint{light gray}{yellow} ellipse
1138 %represents an output.
1139 %\end{verbatim}
1140 %Another example:
1141 %\begin{verbatim}
1142 %{\ifprint{\bfseries}{\color{red}}important text!}
1143 %\end{verbatim}
1144 %
1145 %You can use the class option \clsopt{gray} to see how the
1146 %document will appear in gray scale mode.
1147 %
1148 %The \sty{xcolor} class is loaded with the \pkgoptfmt{x11names}
1149 %option, so you can use any of the x11 predefined colors (listed
1150 %in the \ctandoc{xcolor}).
1151 %
1152 %\section{Where To Go For Help}
1153 %
1154 %If you have a general \LaTeX\ query, the first place to go to is the
1155 %\urlfootref{https://texfaq.org/}{\TeX\ FAQ}.
1156 %
1157 %If you are unfamiliar or just getting started with \LaTeX, there's
1158 %a list of on-line introductions to \LaTeX\ at
1159 %\url{https://texfaq.org/FAQ-man-latex}
1160 %or have a look at
1161 %\href{http://www.dickimaw-books.com/latex/novices}{\LaTeX\ for Complete Novices}.
1162 %
1163 %There are also forums, mailing lists and newsgroups. For example,
1164 %\TeX\ on StackExchange (\url{https://tex.stackexchange.com/}),
1165 %the \LaTeX\ Community (\url{https://latex.org/forum/}),
1166 %the \texttt{texhax} mailing list
1167 %(\url{http://tug.org/mailman/listinfo/texhax}) and
1168 %\texttt{comp.text.tex} (archives available at
1169 %\url{http://groups.google.com/group/comp.text.tex/}).
1170 %
1171 %Documentation for packages or classes can be found using the
1172 %\texttt{texdoc} application. For example:
1173 %\begin{verbatim}
1174 %texdoc natbib
1175 %\end{verbatim}
1176 %Alternatively, you can go to
1177 %\texttt{http://www.ctan.org/pkg/}\meta{name} where
1178 %\meta{name} is the name of the package. For example:
1179 %\url{http://www.ctan.org/pkg/natbib}
1180 %
1181 %For a general guide to preparing papers (regardless of whether you
1182 %are using \LaTeX\ or a word processor), see Kate L.~Turabian, \qt{A
1183 %manual for writers of term papers, theses, and dissertations}, The
1184 %University of Chicago Press, 1996.
1185 %
1186 %\chapter{Guidelines for Production Editors}
1187 %\label{sec:jmlrbook}
1188 %
1189 %The \clsfmt{jmlrbook} class is now obsolete as it has stopped
1190 %working following changes to the \LaTeX\ kernel in 2020. The class
1191 %is described here for archival purposes.
1192 %
1193 %To prepare articles for PMLR, you will need to manually set the
1194 %first page number using:
1195 %\begin{definition}[\DescribeMacro\firstpageno]
1196 %\cs{firstpageno}\marg{n}
1197 %\end{definition}
1198 %
1199 %Please follow the
1200 %\href{https://proceedings.mlr.press/spec.html}{PMLR specifications}.
1201 %
1202 %
1203 %\section{\clsfmt{jmlrbook} Class Options}
1204 %\begin{description}
1205 %\item[\clsopt{nowcp}]The imported pre-published articles were
1206 %published in the Journal of Machine Learning Research (default).
1207 %\item[\clsopt{pmlr}] The imported pre-published articles were
1208 %published in the Proceedings of Machine Learning Research (PMLR).
1209 %\item[\clsopt{wcp}] The imported pre-published articles were
1210 %published in the JMLR Workshop and Conference Proceedings (JMLR
1211 %W\&CP).
1212 %
1213 %If the book has a mixture of JMLR, JMLR W\&CP or PMLR articles, you
1214 %can switch between them using
1215 %\begin{definition}[\DescribeMacro{\jmlrnowcp}]
1216 %\cs{jmlrnowcp}
1217 %\end{definition}
1218 %(for JMLR) or
1219 %\begin{definition}[\DescribeMacro{\jmlrwcp}]
1220 %\cs{jmlrwcp}
1221 %\end{definition}
1222 %(for JMLR W\&CP) or
1223 %\begin{definition}[\DescribeMacro{\jmlrpmlr}]
1224 %\cs{jmlrpmlr}
1225 %\end{definition}
1226 %(for PMLR).
1227 %Alternatively, you can set the name of the journal or conference
1228 %proceedings using:
1229 %\begin{definition}[\DescribeMacro{\jmlrproceedings}]
1230 %\cs{jmlrproceedings}\marg{short title}\marg{long title}
1231 %\end{definition}
1232 %
1233 %\item[\clsopt{color}] Color version (see \sectionref{sec:color}).
1234 %Use this option for the on-line version with hyperlinks enabled
1235 %(default).
1236 %
1237 %\item[\clsopt{gray}] Grayscale version (see \sectionref{sec:color}).
1238 %Use this option for the print version without hyperlinks.
1239 %
1240 %\item[{\clsopt[top]{tablecaption}}] in a \env{table} environment,
1241 %\ics{floatconts} puts the caption at the top.
1242 %
1243 %\item[{\clsopt[bottom]{tablecaption}}] in a \env{table} environment,
1244 %\ics{floatconts} puts the caption at the bottom.
1245 %
1246 %\item[\clsopt{letterpaper}] Set the paper size to letter (default).
1247 %
1248 %\item[\clsopt{7x10}] Set the paper size to $7\times10$ inches.
1249 %
1250 %\item[\clsopt{10pt}] Use 10pt as the normal text size.
1251 %\item[\clsopt{11pt}] Use 11pt as the normal text size (default).
1252 %\item[\clsopt{12pt}] Use 12pt as the normal text size.
1253 %
1254 %\end{description}
1255 %
1256 %\section{The Preamble}
1257 %
1258 %Any packages that the imported articles load (which aren't
1259 %automatically loaded by \clsfmt{jmlr}) must be loaded in the book's
1260 %preamble. For example, if one or more of the articles load the
1261 %\sty{siunitx} package, this package must be loaded in the book.
1262 %
1263 %Commands that are defined in the imported articles will be local
1264 %to that article unless they have been globally defined using
1265 %\ics{gdef} or \ics{global}. Since most authors use \ics{newcommand}
1266 %and \ics{newenvironment} (or \ics{renewcommand} and
1267 %\ics{renewenvironment}) this shouldn't cause a conflict if more
1268 %that one article has defined the same command or environment.
1269 %For example, in the sample files supplied, both
1270 %\texttt{paper1/paper1.tex} and \texttt{paper2/paper2.tex} have
1271 %defined the command \cs{samplecommand} using \cs{newcommand}. As
1272 %long as this command isn't also defined in the book, there won't
1273 %be a conflict.
1274 %
1275 %\begin{definition}[\DescribeMacro{\title}]
1276 %\cs{title}\oarg{PDF title}\marg{book title}
1277 %\end{definition}
1278 %In the book preamble, \cs{title} sets the book title and the optional
1279 %argument is used for the PDF title, which will be displayed
1280 %when the reader views the PDF file's properties in their PDF viewer.
1281 %(Note that in the imported articles, \cs{title} sets the article's
1282 %title and the optional argument sets the short title for the
1283 %page header and table of contents.)
1284 %
1285 %\begin{definition}[\DescribeMacro{\author}]
1286 %\cs{author}\oarg{PDF author(s)}\marg{book author(s)}
1287 %\end{definition}
1288 %In the book preamble, \cs{author} sets the book's author (or editor)
1289 %and the optional argument is used for the PDF author, which will be
1290 %displayed when the reader views the PDF file's properties in their
1291 %PDF viewer. (Note that in the imported articles, \cs{author} sets
1292 %the article's author and the optional argument sets the short author
1293 %list for the page header.)
1294 %
1295 %\begin{definition}[\DescribeMacro{\volume}]
1296 %\cs{volume}\marg{number}
1297 %\end{definition}
1298 %This command sets the book's volume number. Omit if the book has no
1299 %volume number.
1300 %
1301 %\begin{definition}[\DescribeMacro{\subtitle}]
1302 %\cs{subtitle}\marg{sub-title}
1303 %\end{definition}
1304 %This command sets the book's subtitle. Omit if the book has no
1305 %sub-title.
1306 %
1307 %\begin{definition}[\DescribeMacro{\logo}]
1308 %\cs{logo}\oarg{url}\marg{image command}
1309 %\end{definition}
1310 %This sets the book's title image. Use \ics{includegraphics} and
1311 %omit the file extension. If you provide a grayscale version as
1312 %well as a color version, the grayscale version will be used for
1313 %the print version of the book. (See \sectionref{sec:color}
1314 %for further details.) The optional argument, if present, was
1315 %formerly used by \app{makejmlrbookgui} to make the logo a link to
1316 %\meta{url} on the index HTML page. (The HTML pages are no longer
1317 %generated by the application as PMLR now generate the HTML from
1318 %the .bib file for the proceedings.)
1319 %
1320 %\begin{definition}[\DescribeMacro{\team}]
1321 %\cs{team}\marg{team title}
1322 %\end{definition}
1323 %This can be used to set the name of the editorial team. This
1324 %command may be omitted if not required.
1325 %
1326 %\begin{definition}[\DescribeMacro{\productioneditor}]
1327 %\cs{productioneditor}\marg{name}
1328 %\end{definition}
1329 %This command may be used to name the production editor. The command
1330 %may be omitted if not required.
1331 %
1332 %\begin{definition}[\DescribeMacro{\jmlrlocation}]
1333 %\cs{jmlrlocation}\marg{location}
1334 %\end{definition}
1335 %This specifies the workshop location. By default this doesn't appear
1336 %on the title page. See \sectionref{sec:modifytitle} for details on
1337 %how to modify the layout of the title page.
1338 %
1339 %\section{Main Book Commands}
1340 %
1341 %All commands that are provided by the \clsfmt{jmlr} class are
1342 %also available with the \clsfmt{jmlrbook} class, but some commands
1343 %might behave differently depending on whether they are in the
1344 %main part of the book or within the imported articles.
1345 %
1346 %In the main part of the book you can use the following commands:
1347 %\begin{definition}[\DescribeMacro{\maketitle}]
1348 %\cs{maketitle}
1349 %\end{definition}
1350 %This displays the book's title page. Note that \cs{maketitle} has
1351 %a different effect when used in imported articles.
1352 %
1353 %\begin{definition}[\DescribeMacro{\frontmatter}]
1354 %\cs{frontmatter}
1355 %\end{definition}
1356 %Use this command at the start of the front matter (e.g.\ before the
1357 %foreword or preface). This will make chapters unnumbered even if you
1358 %use \cs{chapter} instead of \cs{chapter*}. It also sets the page
1359 %style and sets the page numbering to lower case Roman numerals.
1360 %
1361 %\begin{definition}[\DescribeEnv{authorsignoff}]
1362 %\cs{begin}\{authorsignoff\}\\
1363 %\meta{author list}\\
1364 %\cs{end}\{authorsignoff\}
1365 %\end{definition}
1366 %This environment may be used by the author signing off at the end of a chapter such as the
1367 %foreword. Within the environment use:
1368 %\begin{definition}[\DescribeMacro{\Author}]
1369 %\cs{Author}\marg{details}
1370 %\end{definition}
1371 %for the author's details. More than one \cs{Author} should be used
1372 %if there is more than one author. Example:
1373 %\begin{verbatim}
1374 %\begin{authorsignoff}
1375 %\Author{Nicola Talbot\\
1376 %University of East Anglia}
1377 %\Author{Anne Author\\
1378 %University of No Where}
1379 %\end{authorsignoff}
1380 %\end{verbatim}
1381 %
1382 %\begin{definition}[\DescribeEnv{preface}]
1383 %\cs{begin}\{preface\}\oarg{filename}
1384 %\end{definition}
1385 %This environment may be used to typeset the preface. This starts a
1386 %new chapter using
1387 %\begin{verbatim}
1388 %\chapter{\prefacename}
1389 %\end{verbatim}
1390 %\DescribeMacro{\prefacename}where \cs{prefacename} defaults to
1391 %``Preface''. This environment should typically go in the front
1392 %matter and is provided to allow \app{makejmlrbookgui} create a
1393 %standalone document for the preface. The optional argument is the
1394 %filename (without any extension or path) that will be used by
1395 %\app{makejmlrbookgui}. This defaults to \texttt{preface} but, to
1396 %conform with PMLR guidelines, should be changed to the surname of
1397 %the first author (editor) followed by the final two digits of the
1398 %year. See the PMLR website for further details of the guidelines.
1399 %
1400 %\begin{definition}[\DescribeEnv{signoff}]
1401 %\cs{begin}\{signoff\}\oarg{team name}\marg{date}\\
1402 %\meta{editor list}\\
1403 %\cs{end}\{signoff\}
1404 %\end{definition}
1405 %This environment may be used by the editorial team when signing off
1406 %a chapter such as the preface. If the optional argument is omitted,
1407 %\qt{The Editorial Team} is used. If you are using the \env{preface}
1408 %environment described above, the \env{signoff} environment must go
1409 %inside the \env{preface} environment.
1410 %
1411 %Within the \env{signoff} environment use:
1412 %\begin{definition}[\DescribeMacro{\Editor}]
1413 %\cs{Editor}\marg{details}
1414 %\end{definition}
1415 %for each editor. Example:
1416 %\begin{verbatim}
1417 %\begin{signoff}{March 2010}
1418 %% First editor:
1419 %\Editor{Nicola Talbot\\
1420 %University of East Anglia\\
1421 %\mailto{[email protected]}}
1422 %% Second editor:
1423 %\Editor{Anne Editor\\
1424 %University of Nowhere\\
1425 %\mailto{[email protected]}}
1426 %\end{signoff}
1427 %\end{verbatim}
1428 %
1429 %\begin{definition}[\DescribeMacro{\tableofcontents}]
1430 %\cs{tableofcontents}
1431 %\end{definition}
1432 %This command displays the book's table of contents. Note that it
1433 %has a different effect if used in an imported article.
1434 %
1435 %\begin{definition}[\DescribeMacro{\mainmatter}]
1436 %\cs{mainmatter}
1437 %\end{definition}
1438 %Use this command to switch to the book's main matter. This will
1439 %switch the chapter numbering back on, reset the page numbering to
1440 %Arabic and set up the main page style.
1441 %
1442 %\begin{definition}[\DescribeMacro{\part}]
1443 %\cs{part}\oarg{short title}\marg{title}
1444 %\end{definition}
1445 %If used in the main part of the book, this command will start a
1446 %new part and issue a clear double page. Note that this command
1447 %has a different effect if used in an imported article (or inside the
1448 %\env{jmlrpapers} environment).
1449 %
1450 %\begin{definition}[\DescribeMacro{\addtocpart}]
1451 %\cs{addtocpart}\marg{title}
1452 %\end{definition}
1453 %This adds \meta{title} to the table of contents, issues a clear
1454 %double page, but doesn't display any text or affect the part
1455 %numbering.
1456 %
1457 %\begin{definition}[\DescribeMacro{\chapter}]
1458 %\cs{chapter}\oarg{short title}\marg{title}
1459 %\end{definition}
1460 %This command may be used in the main body of the book but will
1461 %cause an error if used within an imported article (or inside the
1462 %\env{jmlrpapers} environment).
1463 %
1464 %\begin{definition}[\DescribeMacro{\section}]
1465 %\cs{section}\oarg{short title}\marg{title}
1466 %\end{definition}
1467 %\begin{definition}[\DescribeMacro{\subsection}]
1468 %\cs{subsection}\oarg{short title}\marg{title}
1469 %\end{definition}
1470 %\begin{definition}[\DescribeMacro{\subsubsection}]
1471 %\cs{subsubsection}\oarg{short title}\marg{title}
1472 %\end{definition}
1473 %\begin{definition}[\DescribeMacro{\paragraph}]
1474 %\cs{paragraph}\oarg{short title}\marg{title}
1475 %\end{definition}
1476 %\begin{definition}[\DescribeMacro{\subparagraph}]
1477 %\cs{subparagraph}\oarg{short title}\marg{title}
1478 %\end{definition}
1479 %These commands may be used in the main body of the book or within
1480 %imported articles. In the main body of the book (outside of the
1481 %\env{jmlrpapers} environment) they need to be
1482 %within a chapter and will be numbered according to the chapter.
1483 %
1484 %\begin{definition}[\DescribeMacro{\appendix}]
1485 %\cs{appendix}
1486 %\end{definition}
1487 %If used in the main body of the book (\emph{outside} of the
1488 %\env{jmlrpapers} environment) this will switch to the book
1489 %appendices. Subsequent \cs{chapter} commands will produce the
1490 %appendices. (Any imported articles in the appendix will be
1491 %identified by \app{makejmlrbookgui} as supplemental material.) If
1492 %used within an imported article (or within the \env{jmlrpapers}
1493 %environment) \cs{appendix} will switch to the
1494 %article appendices and won't affect the main part of the book.
1495 %
1496 %\begin{definition}[\DescribeEnv{jmlrpapers}]
1497 %\cs{begin}\{jmlrpapers\}\\
1498 %\meta{imported papers}\\
1499 %\cs{end}\{jmlrpapers\}
1500 %\end{definition}
1501 %This environment must be used when importing articles and may be
1502 %used as often as required. Take care not to include book sectioning
1503 %commands, such as \ics{chapter}, in this environment. Within the
1504 %\envfmt{jmlrpapers} environment, use the following commands to
1505 %import articles:
1506 %\begin{definition}[\DescribeMacro{\importpubpaper}]
1507 %\cs{importpubpaper}\oarg{label}\marg{directory}\marg{file}\marg{pages}
1508 %\end{definition}
1509 %This imports an article that has already been published elsewhere.
1510 %The \meta{pages} argument should be the page range from the
1511 %\emph{previously published} version of this article. This may not
1512 %necessarily be the same as the page range of the article in the
1513 %book. The directory the imported file is contained in is given by
1514 %\meta{directory}. If the file is in the same directory as the book,
1515 %use a dot. The file name is given by \meta{file}. The article is
1516 %also given a label, specified by the optional argument. This is
1517 %\meta{directory}/\meta{file} by default. The label is used as a
1518 %prefix to labels in the imported articles which ensures that
1519 %cross-references are unique. You can also use this label to
1520 %reference the article elsewhere in the book (see
1521 %\sectionref{sec:bkcrossref}).
1522 %
1523 %\begin{definition}[\DescribeMacro{\importpaper}]
1524 %\cs{importpaper}\oarg{label}\marg{directory}\marg{file}
1525 %\end{definition}
1526 %Imports an article that is being published in the book. The
1527 %arguments are the same as above except that there is no page
1528 %range (the page range is computed automatically).
1529 %
1530 %\begin{definition}[\DescribeMacro{\importarticle}]
1531 %\cs{importarticle}\oarg{label}\marg{directory}\marg{file}
1532 %\end{definition}
1533 %This imports an article that hasn't been published elsewhere. There
1534 %is no page range, but the other arguments are the same as
1535 %those describe above for \cs{importpubpaper}.
1536 %
1537 %Example: to import a previously published paper
1538 %\texttt{paper1/paper1.tex} and an unpublished paper
1539 %\texttt{paper2/paper2.tex}:
1540 %\begin{verbatim}
1541 %\begin{jmlrpapers}
1542 %\importpubpaper{paper1}{paper1}{23--45}
1543 %\importarticle{paper2}{paper2}
1544 %\end{jmlrpapers}
1545 %\end{verbatim}
1546 %
1547 %\subsection{Two Column Articles in a One Column Book}
1548 %
1549 %The \clsfmt{jmlrbook} class column style will override the column style
1550 %of the imported articles. You can use the \clsopt{twocolumn} class
1551 %option to \clsfmt{jmlrbook}, but this will make the whole book with
1552 %two columns. If you only want the imported articles to be in two
1553 %columns, then put \ics{twocolumn} in the \env{jmlrpapers}
1554 %environment to switch on two column formatting. The effect will be
1555 %localised to the end of the environment.
1556 %
1557 %\subsection{Cross-Referencing}
1558 %\label{sec:bkcrossref}
1559 %
1560 %You can cross-reference other parts of the book using the
1561 %standard \cs{label}/\cs{ref} mechanism, but if you want to
1562 %reference something within an imported article, you must prefix
1563 %the label with the label given when importing the article (that
1564 %is, the optional argument to \ics{importpubpaper},
1565 %\ics{importpaper} or \cs{importarticle}). For example, if you
1566 %want to reference a section labelled \texttt{sec:results} in the
1567 %imported paper \texttt{paper1/paper1.tex}, you would need to do:
1568 %\begin{verbatim}
1569 %see Section~\ref{paper1/paper1sec:results}
1570 %\end{verbatim}
1571 %or
1572 %\begin{verbatim}
1573 %see \sectionref{paper1/paper1sec:results}
1574 %\end{verbatim}
1575 %
1576 %In addition to the commands described in \sectionref{sec:crossref},
1577 %the \clsfmt{jmlrbook} class also provides the following
1578 %cross-referencing commands:
1579 %
1580 %\begin{definition}[\DescribeMacro{\chapterref}]
1581 %\cs{chapterref}\marg{label list}
1582 %\end{definition}
1583 %Reference a chapter or chapters. The argument is a comma-separated
1584 %list of labels.
1585 %
1586 %\begin{definition}[\DescribeMacro{\articlepageref}]
1587 %\cs{articlepageref}\marg{label}
1588 %\end{definition}
1589 %This displays the starting page number of the article whose label
1590 %is given by \meta{label}. Note that this must a single label, not
1591 %a list. For example:
1592 %\begin{verbatim}
1593 %An interesting article starts on page~\articlepageref{paper1/paper1}
1594 %\end{verbatim}
1595 %
1596 %\begin{definition}[\DescribeMacro{\articlepagesref}]
1597 %\cs{articlepagesref}\marg{label}
1598 %\end{definition}
1599 %This displays the page range of the article whose label is
1600 %given by \meta{label}. Again, this must be a single label, not a
1601 %list. This page range is unrelated to the \meta{pages} argument of
1602 %\ics{importpubarticle}.
1603 %
1604 %\begin{definition}[\DescribeMacro{\articletitleref}]
1605 %\cs{articletitleref}\marg{label}
1606 %\end{definition}
1607 %This displays the short title for the article whose label is
1608 %given by \meta{label}. Again, this must be a single label, not a
1609 %list.
1610 %
1611 %\begin{definition}[\DescribeMacro{\articleauthorref}]
1612 %\cs{articleauthorref}\marg{label}
1613 %\end{definition}
1614 %This displays the author list for the article whose label is
1615 %given by \meta{label}. Again, this must be a single label, not a
1616 %list.
1617 %
1618 %\section{Altering the Layout of the Main Title Page}
1619 %\label{sec:modifytitle}
1620 %
1621 %\begin{definition}[\DescribeMacro{\titlebody}]
1622 %\cs{titlebody}
1623 %\end{definition}
1624 %The main body of the book's title page is given by the command
1625 %\cs{titlebody}. Within the definition of this command, you can
1626 %use:
1627 %\begin{definition}[\DescribeMacro{\SetTitleElement}]
1628 %\cs{SetTitleElement}\marg{element}\marg{pre}\marg{post}
1629 %\end{definition}
1630 %where \meta{element} can be: \texttt{title}, \texttt{volume},
1631 %\texttt{issue}\footnote{The default title page layout doesn't use
1632 %\texttt{issue}, but if required it can be set with \ics{issue}\marg{number}},
1633 %\texttt{subtitle}, \texttt{logo}, \texttt{team}, \texttt{author},
1634 %\texttt{date}, \texttt{productioneditor}. The \meta{pre} and
1635 %\meta{post} arguments specify what to do before and after the
1636 %element. Note that \cs{SetTitleElement} does nothing if that
1637 %element hasn't been set. For example, if \cs{volume} has been
1638 %omitted or \verb|\volume{}| is used, then
1639 %\begin{verbatim}
1640 %\SetTitleElement{volume}{\mainvolumefont}{\postmainvolume}
1641 %\end{verbatim}
1642 %will do nothing (so you don't end up with \textbf{Volume :}).
1643 %
1644 %\begin{definition}[\DescribeMacro{\IfTitleElement}]
1645 %\cs{IfTitleElement}\marg{element}\marg{true part}\marg{false part}
1646 %\end{definition}
1647 %This does \meta{true part} if \meta{element} has been set
1648 %otherwise it does \meta{false part}. For example,
1649 %\cs{postmainvolume} is defined as:
1650 %\begin{verbatim}
1651 %\newcommand{\postmainvolume}{%
1652 % \IfTitleElement{subtitle}{}{:}\par\relax
1653 %}
1654 %\end{verbatim}
1655 %This means that it will only print a colon after the volume
1656 %number if the subtitle has been set.
1657 %
1658 %The default definition of \cs{titlebody} is:
1659 %\begin{verbatim}
1660 %\newcommand{\titlebody}{%
1661 % \SetTitleElement{title}{\maintitlefont}{\postmaintitle}%
1662 % \SetTitleElement{volume}{\mainvolumefont}{\postmainvolume}%
1663 % \SetTitleElement{subtitle}{\mainsubtitlefont}{\postmainsubtitle}%
1664 % \SetTitleElement{logo}{\mainlogofont}{\postmainlogo}%
1665 % \SetTitleElement{team}{\mainteamfont}{\postmainteam}%
1666 % \SetTitleElement{author}{\mainauthorfont}{\postmainauthor}%
1667 % \SetTitleElement{productioneditor}{\mainproductioneditorfont}%
1668 % {\postmainproductioneditor}%
1669 %}
1670 %\end{verbatim}
1671 %
1672 %\section{Potential Pitfalls}
1673 %
1674 %The \cls{combine} class and \sty{hyperref} package are
1675 %individually both easily broken by packages that change certain
1676 %internals and they don't ordinarily work together. The
1677 %\clsfmt{jmlrbook} class applies patches to the internal referencing
1678 %mechanism to make them work together, but it's a fairly fragile
1679 %alliance. Some packages are known to break it, for example
1680 %\sty{subfig}, \sty{pdfpages} and \sty{geometry}. This is why the
1681 %\clsfmt{jmlr} class checks for known problem packages and generates an
1682 %error message to dissuade authors from using them. It's likely that
1683 %there are other packages that may cause a problem and, as they are
1684 %found, they will be added to the check list. Also, it's possible for
1685 %an author to disable the package checking mechanism if they are
1686 %determined to use a particular package.
1687 %
1688 %In the event that an article has loaded a problem package, the
1689 %editors will have to decide whether to ask the author to change
1690 %the article so that it doesn't cause a problem or to make the changes
1691 %themselves or to find a way of fudging things to get it to work. It
1692 %depends on the level of \LaTeX\ expertise amongst the editors and
1693 %the time available.
1694 %
1695 %Another problem that can arise is when different articles use
1696 %packages that conflict. For example, one article uses package
1697 %\styfmt{foo} and another uses package \styfmt{bar}. Each article compiles
1698 %okay as a stand-alone article, but when combined \styfmt{foo} and
1699 %\styfmt{bar} conflict. Another problem may occur when articles load the
1700 %same package but with conflicting package options. To reduce the
1701 %chance of this occurring, the \clsfmt{jmlr} class loads some commonly
1702 %used packages. For example, it loads the \sty{algorithm2e}
1703 %package with the \pkgoptfmt{algo2e} and \pkgoptfmt{ruled} options and
1704 %provides the \env{algorithm} environment in addition to
1705 %\sty{algorithm2e}'s \env{algorithm2e} environment. Different
1706 %versions of the same package can also be a problem. To help
1707 %counteract the problem caused by different papers using different
1708 %versions of the \sty{algorithm2e} package, \sty{jmlrbook} defines
1709 %most of the old style commands if they don't exist.
1710 %
1711 %Articles that use different input encodings can also cause a
1712 %problem. For example, if one article uses \texttt{utf8} and another
1713 %uses \texttt{latin1}. If the authors have directly entered a
1714 %diacritic or ligature, such as \'e or \ae, instead of using a
1715 %\LaTeX\ command, such as \cs{'e} or \cs{ae}, then this will cause an
1716 %error on compiling the book.\footnote{and may also cause a problem
1717 %for the editor's text editor.} The choice then is to either change
1718 %all non-keyboard characters with the appropriate \LaTeX\ commands or
1719 %to use the \cs{inputencoding} command, supplied by the
1720 %\sty{inputenc} package, to switch the encoding at the start of each
1721 %article. One thing to watch out for are bib files that contain a
1722 %mixture of encodings caused by copying and pasting from different
1723 %sources. Version~0.4.2b of \app{makejmlrbookgui} provides a function
1724 %to search for characters outside the range 0x20 (space) and 0x7E
1725 %(tilde).
1726 %
1727 %Authors who use \cs{nonumber} within an \env{equation} environment
1728 %can mess up the hyperlinks. Remove \cs{nonumber} and change the
1729 %equation environment to \cs{[} \ldots\ \cs{]} (or just make it a
1730 %numbered equation).
1731 %
1732 %If the article changes the graphics path using \cs{graphicspath},
1733 %\clsfmt{jmlrbook} won't find the graphics if the imported articles
1734 %aren't in the same directory as the book.
1735 %
1736 %\StopEventually{\clearpage\phantomsection
1737 % \PrintChanges
1738 % \PrintIndex
1739 %}
1740 %
1741 %
1742 %
1743 %\chapter{The Code}
1744 %\iffalse
1745 % \begin{macrocode}
1746 %<*jmlrutils.sty>
1747 % \end{macrocode}
1748 %\fi
1749 %\section{jmlrutils.sty Code}
1750 %Non-class dependent code. This package is automatically loaded by
1751 %\cls{jmlr} but may be used with other classes.
1752 % \begin{macrocode}
1753 \ProvidesPackage{jmlrutils}[2022/02/09 v1.30 (NLCT)]
1754 % \end{macrocode}
1755 % Package options:
1756 %\begin{macro}{\ifjmlrutilsmaths}
1757 %Determine if the maths commands should be provided.
1758 % \begin{macrocode}
1759 \newif\ifjmlrutilsmaths
1760 \jmlrutilsmathstrue
1761 % \end{macrocode}
1762 %\end{macro}
1763 % \begin{macrocode}
1764 \DeclareOption{maths}{\jmlrutilsmathstrue}
1765 \DeclareOption{nomaths}{\jmlrutilsmathsfalse}
1766 % \end{macrocode}
1767 % Provide US synonyms
1768 % \begin{macrocode}
1769 \DeclareOption{math}{\jmlrutilsmathstrue}
1770 \DeclareOption{nomath}{\jmlrutilsmathsfalse}
1771 % \end{macrocode}
1772 %
1773 %\begin{macro}{\ifjmlrutilstheorems}
1774 %Determine if the theorem environments should be provided.
1775 % \begin{macrocode}
1776 \newif\ifjmlrutilstheorems
1777 \jmlrutilstheoremstrue
1778 % \end{macrocode}
1779 %\end{macro}
1780 % \begin{macrocode}
1781 \DeclareOption{theorems}{\jmlrutilstheoremstrue}
1782 \DeclareOption{notheorems}{\jmlrutilstheoremsfalse}
1783 % \end{macrocode}
1784 %
1785 %\begin{macro}{\ifjmlrcleveref}
1786 %\changes{1.29}{2022-01-29}{new}
1787 %Determine whether or not to load \sty{cleveref}.
1788 % \begin{macrocode}
1789 \newif\ifjmlrcleveref
1790 \jmlrclevereffalse
1791 % \end{macrocode}
1792 %\end{macro}
1793 % \begin{macrocode}
1794 \DeclareOption{cleveref}{\jmlrclevereftrue}
1795 \DeclareOption{nocleveref}{\jmlrclevereffalse}
1796 % \end{macrocode}
1797 %
1798 %\begin{macro}{\ifjmlrutilssubfloats}
1799 %Determine if the sub-floats should be provided.
1800 % \begin{macrocode}
1801 \newif\ifjmlrutilssubfloats
1802 \jmlrutilssubfloatstrue
1803 % \end{macrocode}
1804 %\end{macro}
1805 % \begin{macrocode}
1806 \DeclareOption{subfloats}{\jmlrutilssubfloatstrue}
1807 \DeclareOption{nosubfloats}{\jmlrutilssubfloatsfalse}
1808 % \end{macrocode}
1809 %
1810 % \begin{macrocode}
1811 \ProcessOptions
1812 % \end{macrocode}
1813 % Requires \sty{etoolbox}:
1814 % \begin{macrocode}
1815 \RequirePackage{etoolbox}
1816 % \end{macrocode}
1817 %If the maths commands are needed, load \sty{amsmath}.
1818 % \begin{macrocode}
1819 \ifjmlrutilsmaths
1820 \RequirePackage{amsmath}
1821 \fi
1822 % \end{macrocode}
1823 %Check if \sty{cleveref} is required. If it is and \sty{hyperref} is
1824 %also required (which it is if \styfmt{jmlrutils} is being loaded by
1825 %\cls{jmlr}) then \sty{hyperref} needs to be loaded before
1826 %\sty{cleveref}.
1827 % \begin{macrocode}
1828 \ifjmlrcleveref
1829 \ifdef\jmlrprehyperref
1830 {
1831 \jmlrprehyperref
1832 \@ifundefined{@pre@hyperref}{}{\@pre@hyperref\undef\@pre@hyperref}
1833 \RequirePackage{hyperref}
1834 \let\jmlrprehyperref\relax
1835 \@ifundefined{@post@hyperref}{}{\@post@hyperref\undef\@post@hyperref}
1836 }
1837 {}
1838 \RequirePackage{aliascnt}
1839 \RequirePackage{cleveref}
1840 \fi
1841 % \end{macrocode}
1842 %
1843 % The conditional \cs{iftablecaptiontop} will already have been
1844 % defined by the \cls{jmlr} class, so only needs to be defined
1845 % if not already done.
1846 %\begin{macro}{\iftablecaptiontop}
1847 % \begin{macrocode}
1848 \@ifundefined{iftablecaptiontop}
1849 {\newif\iftablecaptiontop
1850 \tablecaptiontoptrue}
1851 {}
1852 % \end{macrocode}
1853 %\end{macro}
1854 %
1855 %\subsection{Cross-Referencing}
1856 % Convenient macros for cross-referencing.
1857 % \begin{macrocode}
1858 \newcommand*{\@jmlr@reflistsep}{, }
1859 \newcommand*{\@jmlr@reflistlastsep}{ and }
1860 \newcommand*{\sectionrefname}{Section}
1861 \newcommand*{\sectionsrefname}{Sections}
1862 \newcommand*{\equationrefname}{Equation}
1863 \newcommand*{\equationsrefname}{Equations}
1864 \newcommand*{\tablerefname}{Table}
1865 \newcommand*{\tablesrefname}{Tables}
1866 \newcommand*{\figurerefname}{Figure}
1867 \newcommand*{\figuresrefname}{Figures}
1868 \newcommand*{\algorithmrefname}{Algorithm}
1869 \newcommand*{\algorithmsrefname}{Algorithms}
1870 \newcommand*{\theoremrefname}{Theorem}
1871 \newcommand*{\theoremsrefname}{Theorems}
1872 \newcommand*{\lemmarefname}{Lemma}
1873 \newcommand*{\lemmasrefname}{Lemmas}
1874 \newcommand*{\remarkrefname}{Remark}
1875 \newcommand*{\remarksrefname}{Remarks}
1876 \newcommand*{\corollaryrefname}{Corollary}
1877 \newcommand*{\corollarysrefname}{Corollaries}
1878 \newcommand*{\definitionrefname}{Definition}
1879 \newcommand*{\definitionsrefname}{Definitions}
1880 \newcommand*{\conjecturerefname}{Conjecture}
1881 \newcommand*{\conjecturesrefname}{Conjectures}
1882 \newcommand*{\axiomrefname}{Axiom}
1883 \newcommand*{\axiomsrefname}{Axioms}
1884 \newcommand*{\examplerefname}{Example}
1885 \newcommand*{\examplesrefname}{Examples}
1886 \newcommand*{\appendixrefname}{Appendix}
1887 \newcommand*{\appendixsrefname}{Appendices}
1888 \newcommand*{\partrefname}{Part}
1889 \newcommand*{\partsrefname}{Parts}
1890 % \end{macrocode}
1891 %\begin{macro}{\objectref}
1892 % Cross-reference a particular structural element. The first
1893 % argument is the list of labels, the second argument is a
1894 % control sequence containing the singular tag, the third
1895 % argument a control sequence containing the plural tag,
1896 % the fourth argument is text to go before the reference number,
1897 % e.g.\ an opening bracket, and the fifth argument is text
1898 % to go after the reference number, e.g.\ a closing bracket.
1899 %\changes{1.24}{2017-08-01}{changed \cs{DeclareRobustCommand}
1900 %to \cs{newrobustcmd}}
1901 % \begin{macrocode}
1902 \newrobustcmd*{\objectref}[5]{%
1903 \let\@objectname\@empty
1904 \def\@objectref{}%
1905 \let\@prevsep\@empty
1906 \@for\@thislabel:=#1\do{%
1907 \toks@{\@prevsep}%
1908 \protected@edef\@objectref{\@objectref\the\toks@
1909 #4\ref{\@thislabel}#5}%
1910 \ifx\@objectname\@empty
1911 \let\@objectname#2% singular tag
1912 \else
1913 \let\@objectname#3% plural tag
1914 \let\@prevsep\@jmlr@reflistsep
1915 \fi
1916 }%
1917 \ifx\@objectname#3% plural tag
1918 \let\@prevsep\@jmlr@reflistlastsep
1919 \fi
1920 \@objectname~\@objectref
1921 }
1922 % \end{macrocode}
1923 %\end{macro}
1924 %\begin{macro}{\sectionref}
1925 % \begin{macrocode}
1926 \newcommand*{\sectionref}[1]{%
1927 \objectref{#1}{\sectionrefname}{\sectionsrefname}{}{}}
1928 % \end{macrocode}
1929 %\end{macro}
1930 %\begin{macro}{\equationref}
1931 % \begin{macrocode}
1932 \newcommand*{\equationref}[1]{%
1933 \objectref{#1}{\equationrefname}{\equationsrefname}()}
1934 % \end{macrocode}
1935 %\end{macro}
1936 %\begin{macro}{\tableref}
1937 % \begin{macrocode}
1938 \newcommand*{\tableref}[1]{%
1939 \objectref{#1}{\tablerefname}{\tablesrefname}{}{}}
1940 % \end{macrocode}
1941 %\end{macro}
1942 %\begin{macro}{\figureref}
1943 % \begin{macrocode}
1944 \newcommand*{\figureref}[1]{%
1945 \objectref{#1}{\figurerefname}{\figuresrefname}{}{}}
1946 % \end{macrocode}
1947 %\end{macro}
1948 %\begin{macro}{\algorithmref}
1949 % \begin{macrocode}
1950 \newcommand*{\algorithmref}[1]{%
1951 \objectref{#1}{\algorithmrefname}{\algorithmsrefname}{}{}}
1952 % \end{macrocode}
1953 %\end{macro}
1954 %\begin{macro}{\theoremmref}
1955 % \begin{macrocode}
1956 \newcommand*{\theoremref}[1]{%
1957 \objectref{#1}{\theoremrefname}{\theoremsrefname}{}{}}
1958 % \end{macrocode}
1959 %\end{macro}
1960 %\begin{macro}{\lemmaref}
1961 % \begin{macrocode}
1962 \newcommand*{\lemmaref}[1]{%
1963 \objectref{#1}{\lemmarefname}{\lemmasrefname}{}{}}
1964 % \end{macrocode}
1965 %\end{macro}
1966 %\begin{macro}{\remarkref}
1967 % \begin{macrocode}
1968 \newcommand*{\remarkref}[1]{%
1969 \objectref{#1}{\remarkrefname}{\remarksrefname}{}{}}
1970 % \end{macrocode}
1971 %\end{macro}
1972 %\begin{macro}{\corollaryref}
1973 % \begin{macrocode}
1974 \newcommand*{\corollaryref}[1]{%
1975 \objectref{#1}{\corollaryrefname}{\corollarysrefname}{}{}}
1976 % \end{macrocode}
1977 %\end{macro}
1978 %\begin{macro}{\definitionref}
1979 % \begin{macrocode}
1980 \newcommand*{\definitionref}[1]{%
1981 \objectref{#1}{\definitionrefname}{\definitionsrefname}{}{}}
1982 % \end{macrocode}
1983 %\end{macro}
1984 %\begin{macro}{\conjectureref}
1985 % \begin{macrocode}
1986 \newcommand*{\conjectureref}[1]{%
1987 \objectref{#1}{\conjecturerefname}{\conjecturesrefname}{}{}}
1988 % \end{macrocode}
1989 %\end{macro}
1990 %\begin{macro}{\axiomref}
1991 % \begin{macrocode}
1992 \newcommand*{\axiomref}[1]{%
1993 \objectref{#1}{\axiomrefname}{\axiomsrefname}{}{}}
1994 % \end{macrocode}
1995 %\end{macro}
1996 %\begin{macro}{\exampleref}
1997 % \begin{macrocode}
1998 \newcommand*{\exampleref}[1]{%
1999 \objectref{#1}{\examplerefname}{\examplesrefname}{}{}}
2000 % \end{macrocode}
2001 %\end{macro}
2002 %\begin{macro}{\appendixref}
2003 % \begin{macrocode}
2004 \newcommand*{\appendixref}[1]{%
2005 \objectref{#1}{\appendixrefname}{\appendixsrefname}{}{}}
2006 % \end{macrocode}
2007 %\end{macro}
2008 %\begin{macro}{\partref}
2009 % \begin{macrocode}
2010 \newcommand*{\partref}[1]{%
2011 \objectref{#1}{\partrefname}{\partsrefname}{}{}}
2012 % \end{macrocode}
2013 %\end{macro}
2014 %
2015 %\subsection{Figures, Tables and Algorithms}
2016 %
2017 %\begin{macro}{\floatconts}
2018 % The first argument is the label, the second argument contains the
2019 % caption (using \cs{caption}) and the third argument contains the
2020 % contents of the float
2021 % \begin{macrocode}
2022 \newcommand{\floatconts}[3]{%
2023 \@ifundefined{\@captype conts}{\tableconts{#1}{#2}{#3}}%
2024 {\csname\@captype conts\endcsname{#1}{#2}{#3}}%
2025 }
2026 % \end{macrocode}
2027 %\end{macro}
2028 %\begin{macro}{\tableconts}
2029 %This will already have been defined if the \clsfmt{jmlr} class was
2030 %loaded.
2031 % \begin{macrocode}
2032 \providecommand{\tableconts}[3]{%
2033 #2\label{#1}\vskip\baselineskip
2034 {\centering #3\par}%
2035 }
2036 % \end{macrocode}
2037 %\end{macro}
2038 %\begin{macro}{\figureconts}
2039 % \begin{macrocode}
2040 \newcommand{\figureconts}[3]{%
2041 {\centering #3\par}%
2042 \vskip\baselineskip
2043 #2\label{#1}%
2044 }
2045 % \end{macrocode}
2046 %\end{macro}
2047 %
2048 %The following macro and environment assume that \sty{algorithm2e}
2049 %has been loaded (which is done by the \cls{jmlr} class). If the
2050 %\styfmt{jmlrutils} package is loaded without the \cls{jmlr} class,
2051 %the \sty{algorithm2e} package will have to be explicitly loaded.
2052 %\begin{macro}{\algocfconts}
2053 %\changes{1.09}{2010/12/01}{new}
2054 %\changes{1.29}{2022-01-29}{remove use of algorithm2e internal commands}
2055 %Command used by \cs{floatconts} to display the caption contents.
2056 % \begin{macrocode}
2057 \newcommand{\algocfconts}[3]{%
2058 \jmlralgorule\par\smallskip
2059 #2\label{#1}% caption and label
2060 \jmlralgorule\par\smallskip
2061 #3% algorithm content
2062 \jmlralgorule
2063 }
2064 % \end{macrocode}
2065 %\end{macro}
2066 %
2067 %\begin{macro}{\jmlralgorule}
2068 %\changes{1.29}{2022-01-29}{new}
2069 % \begin{macrocode}
2070 \newcommand{\jmlralgorule}{\kern2pt\hrule height.8pt depth0pt\kern2pt}
2071 % \end{macrocode}
2072 %\end{macro}
2073 %
2074 % The \env{algorithm} environment should float like a figure or table.
2075 % It should use the same counter as the \env{algorithm2e} environment.
2076 %\changes{1.09}{2010/12/01}{caption set up so that it doesn't use a
2077 %box}
2078 %\changes{1.29}{2022-01-29}{replaced \cs{hsize} with \cs{linewidth}}
2079 % \begin{macrocode}
2080 \newenvironment{algorithm}[1][htbp]%
2081 {%
2082 \ifundef{\algocf}%
2083 {`algorithm2e' package is required if you want to
2084 use the algorithm environment}%
2085 {}%
2086 \begin{algocf}[#1]%
2087 \renewcommand\@makecaption[2]{%
2088 \hskip\AlCapHSkip
2089 \parbox[t]{\dimexpr\linewidth-\AlCapHSkip}{\algocf@captiontext{##1}{##2}}%
2090 }%
2091 }%
2092 {%
2093 \end{algocf}%
2094 }
2095 % \end{macrocode}
2096 %
2097 %\begin{macro}{\@jmlr@ifgraphicxloaded}
2098 % \begin{macrocode}
2099 \AtBeginDocument{%
2100 \@ifpackageloaded{graphicx}%
2101 {\let\@jmlr@ifgraphicxloaded\@firstoftwo}%
2102 {\let\@jmlr@ifgraphicxloaded\@secondoftwo}%
2103 }
2104 % \end{macrocode}
2105 %\end{macro}
2106 %
2107 %\begin{macro}{\includeteximage}
2108 % Provide a command like \cs{includegraphics} that includes a
2109 % file containing \LaTeX\ picture code (e.g.\ \sty{pgf}).
2110 % \begin{macrocode}
2111 \newcommand*{\includeteximage}[2][]{%
2112 \@jmlr@ifgraphicxloaded
2113 {%
2114 \def\Gin@req@sizes{%
2115 \Gin@req@height\Gin@nat@height
2116 \Gin@req@width\Gin@nat@width}%
2117 \begingroup
2118 \let\input@path\Ginput@path
2119 \IfFileExists{#2}%
2120 {%
2121 \toks@{\input{#2}}%
2122 \ifstrempty{#1}
2123 {}%
2124 {%
2125 \@tempswatrue
2126 \setkeys{Gin}{#1}%
2127 \Gin@esetsize
2128 }%
2129 \the\toks@
2130 }%
2131 {\@warning{File `#2' not found}}%
2132 \endgroup
2133 }%
2134 {\PackageError{jmlrutils}{`graphicx' package is required
2135 if you want to use \string\includeteximage}{}}%
2136 }
2137 % \end{macrocode}
2138 %\end{macro}
2139 %
2140 %Sub floats.
2141 % \begin{macrocode}
2142 \ifjmlrutilssubfloats
2143 % \end{macrocode}
2144 % The \sty{subfig} package breaks jmlrbook.cls, so define \ics{subfig}
2145 % here. (This is fairly primitive.)
2146 %\begin{macro}{\c@subfigure}
2147 % Define subfigure counter:
2148 % \begin{macrocode}
2149 \newcounter{subfigure}
2150 \@addtoreset{subfigure}{figure}
2151 % \end{macrocode}
2152 %\end{macro}
2153 %\begin{macro}{\thesubfigure}
2154 % \begin{macrocode}
2155 \renewcommand*{\thesubfigure}{\alph{subfigure}}
2156 % \end{macrocode}
2157 %\end{macro}
2158 %\begin{macro}{\p@subfigure}
2159 % \begin{macrocode}
2160 \renewcommand*{\p@subfigure}{\expandafter\@p@subfigure}
2161 \newcommand*{\@p@subfigure}[1]{%
2162 \protect\@subfigurelabel{\thefigure}{\thesubfigure}%
2163 }
2164 % \end{macrocode}
2165 %\end{macro}
2166 % The LaTeX kernel changed the definition of \cs{refstepcounter} to
2167 % allow \cs{p@\ldots} to have an argument. This means we need to
2168 % check the kernel version and pick up that extra argument if
2169 % present.
2170 %\changes{1.27}{2020-03-26}{added check for \LaTeX\ kernel version}
2171 % \begin{macrocode}
2172 \@ifl@t@r\fmtversion{2019/08/22}%
2173 {
2174 % \end{macrocode}
2175 % Newer kernel versions.
2176 %\begin{macro}{\@subfigurelabel}
2177 % Define how label appears.
2178 % \begin{macrocode}
2179 \newcommand*\@subfigurelabel[3]{#1\subfigurelabel{#2}}
2180 % \end{macrocode}
2181 %\end{macro}
2182 %\begin{macro}{\@subfigref}
2183 % \begin{macrocode}
2184 \newcommand*\@subfigref[1]{%
2185 {%
2186 \def\@subfigurelabel##1##2##3{\subfigurelabel{##2}}%
2187 \ref{#1}%
2188 }%
2189 }
2190 % \end{macrocode}
2191 %\end{macro}
2192 % \begin{macrocode}
2193 }%
2194 {
2195 % \end{macrocode}
2196 % Older kernel versions.
2197 %\begin{macro}{\@subfigurelabel}
2198 % Define how label appears.
2199 % \begin{macrocode}
2200 \newcommand*\@subfigurelabel[2]{#1\subfigurelabel{#2}}
2201 % \end{macrocode}
2202 %\end{macro}
2203 %\begin{macro}{\@subfigref}
2204 % \begin{macrocode}
2205 \newcommand*\@subfigref[1]{%
2206 {%
2207 \def\@subfigurelabel##1##2{\subfigurelabel{##2}}%
2208 \ref{#1}%
2209 }%
2210 }
2211 % \end{macrocode}
2212 %\end{macro}
2213 % \begin{macrocode}
2214 }
2215 % \end{macrocode}
2216 %\begin{macro}{\subfigref}
2217 % Reference the sub-figure without including the figure number.
2218 % \begin{macrocode}
2219 \newcommand*{\subfigref}[1]{%
2220 \let\@objectname\@empty
2221 \def\@objectref{}%
2222 \let\@prevsep\@empty
2223 \@for\@thislabel:=#1\do{%
2224 \toks@{\@prevsep}%
2225 \protected@edef\@objectref{\@objectref\the\toks@
2226 \protect\@subfigref{\@thislabel}}%
2227 \ifx\@objectname\@empty
2228 \let\@objectname\@nil
2229 \else
2230 \let\@objectname\relax
2231 \let\@prevsep\@jmlr@reflistsep
2232 \fi
2233 }%
2234 \ifx\@objectname\relax
2235 \let\@prevsep\@jmlr@reflistlastsep
2236 \fi
2237 \@objectref
2238 }
2239 % \end{macrocode}
2240 %\end{macro}
2241 %\begin{macro}{\subfigurelabel}
2242 % \begin{macrocode}
2243 \newcommand*{\subfigurelabel}[1]{(\emph{#1})}
2244 % \end{macrocode}
2245 %\end{macro}
2246 %
2247 %\begin{macro}{\@subfloatcapbox}
2248 % Box to store subfloat caption.
2249 % \begin{macrocode}
2250 \newsavebox\@subfloatcapbox
2251 % \end{macrocode}
2252 %\end{macro}
2253 %\begin{macro}{\@subfloatcontsbox}
2254 % Box to store subfloat contents.
2255 % \begin{macrocode}
2256 \newsavebox\@subfloatcontsbox
2257 % \end{macrocode}
2258 %\end{macro}
2259 %\begin{macro}{\jmlrminsubcaptionwidth}
2260 %Minimum sub-caption width.
2261 %\changes{1.29}{2022-01-29}{new}
2262 % \begin{macrocode}
2263 \newlength\jmlrminsubcaptionwidth
2264 % \end{macrocode}
2265 %\end{macro}
2266 %\begin{macro}{\subfigure}
2267 % \begin{macrocode}
2268 \newcommand*{\subfigure}[1][]{%
2269 \bgroup
2270 \def\@subfigcap{#1}%
2271 \@subfigure
2272 }
2273 % \end{macrocode}
2274 %\changes{1.09}{2010/12/01}{Added check to determine whether the
2275 %subfigure caption is wider than the subfigure}
2276 %\changes{1.29}{2022-01-29}{added \cs{jmlrminsubcaptionwidth} comparison}
2277 % \begin{macrocode}
2278 \newcommand*{\@subfigure}[2][b]{%
2279 \advance\c@figure by 1\relax
2280 \refstepcounter{subfigure}%
2281 \sbox\@subfloatcapbox{\subfigurelabel{\thesubfigure}%
2282 \ifx\@subfigcap\@empty
2283 \else
2284 \space\@subfigcap
2285 \fi}%
2286 \sbox\@subfloatcontsbox{#2}%
2287 \settowidth{\@tempdima}{\usebox\@subfloatcontsbox}%
2288 \settowidth{\@tempdimb}{\usebox\@subfloatcapbox}%
2289 \ifdim\@tempdimb>\@tempdima
2290 \settowidth\@tempdimb{\subfigurelabel{\thesubfigure}\space}%
2291 \addtolength{\@tempdima}{-\@tempdimb}%
2292 \ifdim\@tempdima>\jmlrminsubcaptionwidth
2293 \sbox\@subfloatcapbox{\subfigurelabel{\thesubfigure}\space
2294 \parbox[t]{\@tempdima}{\@subfigcap}}%
2295 \else
2296 \sbox\@subfloatcapbox{\subfigurelabel{\thesubfigure}\space
2297 \parbox[t]{\jmlrminsubcaptionwidth}{\@subfigcap}}%
2298 \fi
2299 \else
2300 \ifdim\@tempdimb<\jmlrminsubcaptionwidth
2301 \sbox\@subfloatcapbox{\subfigurelabel{\thesubfigure}\space
2302 \parbox[t]{\jmlrminsubcaptionwidth}{\@subfigcap}}%
2303 \fi
2304 \fi
2305 \begin{tabular}[#1]{@{}c@{}}%
2306 \usebox\@subfloatcontsbox\\\usebox\@subfloatcapbox
2307 \end{tabular}%
2308 \egroup
2309 }
2310 % \end{macrocode}
2311 %\end{macro}
2312 %
2313 % Sub-tables:
2314 %\begin{macro}{\c@subtable}
2315 % Define subtable counter:
2316 % \begin{macrocode}
2317 \newcounter{subtable}
2318 \@addtoreset{subtable}{table}
2319 % \end{macrocode}
2320 %\end{macro}
2321 %\begin{macro}{\thesubtable}
2322 % \begin{macrocode}
2323 \renewcommand*{\thesubtable}{\alph{subtable}}
2324 % \end{macrocode}
2325 %\end{macro}
2326 %\begin{macro}{\p@subtable}
2327 % \begin{macrocode}
2328 \renewcommand*{\p@subtable}{\expandafter\@p@subtable}
2329 \newcommand*{\@p@subtable}[1]{%
2330 \protect\@subtablelabel{\thetable}{\thesubtable}%
2331 }
2332 % \end{macrocode}
2333 %\end{macro}
2334 %As with \cs{@subfigure} we again need to check \LaTeX\ kernel version.
2335 %\changes{1.27}{2020-03-26}{added check for \LaTeX\ kernel version}
2336 % \begin{macrocode}
2337 \@ifl@t@r\fmtversion{2019/08/22}%
2338 {
2339 % \end{macrocode}
2340 % Newer kernel versions.
2341 %\begin{macro}{\@subtablelabel}
2342 % Define how label appears.
2343 % \begin{macrocode}
2344 \newcommand*\@subtablelabel[3]{#1\subtablelabel{#2}}
2345 % \end{macrocode}
2346 %\end{macro}
2347 %\begin{macro}{\@subtabref}
2348 % \begin{macrocode}
2349 \newcommand*\@subtabref[1]{%
2350 {%
2351 \def\@subtablelabel##1##2##3{\subtablelabel{##2}}%
2352 \ref{#1}%
2353 }%
2354 }
2355 % \end{macrocode}
2356 %\end{macro}
2357 % \begin{macrocode}
2358 }%
2359 {
2360 % \end{macrocode}
2361 % Older kernel versions.
2362 %\begin{macro}{\@subtablelabel}
2363 % Define how label appears.
2364 % \begin{macrocode}
2365 \newcommand*\@subtablelabel[2]{#1\subtablelabel{#2}}
2366 % \end{macrocode}
2367 %\end{macro}
2368 %\begin{macro}{\@subtabref}
2369 % \begin{macrocode}
2370 \newcommand*\@subtabref[1]{%
2371 {%
2372 \def\@subtablelabel##1##2{\subtablelabel{##2}}%
2373 \ref{#1}%
2374 }%
2375 }
2376 % \end{macrocode}
2377 %\end{macro}
2378 % \begin{macrocode}
2379 }%
2380 % \end{macrocode}
2381 %\begin{macro}{\subtabref}
2382 % Reference the sub-table without including the table number.
2383 % \begin{macrocode}
2384 \newcommand*{\subtabref}[1]{%
2385 \let\@objectname\@empty
2386 \def\@objectref{}%
2387 \let\@prevsep\@empty
2388 \@for\@thislabel:=#1\do{%
2389 \toks@{\@prevsep}%
2390 \protected@edef\@objectref{\@objectref\the\toks@
2391 \protect\@subtabref{\@thislabel}}%
2392 \ifx\@objectname\@empty
2393 \let\@objectname\@nil
2394 \else
2395 \let\@objectname\relax
2396 \let\@prevsep\@jmlr@reflistsep
2397 \fi
2398 }%
2399 \ifx\@objectname\relax
2400 \let\@prevsep\@jmlr@reflistlastsep
2401 \fi
2402 \@objectref
2403 }
2404 % \end{macrocode}
2405 %\end{macro}
2406 %\begin{macro}{\subtablelabel}
2407 % \begin{macrocode}
2408 \newcommand*{\subtablelabel}[1]{(\emph{#1})}
2409 % \end{macrocode}
2410 %\end{macro}
2411 %\begin{macro}{\subtable}
2412 % \begin{macrocode}
2413 \newcommand*{\subtable}[1][]{%
2414 \def\@subtabcap{#1}%
2415 \@subtable
2416 }
2417 % \end{macrocode}
2418 %\changes{1.09}{2010/12/01}{Added check to determine whether the
2419 %subtable caption is wider than the subtable}
2420 %\changes{1.29}{2022-01-29}{added \cs{jmlrminsubcaptionwidth} comparison}
2421 % \begin{macrocode}
2422 \newcommand*{\@subtable}[2][t]{%
2423 \refstepcounter{subtable}%
2424 \sbox\@subfloatcapbox{\subtablelabel{\thesubtable}%
2425 \ifx\@subtabcap\@empty
2426 \else
2427 \space\@subtabcap
2428 \fi}%
2429 \sbox\@subfloatcontsbox{#2}%
2430 \settowidth{\@tempdima}{\usebox\@subfloatcontsbox}%
2431 \settowidth{\@tempdimb}{\usebox\@subfloatcapbox}%
2432 \ifdim\@tempdimb>\@tempdima
2433 \settowidth\@tempdimb{\subtablelabel{\thesubtable}\space}%
2434 \addtolength{\@tempdima}{-\@tempdimb}%
2435 \ifdim\@tempdima>\jmlrminsubcaptionwidth
2436 \sbox\@subfloatcapbox{\subtablelabel{\thesubtable}\space
2437 \parbox[t]{\@tempdima}{\@subtabcap}}%
2438 \else
2439 \sbox\@subfloatcapbox{\subtablelabel{\thesubtable}\space
2440 \parbox[t]{\jmlrminsubcaptionwidth}{\@subtabcap}}%
2441 \fi
2442 \else
2443 \ifdim\@tempdimb<\jmlrminsubcaptionwidth
2444 \sbox\@subfloatcapbox{\subtablelabel{\thesubtable}\space
2445 \parbox[t]{\jmlrminsubcaptionwidth}{\@subtabcap}}%
2446 \fi
2447 \fi
2448 \begin{tabular}[#1]{@{}c@{}}%
2449 \usebox\@subfloatcapbox\\\usebox\@subfloatcontsbox
2450 \end{tabular}
2451 }
2452 % \end{macrocode}
2453 %\end{macro}
2454 %End of sub-floats.
2455 % \begin{macrocode}
2456 \fi
2457 % \end{macrocode}
2458 %
2459 %\subsection{General Markup}
2460 %Provide maths command if required.
2461 % \begin{macrocode}
2462 \ifjmlrutilsmaths
2463 % \end{macrocode}
2464 %\begin{macro}{\set}
2465 % \begin{macrocode}
2466 \newcommand*{\set}[1]{\ensuremath{\mathcal{#1}}}
2467 % \end{macrocode}
2468 %\end{macro}
2469 %
2470 %\begin{macro}{\orgvec}
2471 %\changes{1.21}{2015-02-24}{new}
2472 %Keep a copy of original \cs{vec} in case it's wanted.
2473 % \begin{macrocode}
2474 \let\orgvec\vec
2475 % \end{macrocode}
2476 %\end{macro}
2477 %\begin{macro}{\vec}
2478 % Redefine \cs{vec} to produce a bold symbol. The \sty{amsmath}
2479 %package is required for this.
2480 % \begin{macrocode}
2481 \renewcommand*{\vec}[1]{\boldsymbol{#1}}
2482 % \end{macrocode}
2483 %\end{macro}
2484 %End of maths commands.
2485 % \begin{macrocode}
2486 \fi
2487 % \end{macrocode}
2488 %
2489 %\begin{environment}{enumerate*}
2490 % Define an enumerate style environment where the nested environments
2491 % all use the same counter. It uses the enumi counter.
2492 % \begin{macrocode}
2493 \newenvironment{enumerate*}%
2494 {%
2495 \ifnum\@enumdepth=0\relax
2496 \setcounter{enumi}{0}%
2497 \fi
2498 \ifnum\@enumdepth>\thr@@
2499 \@toodeep
2500 \else
2501 \advance\@enumdepth\@ne
2502 \def\@enumctr{enumi}%
2503 \list
2504 {\labelenumi}%
2505 {\@nmbrlisttrue\def\@listctr{enumi}%
2506 \def\makelabel##1{\hss\llap{##1}}}%
2507 \fi
2508 }%
2509 {\endlist}
2510 % \end{macrocode}
2511 %\end{environment}
2512 %
2513 %\begin{environment}{altdescription}
2514 % Define a description like environment where the indent is
2515 % computed from the widest label. The optional argument is
2516 % the widest label.
2517 % \begin{macrocode}
2518 \newenvironment{altdescription}[1]%
2519 {\list{}%
2520 {%
2521 \settowidth{\labelwidth}{\altdescriptionlabel{#1}}%
2522 \setlength{\labelsep}{15pt}%
2523 \setlength{\leftmargin}{2\labelsep}%
2524 \addtolength{\leftmargin}{\labelwidth}%
2525 \setlength{\rightmargin}{\labelsep}%
2526 \let\makelabel\altdescriptionlabel
2527 }%
2528 }%
2529 {\endlist}
2530
2531 \newcommand*{\altdescriptionlabel}[1]{\normalfont\bfseries #1\hfill}
2532 % \end{macrocode}
2533 %\end{environment}
2534 %
2535 %\begin{macro}{\mailto}
2536 % Syntax: \cs{mailto}\marg{address}
2537 % \begin{macrocode}
2538 \newcommand*{\mailto}[1]{\texttt{#1}}
2539 % \end{macrocode}
2540 %\end{macro}
2541 %
2542 %\subsection{Proofs and Theorems}
2543 % \begin{macrocode}
2544 \ifjmlrutilstheorems
2545 % \end{macrocode}
2546 % This code is taken from jmlr2e.sty
2547 %\begin{macro}{\jmlrBlackBox}
2548 % End of proof marker.
2549 %\changes{1.24}{2017-08-01}{new}
2550 %This command was formerly called \cs{BlackBox} but has been renamed
2551 %in case of a clash with symbol packages.
2552 % \begin{macrocode}
2553 \newcommand{\jmlrBlackBox}{\rule{1.5ex}{1.5ex}}
2554 % \end{macrocode}
2555 %\end{macro}
2556 %\begin{macro}{\BlackBox}
2557 % Backward compatibility in case it was used explicitly.
2558 % \begin{macrocode}
2559 \providecommand{\BlackBox}{\jmlrBlackBox}
2560 % \end{macrocode}
2561 %\end{macro}
2562 %\begin{macro}{\jmlrQED}
2563 %\changes{1.21}{2015-02-24}{new}
2564 %\changes{1.24}{2017-08-01}{changed to use \cs{par}}
2565 % \begin{macrocode}
2566 \newcommand{\jmlrQED}{\hfill\jmlrBlackBox\par\bigskip}
2567 % \end{macrocode}
2568 %\end{macro}
2569 %\begin{macro}{\proofname}
2570 %\changes{1.25}{2020-01-17}{new}
2571 % \begin{macrocode}
2572 \providecommand{\proofname}{Proof}
2573 % \end{macrocode}
2574 %\end{macro}
2575 %\begin{environment}{proof}
2576 % Proof environment
2577 % \begin{macrocode}
2578 \newenvironment{proof}%
2579 {%
2580 \par\noindent{\bfseries\upshape \proofname\ }%
2581 }%
2582 {\jmlrQED}
2583 % \end{macrocode}
2584 %\end{environment}
2585 %
2586 % Since \sty{theorem}, \sty{ntheorem} and \sty{amsthm} all cause
2587 % problems with the \cls{jmlr} and \cls{jmlrbook} classes,
2588 % this package provides a simple alternative.
2589 %
2590 %\begin{macro}{\theorembodyfont}
2591 %\changes{1.18}{2013-10-17}{new}
2592 %\begin{definition}
2593 %\cs{theorembodyfont}\marg{font declarations}
2594 %\end{definition}
2595 % \begin{macrocode}
2596 \newcommand*{\theorembodyfont}[1]{%
2597 \renewcommand*{\@theorembodyfont}{#1}%
2598 }
2599 \newcommand*{\@theorembodyfont}{\normalfont\itshape}%
2600 % \end{macrocode}
2601 %\end{macro}
2602 %\begin{macro}{\theoremheaderfont}
2603 %\changes{1.18}{2013-10-17}{new}
2604 %\begin{definition}
2605 %\cs{theoremheaderfont}\marg{font declarations}
2606 %\end{definition}
2607 % \begin{macrocode}
2608 \newcommand*{\theoremheaderfont}[1]{%
2609 \renewcommand*{\@theoremheaderfont}{#1}%
2610 }
2611 \newcommand*{\@theoremheaderfont}{\normalfont\bfseries }%
2612 % \end{macrocode}
2613 %\end{macro}
2614 %
2615 %\begin{macro}{\theoremsep}
2616 %\changes{1.18}{2013-10-17}{new}
2617 %\begin{definition}
2618 %\cs{theoremsep}\marg{separation code}
2619 %\end{definition}
2620 % \begin{macrocode}
2621 \newcommand*{\theoremsep}[1]{%
2622 \renewcommand*{\@theoremsep}{#1}%
2623 }
2624 \newcommand*{\@theoremsep}{}%
2625 % \end{macrocode}
2626 %\end{macro}
2627 %
2628 %\begin{macro}{\theorempostheader}
2629 %\changes{1.18}{2013-10-17}{new}
2630 %\begin{definition}
2631 %\cs{theorempostheader}\marg{text}
2632 %\end{definition}
2633 % \begin{macrocode}
2634 \newcommand*{\theorempostheader}[1]{%
2635 \renewcommand*{\@theorempostheader}{#1}%
2636 }
2637 \newcommand*{\@theorempostheader}{}%
2638 % \end{macrocode}
2639 %\end{macro}
2640 %
2641 %\begin{macro}{\newtheorem}
2642 %\changes{1.18}{2013-10-17}{new}
2643 % \begin{macrocode}
2644 \let\jmlr@org@newtheorem\newtheorem
2645 \renewcommand*{\newtheorem}{\@ifstar\jmlr@snewtheorem\jmlr@newtheorem}
2646 % \end{macrocode}
2647 % Define starred version:
2648 %\begin{definition}
2649 %\cs{newtheorem*}\marg{env-name}\marg{title tag}
2650 %\end{definition}
2651 % \begin{macrocode}
2652 \newcommand*{\jmlr@snewtheorem}[2]{%
2653 \cslet{jmlr@thm@#1@body@font}{\@theorembodyfont}%
2654 \cslet{jmlr@thm@#1@header@font}{\@theoremheaderfont}%
2655 \cslet{jmlr@thm@#1@sep}{\@theoremsep}%
2656 \cslet{jmlr@thm@#1@postheader}{\@theorempostheader}%
2657 \newenvironment{#1}%
2658 {%
2659 \trivlist
2660 \item
2661 [%
2662 \hskip\labelsep{\csuse{jmlr@thm@#1@header@font}#2%
2663 \csuse{jmlr@thm@#1@postheader}%
2664 }%
2665 ]%
2666 \mbox{}\csuse{jmlr@thm@#1@sep}%
2667 \csuse{jmlr@thm@#1@body@font}%
2668 }%
2669 {%
2670 \endtrivlist
2671 }%
2672 }
2673 % \end{macrocode}
2674 %\end{macro}
2675 % Unstarred version needs adjusting to take the style into account:
2676 %\begin{macro}{\@othm}
2677 %\changes{1.18}{2013-10-17}{new}
2678 % \begin{macrocode}
2679 \newcommand{\jmlr@newtheorem}[1]{%
2680 \cslet{jmlr@thm@#1@body@font}{\@theorembodyfont}%
2681 \cslet{jmlr@thm@#1@header@font}{\@theoremheaderfont}%
2682 \cslet{jmlr@thm@#1@sep}{\@theoremsep}%
2683 \cslet{jmlr@thm@#1@postheader}{\@theorempostheader}%
2684 \jmlr@org@newtheorem{#1}%
2685 }
2686 % \end{macrocode}
2687 %\end{macro}
2688 %\begin{macro}{\@xthm}
2689 %\changes{1.18}{2013-10-17}{new}
2690 % \begin{macrocode}
2691 \renewcommand*{\@xthm}[2]{%
2692 \def\@jmlr@currentthm{#1}%
2693 \@begintheorem{#2}{\csname the#1\endcsname}%
2694 \ignorespaces
2695 }
2696 % \end{macrocode}
2697 %\end{macro}
2698 %\begin{macro}{\@ythm}
2699 %\changes{1.18}{2013-10-17}{new}
2700 % \begin{macrocode}
2701 \def\@ythm#1#2[#3]{%
2702 \def\@jmlr@currentthm{#1}%
2703 \@opargbegintheorem{#2}{\csname the#1\endcsname}{#3}%
2704 \ignorespaces
2705 }
2706 % \end{macrocode}
2707 %\end{macro}
2708 %\begin{macro}{\@begintheorem}
2709 %\changes{1.18}{2013-10-17}{new}
2710 % \begin{macrocode}
2711 \renewcommand*{\@begintheorem}[2]{%
2712 \ifdef{\@jmlr@currentthm}%
2713 {%
2714 \letcs{\jmlr@this@theoremheader}{jmlr@thm@\@jmlr@currentthm @header@font}%
2715 \letcs{\jmlr@this@theorembody}{jmlr@thm@\@jmlr@currentthm @body@font}%
2716 \letcs{\jmlr@this@theoremsep}{jmlr@thm@\@jmlr@currentthm @sep}%
2717 \letcs{\jmlr@this@theorempostheader}%
2718 {jmlr@thm@\@jmlr@currentthm @postheader}%
2719 }%
2720 {%
2721 \let\jmlr@this@theorembody\@theorembodyfont
2722 \let\jmlr@this@theoremheader\@theoremheaderfont
2723 \let\jmlr@this@theoremsep\@theoremsep
2724 \let\jmlr@this@theorempostheader\@theorempostheader
2725 }%
2726 \trivlist
2727 \item
2728 [%
2729 \hskip\labelsep{\jmlr@this@theoremheader #1\ #2%
2730 \jmlr@this@theorempostheader}%
2731 ]%
2732 \mbox{}\jmlr@this@theoremsep
2733 \jmlr@this@theorembody
2734 }
2735 % \end{macrocode}
2736 %\end{macro}
2737 %\begin{macro}{\@opargbegintheorem}
2738 %\changes{1.18}{2013-10-17}{new}
2739 % \begin{macrocode}
2740 \renewcommand*{\@opargbegintheorem}[3]{%
2741 \ifdef{\@jmlr@currentthm}%
2742 {%
2743 \letcs{\jmlr@this@theoremheader}{jmlr@thm@\@jmlr@currentthm @header@font}%
2744 \letcs{\jmlr@this@theorembody}{jmlr@thm@\@jmlr@currentthm @body@font}%
2745 \letcs{\jmlr@this@theoremsep}{jmlr@thm@\@jmlr@currentthm @sep}%
2746 \letcs{\jmlr@this@theorempostheader}%
2747 {jmlr@thm@\@jmlr@currentthm @postheader}%
2748 }%
2749 {%
2750 \let\jmlr@this@theorembody\@theorembodyfont
2751 \let\jmlr@this@theoremheader\@theoremheaderfont
2752 \let\jmlr@this@theoremsep\@theoremsep
2753 \let\jmlr@this@theorempostheader\@theorempostheader
2754 }%
2755 \trivlist
2756 \item[\hskip\labelsep{\jmlr@this@theoremheader #1\ #2\ (#3)%
2757 \jmlr@this@theorempostheader}]%
2758 \mbox{}\jmlr@this@theoremsep
2759 \jmlr@this@theorembody
2760 }
2761 % \end{macrocode}
2762 %\end{macro}
2763 %
2764 %\begin{environment}{example}
2765 % \begin{macrocode}
2766 \newtheorem{example}{Example}
2767 % \end{macrocode}
2768 %\end{environment}
2769 %\begin{environment}{theorem}
2770 % \begin{macrocode}
2771 \newtheorem{theorem}{Theorem}
2772 % \end{macrocode}
2773 %\end{environment}
2774 %\begin{environment}{lemma}
2775 % \begin{macrocode}
2776 \ifjmlrcleveref
2777 \newaliascnt{lemma}{theorem}
2778 % \end{macrocode}
2779 %\changes{1.30}{2022-02-09}{fixed counter name}
2780 % \begin{macrocode}
2781 \newtheorem{lemma}[lemma]{Lemma}
2782 \aliascntresetthe{lemma}
2783 \crefname{lemma}{lemma}{lemmas}
2784 \else
2785 \newtheorem{lemma}[theorem]{Lemma}
2786 \fi
2787 % \end{macrocode}
2788 %\end{environment}
2789 %\begin{environment}{proposition}
2790 % \begin{macrocode}
2791 \ifjmlrcleveref
2792 \newaliascnt{proposition}{theorem}
2793 \newtheorem{proposition}[proposition]{Proposition}
2794 \aliascntresetthe{proposition}
2795 \crefname{proposition}{proposition}{propositions}
2796 \else
2797 \newtheorem{proposition}[theorem]{Proposition}
2798 \fi
2799 % \end{macrocode}
2800 %\end{environment}
2801 %\begin{environment}{remark}
2802 % \begin{macrocode}
2803 \ifjmlrcleveref
2804 \newaliascnt{remark}{theorem}
2805 \newtheorem{remark}[remark]{Remark}
2806 \aliascntresetthe{remark}
2807 \crefname{remark}{remark}{remarks}
2808 \else
2809 \newtheorem{remark}[theorem]{Remark}
2810 \fi
2811 % \end{macrocode}
2812 %\end{environment}
2813 %\begin{environment}{corollary}
2814 % \begin{macrocode}
2815 \ifjmlrcleveref
2816 \newaliascnt{corollary}{theorem}
2817 \newtheorem{corollary}[corollary]{Corollary}
2818 \aliascntresetthe{corollary}
2819 \crefname{corollary}{corollary}{corollaries}
2820 \else
2821 \newtheorem{corollary}[theorem]{Corollary}
2822 \fi
2823 % \end{macrocode}
2824 %\end{environment}
2825 %\begin{environment}{definition}
2826 % \begin{macrocode}
2827 \ifjmlrcleveref
2828 \newaliascnt{definition}{theorem}
2829 \newtheorem{definition}[definition]{Definition}
2830 \aliascntresetthe{definition}
2831 \crefname{definition}{definition}{definitions}
2832 \else
2833 \newtheorem{definition}[theorem]{Definition}
2834 \fi
2835 % \end{macrocode}
2836 %\end{environment}
2837 %\begin{environment}{conjecture}
2838 % \begin{macrocode}
2839 \ifjmlrcleveref
2840 \newaliascnt{conjecture}{theorem}
2841 \newtheorem{conjecture}[conjecture]{Conjecture}
2842 \aliascntresetthe{conjecture}
2843 \crefname{conjecture}{conjecture}{conjectures}
2844 \else
2845 \newtheorem{conjecture}[theorem]{Conjecture}
2846 \fi
2847 % \end{macrocode}
2848 %\end{environment}
2849 %\begin{environment}{axiom}
2850 % \begin{macrocode}
2851 \ifjmlrcleveref
2852 \newaliascnt{axiom}{theorem}
2853 \newtheorem{axiom}[axiom]{axiom}
2854 \aliascntresetthe{axiom}
2855 \crefname{axiom}{axiom}{axioms}
2856 \else
2857 \newtheorem{axiom}[theorem]{Axiom}
2858 \fi
2859 % \end{macrocode}
2860 %\end{environment}
2861 % End of theorem definitions.
2862 % \begin{macrocode}
2863 \fi
2864 % \end{macrocode}
2865 %\iffalse
2866 % \begin{macrocode}
2867 %</jmlrutils.sty>
2868 % \end{macrocode}
2869 %\fi
2870 %\iffalse
2871 % \begin{macrocode}
2872 %<*jmlr.cls>
2873 % \end{macrocode}
2874 %\fi
2875 %\section{jmlr.cls Code}
2876 % This class is based on the \sty{jmlr2e} package but was modified to make sure
2877 % it works with \clsfmt{jmlrbook} which uses both \cls{combine} and
2878 % \sty{hyperref}.
2879 %
2880 % Declare class and required TeX format:
2881 % \begin{macrocode}
2882 \NeedsTeXFormat{LaTeX2e}
2883 \ProvidesClass{jmlr}[2022/02/09 v1.30 (NLCT) Journal of Machine Learning Research]
2884 % \end{macrocode}
2885 %\changes{1.10}{2011-01-05}{hyperref now loaded by jmlr instead of
2886 %jmlrbook}
2887 % Need \sty{xkeyval} package to have key=value class options
2888 % \begin{macrocode}
2889 \RequirePackage{xkeyval}
2890 % \end{macrocode}
2891 %\changes{1.18}{2013-10-17}{now requires calc package}
2892 % \begin{macrocode}
2893 \RequirePackage{calc}
2894 % \end{macrocode}
2895 %\changes{1.18}{2013-10-17}{now requires etoolbox package}
2896 % \begin{macrocode}
2897 \RequirePackage{etoolbox}
2898 % \end{macrocode}
2899 % Some packages need to be loaded before \sty{hyperref} so provide a
2900 % hook to do this:
2901 %\begin{macro}{\jmlrprehyperref}
2902 %\changes{1.12}{2012/01/05}{removed @ from name so it can be defined
2903 %by user}
2904 % \begin{macrocode}
2905 \providecommand*{\jmlrprehyperref}{}
2906 % \end{macrocode}
2907 %\end{macro}
2908 %\changes{1.12}{2012/01/05}{removed class option prehyperref}
2909 % The following conditionals are provided to make this class play nicely
2910 % with combine and aren't required for articles.
2911 % \begin{macrocode}
2912 \newif\if@openright
2913 \newif\if@mainmatter \@mainmattertrue
2914 % \end{macrocode}
2915 %\begin{macro}{\ifgrayscale}
2916 % Determine whether to select grayscale alternatives
2917 % \begin{macrocode}
2918 \@ifundefined{ifgrayscale}{
2919 \newif\ifgrayscale
2920 \grayscalefalse
2921 }{}
2922 \DeclareOptionX{color}{\grayscalefalse
2923 \PassOptionsToPackage{color}{xcolor}}
2924 \DeclareOptionX{gray}{\grayscaletrue
2925 \PassOptionsToPackage{gray}{xcolor}}
2926 % \end{macrocode}
2927 %\end{macro}
2928 %\begin{option}{draft}
2929 %\changes{1.18}{2013-10-17}{new}
2930 % \begin{macrocode}
2931 \DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{article}}
2932 % \end{macrocode}
2933 %\end{option}
2934 %\begin{option}{final}
2935 %\changes{1.18}{2013-10-17}{new}
2936 % \begin{macrocode}
2937 \DeclareOptionX{final}{\PassOptionsToClass{\CurrentOption}{article}}
2938 % \end{macrocode}
2939 %\end{option}
2940 % Can't load \sty{jmlrutils} here but need the \cs{iftablecaptiontop}
2941 % conditional for the class options.
2942 %\begin{macro}{\iftablecaptiontop}
2943 %\changes{1.06}{2010-06-17}{new}
2944 % \begin{macrocode}
2945 \newif\iftablecaptiontop
2946 \tablecaptiontoptrue
2947 % \end{macrocode}
2948 %\end{macro}
2949 % Provide table contents command that uses this conditional.
2950 % (The \sty{jmlrutils} package doesn't use it.)
2951 %\begin{macro}{\tableconts}
2952 % \begin{macrocode}
2953 \newcommand{\tableconts}[3]{%
2954 \iftablecaptiontop
2955 #2\label{#1}\vskip\baselineskip
2956 {\centering #3\par}%
2957 \else
2958 {\centering #3\par}%
2959 \vskip\baselineskip
2960 #2\label{#1}%
2961 \fi
2962 }
2963 % \end{macrocode}
2964 %\end{macro}
2965 % Determine if the table captions should go at the top.
2966 %\begin{option}{tablecaptiontop}
2967 % \begin{macrocode}
2968 \DeclareOptionX{tablecaptiontop}{\tablecaptiontoptrue}
2969 % \end{macrocode}
2970 %\end{option}
2971 %\begin{option}{tablecaptiontop}
2972 % \begin{macrocode}
2973 \DeclareOptionX{tablecaptionbottom}{\tablecaptiontopfalse}
2974 % \end{macrocode}
2975 %\end{option}
2976 %\begin{option}{tablecaption}
2977 %Key=value interface.
2978 % \begin{macrocode}
2979 \define@choicekey{jmlr.cls}{tablecaption}[\val\nr]{top,bottom}{%
2980 \ifcase\nr\relax
2981 \tablecaptiontoptrue
2982 \or
2983 \tablecaptiontopfalse
2984 \fi
2985 }
2986 % \end{macrocode}
2987 %\end{option}
2988 %\begin{macro}{\ifjmlrhtml}
2989 % Determine if we are using \app{TeX4ht}. (Deprecated.)
2990 %This option should no longer be used. The PMLR have changed
2991 %the submission guidelines and the production editor should
2992 %no longer supply HTML files.
2993 % \begin{macrocode}
2994 \newif\ifjmlrhtml
2995 \jmlrhtmlfalse
2996 \DeclareOptionX{html}{%
2997 \ClassWarning{jmlr}{html option is now deprecated}%
2998 \jmlrhtmltrue}
2999 \DeclareOptionX{nohtml}{\jmlrhtmlfalse}
3000 % \end{macrocode}
3001 %\end{macro}
3002 % Normal font size (default is 11pt).
3003 %\changes{1.10}{2011-01-05}{font size options don't pass option to
3004 %class}
3005 % \begin{macrocode}
3006 \def\pt@size{11pt}
3007 \DeclareOptionX{10pt}{\renewcommand{\pt@size}{10pt}}
3008 \DeclareOptionX{11pt}{\renewcommand{\pt@size}{11pt}}
3009 \DeclareOptionX{12pt}{\renewcommand{\pt@size}{12pt}}
3010 % \end{macrocode}
3011 %\begin{macro}{\@jmlrproceedings}
3012 % The name of the proceedings.
3013 % \begin{macrocode}
3014 \newcommand*{\@jmlrproceedings}{Journal of Machine Learning Research}
3015 % \end{macrocode}
3016 %\end{macro}
3017 %\begin{macro}{\@jmlrabbrvproceedings}
3018 % The abbreviated name of the proceedings.
3019 % \begin{macrocode}
3020 \newcommand*{\@jmlrabbrvproceedings}{JMLR}
3021 % \end{macrocode}
3022 %\end{macro}
3023 %\begin{macro}{\jmlrproceedings}
3024 % Sets the title and abbreviation of the proceedings
3025 % \begin{macrocode}
3026 \newcommand*{\jmlrproceedings}[2]{%
3027 \renewcommand*{\@jmlrabbrvproceedings}{#1}%
3028 \renewcommand*{\@jmlrproceedings}{#2}%
3029 }
3030 % \end{macrocode}
3031 %\end{macro}
3032 %
3033 %\begin{macro}{\jmlrnowcp}
3034 % \begin{macrocode}
3035 \newcommand*{\jmlrnowcp}{%
3036 \jmlrproceedings{JMLR}{Journal of Machine Learning Research}%
3037 }
3038 % \end{macrocode}
3039 %\end{macro}
3040 %\begin{macro}{\jmlrwcp}
3041 %\changes{1.11}{2011-03-24}{Fixed typo}
3042 % \begin{macrocode}
3043 \newcommand*{\jmlrwcp}{%
3044 \jmlrproceedings{JMLR W\&CP}{JMLR: Workshop and Conference Proceedings}%
3045 }
3046 % \end{macrocode}
3047 %\end{macro}
3048 %\begin{macro}{\jmlrpmlr}
3049 %\changes{1.23}{2017-03-09}{new}
3050 %The JMLR W\&CP has been renamed PMLR, so provide code to switch to
3051 %this instead,
3052 % \begin{macrocode}
3053 \newcommand*{\jmlrpmlr}{%
3054 \jmlrproceedings{PMLR}{Proceedings of Machine Learning Research}%
3055 }
3056 % \end{macrocode}
3057 %\end{macro}
3058 % This is a journal (non JMLR W\&CP\slash PMLR) article:
3059 % \begin{macrocode}
3060 \DeclareOptionX{nowcp}{\jmlrnowcp}
3061 % \end{macrocode}
3062 % This is an article for JMLR W\&CP
3063 % \begin{macrocode}
3064 \DeclareOptionX{wcp}{\jmlrwcp}
3065 % \end{macrocode}
3066 % This is an article for PMLR
3067 % \begin{macrocode}
3068 \DeclareOptionX{pmlr}{\jmlrpmlr}
3069 % \end{macrocode}
3070 %Pass cleveref option to jmlrutils
3071 %\changes{1.29}{2022-01-29}{added cleveref option}
3072 % \begin{macrocode}
3073 \DeclareOptionX{cleveref}{\PassOptionsToPackage{cleveref}{jmlrutils}}
3074 % \end{macrocode}
3075 %\begin{option}{oneside}
3076 %\changes{1.22}{2015/04/11}{new}
3077 % \begin{macrocode}
3078 \DeclareOptionX{oneside}{\@twosidefalse \@mparswitchfalse}
3079 % \end{macrocode}
3080 %\end{option}
3081 %\begin{option}{twoside}
3082 %\changes{1.22}{2015/04/11}{new}
3083 % \begin{macrocode}
3084 \DeclareOptionX{twoside}{\@twosidetrue \@mparswitchtrue}
3085 % \end{macrocode}
3086 %\end{option}
3087 % Set two-sided format
3088 % \begin{macrocode}
3089 \@twosidetrue
3090 % \end{macrocode}
3091 % The default paper size is letter, but provide $7 \times 10$in
3092 % alternative:
3093 % \begin{macrocode}
3094 \newif\ifviiXx
3095 \viiXxfalse
3096 \DeclareOptionX{7x10}{\viiXxtrue}
3097 \DeclareOptionX{letterpaper}{\PassOptionsToPackage{letterpaper}{typearea}}
3098 % \end{macrocode}
3099 % Pass all remaining options to \cls{article} class:
3100 % \begin{macrocode}
3101 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{article}}
3102 % \end{macrocode}
3103 % Execute required options:
3104 % \begin{macrocode}
3105 \ExecuteOptions{letterpaper}
3106 % \end{macrocode}
3107 % Process options:
3108 % \begin{macrocode}
3109 \ProcessOptionsX
3110 % \end{macrocode}
3111 % If two-sided, pass that to \cls{article} as well:
3112 %\changes{1.28}{2020-09-21}{pass twoside to article.cls}
3113 % \begin{macrocode}
3114 \if@twoside
3115 \PassOptionsToClass{twoside}{article}
3116 \fi
3117 % \end{macrocode}
3118 % Load \cls{article} class.
3119 %\changes{1.10}{2011-01-05}{passed \cs{pt@size} when loading article
3120 %class}
3121 % \begin{macrocode}
3122 \LoadClass[\pt@size]{article}
3123 % \end{macrocode}
3124 % Can't use \sty{geometry} package because it doesn't play nicely
3125 % with the \cls{combine} class.
3126 % \begin{macrocode}
3127 \ifviiXx
3128 \setlength{\paperwidth}{7in}
3129 \setlength{\paperheight}{10in}
3130 \setlength{\textwidth}{5.25in}
3131 \setlength{\textheight}{8.2in}
3132 \setlength{\topmargin}{0.4in}
3133 \setlength{\headheight}{0.2in}
3134 \setlength{\headsep}{0.2in}
3135 \setlength{\hoffset}{-1in}
3136 \setlength{\voffset}{-1in}
3137 \setlength{\evensidemargin}{0.75in}
3138 \setlength{\oddsidemargin}{1.0in}
3139 \else
3140 \setlength{\oddsidemargin}{0.25in}
3141 \setlength{\evensidemargin}{0.25in}
3142 \setlength{\marginparwidth}{0.07 true in}
3143 \setlength{\topmargin}{-0.5in}
3144 \addtolength{\headsep}{0.25in}
3145 \setlength{\textheight}{8.5 true in}
3146 \setlength{\textwidth}{6.0 true in}
3147 \fi
3148 % \end{macrocode}
3149 % Need to add jmlr end document hook before natbib adds a
3150 % \cs{clearpage} to it.
3151 % \begin{macrocode}
3152 \AtEndDocument{\@jmlrenddoc}
3153 % \end{macrocode}
3154 %\changes{1.29}{2022-01-29}{added \sty{placeins}}
3155 % Need \sty{placeins} to add float barrier at the end of the
3156 % article.
3157 % \begin{macrocode}
3158 \RequirePackage{placeins}
3159 % \end{macrocode}
3160 % Required packages:
3161 % \begin{macrocode}
3162 \RequirePackage{amsmath}
3163 \RequirePackage{amssymb}
3164 \RequirePackage{natbib}
3165 \RequirePackage{graphicx}
3166 \RequirePackage{url}
3167 \PassOptionsToPackage{x11names}{xcolor}
3168 \RequirePackage{xcolor}
3169 % \end{macrocode}
3170 % Allow old command names in the event that the proceedings contains
3171 % a mixture of papers that use old and new versions. (This means
3172 % that editors need to install the newer version.) For some reason,
3173 % loading \sty{algorithm2e} causes the message
3174 %\begin{verbatim}
3175 %(\end occurred inside a group at level 1)
3176 %\end{verbatim}
3177 % I don't know why, but it's outside the control of this class.
3178 % \begin{macrocode}
3179 \PassOptionsToPackage{algo2e,ruled}{algorithm2e}
3180 \RequirePackage{algorithm2e}
3181 % \end{macrocode}
3182 % Set the algorithm margin to zero.
3183 % \begin{macrocode}
3184 \setlength\algomargin{0pt}
3185 % \end{macrocode}
3186 %Load \sty{jmlrutils} before \sty{hyperref}.
3187 %\changes{1.24}{2017-08-01}{added \styfmt{jmlrutils}}
3188 % \begin{macrocode}
3189 \RequirePackage{jmlrutils}
3190 % \end{macrocode}
3191 % Do all the stuff that needs to be done before \sty{hyperref} is
3192 % loaded:
3193 % \begin{macrocode}
3194 \jmlrprehyperref
3195 % \end{macrocode}
3196 % Do stuff that has to come immediately before \sty{hyperref} is
3197 % loaded:
3198 %\changes{1.13}{2012/02/25}{added \cs{@pre@hyperref}}
3199 % \begin{macrocode}
3200 \@ifundefined{@pre@hyperref}{}{\@pre@hyperref}
3201 % \end{macrocode}
3202 % Load \sty{hyperref}:
3203 %\changes{1.19}{2014-09-29}{replaced \cs{usepackage} with \cs{RequirePackage}}
3204 % \begin{macrocode}
3205 \RequirePackage{hyperref}
3206 \RequirePackage{nameref}
3207 % \end{macrocode}
3208 % \begin{macrocode}
3209 % Do stuff that has to come immediately after \sty{hyperref} and
3210 % \sty{nameref} are loaded:
3211 %\changes{1.16}{2012/05/15}{added \cs{@post@hyperref}}
3212 \@ifundefined{@post@hyperref}{}{\@post@hyperref}
3213 % \end{macrocode}
3214 % Set up hyperref options:
3215 % \begin{macrocode}
3216 \hypersetup{colorlinks,
3217 linkcolor=blue,
3218 citecolor=blue,
3219 urlcolor=magenta,
3220 linktocpage,
3221 plainpages=false}
3222 % \end{macrocode}
3223 %
3224 % \begin{macrocode}
3225 \ifgrayscale
3226 % \end{macrocode}
3227 % If this is the print version, need to disable the hyperlinks:
3228 % \begin{macrocode}
3229 \hypersetup{draft}
3230 \fi
3231 % \end{macrocode}
3232 %
3233 % Float parameters: the following settings were copied from jmlr2e.sty
3234 % \begin{macrocode}
3235 \renewcommand{\topfraction}{0.95} % let figure take up nearly whole page
3236 \renewcommand{\textfraction}{0.05} % let figure take up nearly whole page
3237 % \end{macrocode}
3238 % widows/orphans
3239 % \begin{macrocode}
3240 \widowpenalty=10000\relax
3241 \clubpenalty=10000\relax
3242 % \end{macrocode}
3243 % Put marginal notes on the outside of the page
3244 % \begin{macrocode}
3245 \@mparswitchtrue
3246 % \end{macrocode}
3247 %\changes{1.18}{2013-10-17}{removed \cs{ds@draft}}
3248 % Use the plainnat bibliography style and set up the required
3249 % punctuation.
3250 % \begin{macrocode}
3251 \bibliographystyle{plainnat}
3252 \bibpunct{(}{)}{;}{a}{,}{,}
3253 % \end{macrocode}
3254 %\subsection{Sections}
3255 %\begin{macro}{\section}
3256 % \begin{macrocode}
3257 \renewcommand{\section}{\@startsection{section}{1}{\z@}%
3258 {-0.24in \@plus -1ex \@minus -.2ex}%
3259 {0.10in \@plus.2ex}%
3260 {\normalfont\rmfamily\bfseries\large\raggedright}%
3261 }
3262 % \end{macrocode}
3263 %\end{macro}
3264 %\begin{macro}{\subsection}
3265 % \begin{macrocode}
3266 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
3267 {-0.20in \@plus -1ex \@minus -.2ex}%
3268 {0.08in \@plus .2ex}%
3269 {\normalfont\rmfamily\bfseries\normalsize\raggedright}%
3270 }
3271 % \end{macrocode}
3272 %\end{macro}
3273 %\begin{macro}{\subsubsection}
3274 % \begin{macrocode}
3275 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
3276 {-0.18in \@plus -1ex \@minus -.2ex}%
3277 {0.08in \@plus .2ex}%
3278 {\normalfont\normalsize\rmfamily\mdseries\scshape\raggedright}%
3279 }
3280 % \end{macrocode}
3281 %\end{macro}
3282 %\begin{macro}{\paragraph}
3283 % \begin{macrocode}
3284 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
3285 {1.5ex plus 0.5ex minus .2ex}%
3286 {-1em}%
3287 {\normalfont\normalsize\rmfamily\bfseries}%
3288 }
3289 % \end{macrocode}
3290 %\end{macro}
3291 %\begin{macro}{\subparagraph}
3292 % \begin{macrocode}
3293 \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}%
3294 {1.5ex plus 0.5ex minus .2ex}%
3295 {-1em}%
3296 {\normalfont\normalsize\rmfamily\bfseries\itshape}}
3297 % \end{macrocode}
3298 %\end{macro}
3299 %
3300 %\begin{macro}{\@seccntformat}
3301 % Redefine the way the section number appears in the section
3302 % heading.
3303 % \begin{macrocode}
3304 \renewcommand*\@seccntformat[1]{%
3305 \csname pre#1num\endcsname
3306 \csname the#1\endcsname.\enskip
3307 }
3308 % \end{macrocode}
3309 %\end{macro}
3310 %
3311 %\subsection{Footnotes}
3312 %\begin{macro}{\@makefntext}
3313 %\changes{1.08}{2010-07-27}{new}
3314 % Redefine \cs{@makefntext} so that the text between the footnote
3315 % symbol and the footnote text can be redefined. (It looks odd
3316 % having a full stop after a symbol.)
3317 % \begin{macrocode}
3318 \renewcommand*{\@makefntext}[1]{%
3319 \@setpar
3320 {%
3321 \@@par
3322 \@tempdima\hsize
3323 \advance \@tempdima -15pt\relax
3324 \parshape \@ne 15pt \@tempdima
3325 }%
3326 \par
3327 \parindent 2em\noindent
3328 \hbox to \z@ {\hss {\@thefnmark }\footnoteseptext\hfil }#1%
3329 }
3330 % \end{macrocode}
3331 %\end{macro}
3332 %\begin{macro}{\footnoteseptext}
3333 %\changes{1.08}{2010-07-27}{new}
3334 % The separation text between the footnote symbol and the footnote
3335 % text.
3336 % \begin{macrocode}
3337 \newcommand*{\footnoteseptext}{. }
3338 % \end{macrocode}
3339 %\end{macro}
3340 %\begin{macro}{\thanks}
3341 %\changes{1.21}{2015-02-24}{added optional argument to \cs{footnotetext}}
3342 %\changes{1.10}{2011-01-05}{Modified definition of \cs{thanks}}
3343 %Added optional argument to \cs{footnotetext} as per
3344 %\url{http://tex.stackexchange.com/questions/229295}.
3345 %\changes{1.28}{2020-09-21}{switched to using mpfootnote to avoid clashing
3346 %with document footnotes}
3347 % \begin{macrocode}
3348 \renewcommand*{\thanks}[1]{%
3349 \refstepcounter{mpfootnote}%
3350 \footnotemark[\number\value{mpfootnote}]%
3351 \xappto\@thanks{\noexpand\footnotetext[\number\value{mpfootnote}]{#1}}%
3352 }
3353 % \end{macrocode}
3354 %\end{macro}
3355 %
3356 %\subsection{Article abstract}
3357 % This code has been taken from jmlr2e.sty but with \cs{bf} updated
3358 % to \cs{bfseries}
3359 %\begin{environment}{abstract}
3360 % \begin{macrocode}
3361 \ifjmlrhtml
3362 \renewenvironment{abstract}{\HCode{<h3>}Abstract\HCode{</h3>}}{}%
3363 \else
3364 \renewenvironment{abstract}
3365 % \end{macrocode}
3366 %\changes{1.09}{2010/12/01}{changed \cs{centerline} to
3367 %\cs{centering}\ldots\cs{par}}
3368 % \begin{macrocode}
3369 {{\centering\large\bfseries Abstract\par}\vspace{0.7ex}%
3370 \bgroup
3371 \leftskip 20pt\rightskip 20pt\small\noindent\ignorespaces}%
3372 {\par\egroup\vskip 0.25ex}
3373 \fi
3374 % \end{macrocode}
3375 %\end{environment}
3376 %\subsection{Keywords}
3377 % This code has been taken from jmlr2e.sty but with \cs{bf} updated
3378 % to \cs{bfseries}.
3379 %\begin{environment}{keywords}
3380 % \begin{macrocode}
3381 \newenvironment{keywords}
3382 {\bgroup\leftskip 20pt\rightskip 20pt \small\noindent{\bfseries
3383 Keywords:} \ignorespaces}%
3384 {\par\egroup\vskip 0.25ex}
3385 % \end{macrocode}
3386 %\end{environment}
3387 %\subsection{Title Page Information}
3388 % This code has been taken from jmlr2e.sty.
3389 %
3390 % Title stuff, borrowed in part from aaai92.sty
3391 % \begin{macrocode}
3392 \newlength\aftertitskip \newlength\beforetitskip
3393 \newlength\interauthorskip \newlength\aftermaketitskip
3394 % \end{macrocode}
3395 %% Changeable parameters.
3396 % \begin{macrocode}
3397 \setlength\aftertitskip{0.1in plus 0.2in minus 0.2in}
3398 \setlength\beforetitskip{0.05in plus 0.08in minus 0.08in}
3399 \setlength\interauthorskip{0.08in plus 0.1in minus 0.1in}
3400 \setlength\aftermaketitskip{0.3in plus 0.1in minus 0.1in}
3401 % \end{macrocode}
3402 %
3403 %\begin{macro}{\titlebreak}
3404 %\changes{1.12}{2012/01/05}{new}
3405 % Acts like new line in the paper title, but with jmlrbook acts like a space in
3406 % the table of contents and bookmarks.
3407 % \begin{macrocode}
3408 \newcommand*{\titlebreak}{\newline}
3409 % \end{macrocode}
3410 %\end{macro}
3411 %
3412 %\begin{macro}{\titletag}
3413 %\changes{1.17}{2012/05/30}{new}
3414 % \begin{macrocode}
3415 \newcommand*{\titletag}[1]{}
3416 % \end{macrocode}
3417 %\end{macro}
3418 %
3419 %\begin{macro}{\title}
3420 % Override definition of \cs{title} to allow for an optional
3421 % argument (short title)
3422 % \begin{macrocode}
3423 \renewcommand*{\title}[2][\@title]{%
3424 \def\@shorttitle{#1}%
3425 \def\@title{#2}%
3426 \protected@write\@auxout{}{\string\jmlr@title{#1}{#2}}%
3427 \jmlrtitlehook
3428 }
3429 % \end{macrocode}
3430 %\end{macro}
3431 %\begin{macro}{\@shorttitle}
3432 %\changes{1.12}{2012/01/05}{provided default value}
3433 % The short title of the document is initialised to \cs{jobname} to
3434 % ensure a basic document will compile even if no title is set.
3435 % \begin{macrocode}
3436 \newcommand*{\@shorttitle}{\jobname}
3437 % \end{macrocode}
3438 %\end{macro}
3439 %
3440 %\begin{macro}{\jmlrtitlehook}
3441 % \begin{macrocode}
3442 \newcommand*{\jmlrtitlehook}{}
3443 % \end{macrocode}
3444 %\end{macro}
3445 %\begin{macro}{\jmlr@title}
3446 %\changes{1.20}{2014/10/15}{new}
3447 % AUX command provided for MakeJmlrBookGUI
3448 % \begin{macrocode}
3449 \newcommand*{\jmlr@title}[2]{}
3450 % \end{macrocode}
3451 %\end{macro}
3452 %
3453 %\begin{macro}{\author}
3454 % Override definition of \cs{author} to allow for an optional
3455 % argument (list of authors for page heading)
3456 % \begin{macrocode}
3457 \renewcommand*{\author}[2][]{%
3458 \def\@author{#2}%
3459 \def\@sauthor{#1}%
3460 \def\@jmlr@aux@author{#2}\@onelevel@sanitize\@jmlr@aux@author
3461 \ifx\@sauthor\@empty
3462 \let\@jmlr@aux@sauthor\@jmlr@aux@author
3463 \else
3464 \let\@shortauthor\@sauthor
3465 \def\@jmlr@aux@sauthor{#1}\@onelevel@sanitize\@jmlr@aux@sauthor
3466 \fi
3467 \jmlrauthorhook
3468 \protected@write\@auxout
3469 {}{\string\jmlr@author{\@jmlr@aux@sauthor}{\@jmlr@aux@author}}%
3470 }
3471 % \end{macrocode}
3472 %\end{macro}
3473 %\begin{macro}{\jmlrauthorhook}
3474 % \begin{macrocode}
3475 \newcommand*{\jmlrauthorhook}{}
3476 % \end{macrocode}
3477 %\end{macro}
3478 %\begin{macro}{\jmlr@author}
3479 %\changes{1.20}{2014/10/15}{new}
3480 % AUX command provided for MakeJmlrBookGUI
3481 % \begin{macrocode}
3482 \newcommand*{\jmlr@author}[2]{}
3483 % \end{macrocode}
3484 %\end{macro}
3485 %
3486 %\begin{macro}{\@shortauthor}
3487 % \begin{macrocode}
3488 \newcommand*{\@shortauthor}{}
3489 % \end{macrocode}
3490 %\end{macro}
3491 %
3492 %\begin{macro}{\@firstauthor}
3493 % \begin{macrocode}
3494 \newcommand*{\@firstauthor}{}
3495 % \end{macrocode}
3496 %\end{macro}
3497 %\begin{macro}{\@firstsurname}
3498 % \begin{macrocode}
3499 \newcommand*{\@firstsurname}{}
3500 % \end{macrocode}
3501 %\end{macro}
3502 %
3503 %\begin{macro}{\jmlrlength}
3504 % \begin{macrocode}
3505 \newlength\jmlrlength
3506 % \end{macrocode}
3507 %\end{macro}
3508 %
3509 %\begin{macro}{\jmlrmaketitle}
3510 % Make the title
3511 % \begin{macrocode}
3512 \def\jmlrmaketitle{%
3513 \jmlrpremaketitlehook
3514 \def\@jmlr@authors@sep{, }%
3515 \par
3516 \begingroup
3517 % \end{macrocode}
3518 %\changes{1.08}{2010-07-27}{modified footnote marker in the footnote
3519 %text so that it is raised and isn't followed by a full stop}
3520 % \begin{macrocode}
3521 \def\footnoteseptext{ }%
3522 \def\thempfn{\textsuperscript{\thefootnote}}%
3523 \def\thefootnote{\fnsymbol{footnote}}%
3524 % \end{macrocode}
3525 %\changes{1.07}{2010-06-30}{added check for two column mode}
3526 % \begin{macrocode}
3527 \if@twocolumn
3528 \twocolumn[\@jmlrmaketitle]%
3529 \else
3530 \@jmlrmaketitle
3531 \fi
3532 \@thanks
3533 \endgroup
3534 \label{jmlrstart}%
3535 \ifx\@sauthor\@empty
3536 \settowidth{\jmlrlength}{\@evenhead}%
3537 \ifdim\jmlrlength>\textwidth
3538 \def\@shortauthor{\@firstsurname\space et al.}%
3539 \fi
3540 \fi
3541 \settowidth{\jmlrlength}{\@titlefoot}%
3542 \ifdim\jmlrlength>\textwidth
3543 \def\@jmlrauthors{\@firstauthor\space \emph{et al}}%
3544 \fi
3545 \jmlrmaketitlehook
3546 \thispagestyle{jmlrtps}%
3547 \setcounter{footnote}{0}%
3548 \let\maketitle\relax \let\@maketitle\relax
3549 \gdef\@thanks{}\gdef\@author{}\let\thanks\@gobble
3550 \def\@jmlr@authors@sep{ \& }%
3551 }
3552 % \end{macrocode}
3553 %\end{macro}
3554 %
3555 %\begin{macro}{\jmlrmaketitlehook}
3556 % \begin{macrocode}
3557 \newcommand*{\jmlrmaketitlehook}{}
3558 % \end{macrocode}
3559 %\end{macro}
3560 %\begin{macro}{\jmlrpremaketitlehook}
3561 % \begin{macrocode}
3562 \newcommand*{\jmlrpremaketitlehook}{}
3563 % \end{macrocode}
3564 %\end{macro}
3565 %
3566 % Provide a different title layout for HTML
3567 %\begin{macro}{\jmlrhtmlmaketitle}
3568 % \begin{macrocode}
3569 \newcommand{\jmlrhtmlmaketitle}{%
3570 \ifx\@jmlr@authors\@empty
3571 \sbox\jmlrbox{\let\addr\relax\@author}%
3572 \fi
3573 \noindent\HCode{<h2>}\@title\HCode{</h2>}
3574 \noindent\@jmlr@authors
3575 }
3576 % \end{macrocode}
3577 %\end{macro}
3578 %%\begin{macro}{\jmlrbox}
3579 % Define a save box
3580 % \begin{macrocode}
3581 \newsavebox\jmlrbox
3582 % \end{macrocode}
3583 %\end{macro}
3584 %\begin{macro}{\maketitle}
3585 % If we're creating HTML, set \cs{maketitle} to
3586 % \cs{jmlrhtmlmaketitle}, otherwise set it to \cs{jmlrmaketitle}
3587 % \begin{macrocode}
3588 \ifjmlrhtml
3589 \let\maketitle\jmlrhtmlmaketitle
3590 \else
3591 \let\maketitle\jmlrmaketitle
3592 \fi
3593 % \end{macrocode}
3594 %\end{macro}
3595 %
3596 % Author and editor information.
3597 % \begin{macrocode}
3598 \def\@startauthor{\noindent \normalsize\bfseries}
3599 \def\@endauthor{}
3600 \def\@starteditor{\noindent \small {\bfseries \@edname:~}}
3601 \def\@endeditor{\normalsize}
3602 % \end{macrocode}
3603 % Provide hooks to make it easier to adapted with \cls{combine}
3604 % class.
3605 %\begin{macro}{\jmlrpretitle}
3606 % \begin{macrocode}
3607 \def\jmlrpretitle{\vskip\beforetitskip\begin{center}\Large\bfseries}
3608 % \end{macrocode}
3609 %\end{macro}
3610 %\begin{macro}{\jmlrposttitle}
3611 % \begin{macrocode}
3612 \def\jmlrposttitle{\par\end{center}\vskip\aftertitskip}
3613 % \end{macrocode}
3614 %\end{macro}
3615 %\begin{macro}{\nametag}
3616 %\changes{1.09}{2010/12/01}{new}
3617 % \begin{macrocode}
3618 \newcommand*{\nametag}[1]{}
3619 % \end{macrocode}
3620 %\end{macro}
3621 %\begin{macro}{\jmlrpreauthor}
3622 %\changes{1.09}{2010/12/01}{added \cs{nametag}}
3623 % \begin{macrocode}
3624 \def\jmlrpreauthor{%
3625 \bgroup
3626 \def\nametag##1{##1}%
3627 \def\and{\unskip\enspace{\normalfont and}\enspace}%
3628 % \end{macrocode}
3629 %\changes{1.10}{2011-01-05}{added \cs{mdseries} to \cs{addr}}
3630 % \begin{macrocode}
3631 \def\addr{\mdseries\small\itshape}%
3632 \def\name{\ClassError{jmlr}{Use \string\Name{Author's Name} not \string\name}{}}%
3633 \def\email{\ClassError{jmlr}{Use \string\Email{address} not \string\email}{}}%
3634 \def\AND{\@endauthor\normalfont\hss \vskip \interauthorskip
3635 \@startauthor}%
3636 \@startauthor
3637 }
3638 % \end{macrocode}
3639 %\end{macro}
3640 %\begin{macro}{\addr}
3641 %\changes{1.20}{2014/10/15}{initialised to nothing}
3642 % Initialise to do nothing if used outside of \cs{author}
3643 % \begin{macrocode}
3644 \newcommand{\addr}{}
3645 % \end{macrocode}
3646 %\end{macro}
3647 %\begin{macro}{\@email}
3648 % \begin{macrocode}
3649 \def\@email{\hfill\small\mdseries\scshape}%
3650 % \end{macrocode}
3651 %\end{macro}
3652 %\begin{macro}{\@name}
3653 % \begin{macrocode}
3654 \def\@name{\normalsize\upshape\bfseries}%
3655 % \end{macrocode}
3656 %\end{macro}
3657 %
3658 %\begin{macro}{\@parsename}
3659 % Parse a name. Appends forename to \cs{@forenames} and stores
3660 % surname in \cs{@surname}.
3661 % \begin{macrocode}
3662 \def\@parsename#1 #2\end@parsename{%
3663 \def\@tmp{#2}%
3664 \ifx\@tmp\@nnil
3665 \def\@surname{#1}%
3666 \let\@nextparsename\@parsenamenoop
3667 \else
3668 \@getinitial#1-\relax\relax\end@getinitial
3669 \ifx\@forenames\@empty
3670 \def\@forenames{#1}%
3671 \protected@edef\@initials{\@initial}%
3672 \else
3673 \expandafter\toks@\expandafter{\@forenames}%
3674 \edef\@forenames{\space\the\toks@}%
3675 \expandafter\toks@\expandafter{\@initials}%
3676 \protected@edef\@initials{\the\toks@\@initial}%
3677 \fi
3678 \let\@nextparsename\@parsename
3679 \fi
3680 \@nextparsename#2\end@parsename
3681 }
3682 \def\@parsenamenoop#1\end@parsename{}
3683 % \end{macrocode}
3684 %\end{macro}
3685 %
3686 %\begin{macro}{\@getinitial}
3687 % \begin{macrocode}
3688 \def\@getinitial#1#2-#3#4\end@getinitial{%
3689 \def\@jmlr@tmp{#3}%
3690 \if\@jmlr@tmp\relax
3691 \def\@initial{#1.}%
3692 \else
3693 \def\@initial{#1.-#3.}%
3694 \fi
3695 }
3696 % \end{macrocode}
3697 %\end{macro}
3698 %
3699 %\begin{macro}{\Name}
3700 % Get the author's name and add surname to \cs{@shortauthors}.
3701 % (Surnames with \qt{von} parts or with spaces in should be
3702 % enclosed in braces)
3703 %\changes{1.12}{2012/01/05}{added optional argument}
3704 % \begin{macrocode}
3705 \newcommand*{\Name}[2][]{%
3706 \def\@authorlist{#1}%
3707 \def\@forenames{}%
3708 \def\@surname{}%
3709 \def\nametag##1{}%
3710 \@parsename#2 \@nil\end@parsename
3711 \ifx\@shortauthor\@empty
3712 \ifx\@sauthor\@empty
3713 \global\let\@shortauthor\@surname
3714 \global\let\@firstsurname\@surname
3715 \fi
3716 \ifx\@authorlist\@empty
3717 \protected@xdef\@jmlrauthors{\@initials\space\@surname}%
3718 \else
3719 \protected@xdef\@jmlrauthors{\@authorlist}%
3720 \fi
3721 \global\let\@firstauthor\@jmlrauthors
3722 \else
3723 \ifx\@sauthor\@empty
3724 \expandafter\toks@\expandafter{\@shortauthor}%
3725 \protected@xdef\@shortauthor{\the\toks@\space\@surname}%
3726 \fi
3727 \ifx\@authorlist\@empty
3728 \ifx\@jmlrauthors\@empty
3729 \protected@xdef\@jmlrauthors{\@initials\space\@surname}%
3730 \else
3731 \protected@xdef\@jmlrauthors{\@jmlrauthors
3732 \noexpand\@jmlr@authors@sep
3733 \@initials\space\@surname}%
3734 \fi
3735 \else
3736 \ifx\@jmlrauthors\@empty
3737 \protected@xdef\@jmlrauthors{\@authorlist}%
3738 \else
3739 \protected@xdef\@jmlrauthors{\@jmlrauthors
3740 \noexpand\@jmlr@authors@sep
3741 \@authorlist
3742 }%
3743 \fi
3744 \fi
3745 \fi
3746 \def\nametag##1{##1}%
3747 \@name #2%
3748 }
3749 % \end{macrocode}
3750 %\end{macro}
3751 %
3752 %\begin{macro}{\jmlrabbrnamelist}
3753 %\changes{1.11}{2011-03-24}{new}
3754 % Display list of names in abbreviated form. (Mainly designed for use with
3755 % makejmlrbook for the preface authors.) The author should be
3756 % grouped if the name contains a comma.
3757 % \begin{macrocode}
3758 \newcommand*{\jmlrabbrnamelist}[1]{%
3759 \def\nametag##1{}%
3760 \def\@jmlr@authors@sep{, }%
3761 \def\@jmlr@namelist{}%
3762 \@for\@thisname:=#1\do{%
3763 \expandafter\@jmlrabbrname\expandafter{\@thisname}%
3764 \ifx\@jmlr@namelist\@empty
3765 \protected@edef\@jmlr@namelist{%
3766 \@initials\space\@surname
3767 }%
3768 \else
3769 \protected@edef\@jmlr@namelist{%
3770 \@jmlr@namelist
3771 \noexpand\@jmlr@authors@sep
3772 \@initials\space\@surname
3773 }%
3774 \fi
3775 }%
3776 \def\@jmlr@authors@sep{ \& }%
3777 \@jmlr@namelist
3778 }
3779 % \end{macrocode}
3780 %\end{macro}
3781 %\begin{macro}{\@jmlrabbrname}
3782 % \begin{macrocode}
3783 \newcommand*{\@jmlrabbrname}[1]{%
3784 \def\@initials{}%
3785 \def\@surname{}%
3786 \def\@forenames{}%
3787 \@parsename#1 \@nil\end@parsename
3788 }
3789 % \end{macrocode}
3790 %\end{macro}
3791 %
3792 %\begin{macro}{\Email}
3793 % \begin{macrocode}
3794 \newcommand*{\Email}[1]{{\@email #1}}
3795 % \end{macrocode}
3796 %\end{macro}
3797 %\begin{macro}{\jmlrpostauthor}
3798 % \begin{macrocode}
3799 \def\jmlrpostauthor{\@endauthor\egroup
3800 \par
3801 \vskip \aftermaketitskip
3802 \noindent
3803 \ifx\@editor\@empty
3804 \else
3805 \@starteditor \@editor \@endeditor
3806 \fi
3807 \vskip \aftermaketitskip
3808 }
3809 % \end{macrocode}
3810 %\end{macro}
3811 %\begin{macro}{\@jmlrmaketitle}
3812 %\changes{1.26}{2020-01-31}{removed vbox}
3813 %This used to enclose the title in a \cs{vbox} but this caused a
3814 %problem for extremely long author/affiliation lists that spanned
3815 %multiple pages, so the \cs{vbox} has been removed (in v1.26), but
3816 %the grouping has been retained.
3817 % \begin{macrocode}
3818 \def\@jmlrmaketitle{%
3819 {%
3820 \jmlrpretitle
3821 {%
3822 \def\titletag##1{##1}%
3823 \@title
3824 }%
3825 \jmlrposttitle
3826 % \end{macrocode}
3827 %\changes{1.26}{2020-01-31}{added \cs{ignorespaces}}
3828 % Use \cs{ignorespaces} before \cs{@author} in case a space has been inserted
3829 % at the start of \cs{author}. May occur with a long author list
3830 % that's been spaced for clarity, but less likely to occur with \cs{title}.
3831 % Trailing spaces are less likely to be noticeable.
3832 % \begin{macrocode}
3833 \jmlrpreauthor \ignorespaces\@author \jmlrpostauthor
3834 }%
3835 }
3836 % \end{macrocode}
3837 %\end{macro}
3838 %\begin{macro}{\kernelmachines}
3839 % Convenience command
3840 % \begin{macrocode}
3841 \newcommand*\kernelmachines{(for
3842 {\textsc{http://www.kernel-machines.org}})}
3843 % \end{macrocode}
3844 %\end{macro}
3845 %
3846 %\begin{macro}{\editorname}
3847 % Label for the editor
3848 % \begin{macrocode}
3849 \newcommand*{\editorname}{Editor}
3850 % \end{macrocode}
3851 %\end{macro}
3852 %\begin{macro}{\editorsname}
3853 % Label for the editor
3854 % \begin{macrocode}
3855 \newcommand*{\editorsname}{Editors}
3856 % \end{macrocode}
3857 %\end{macro}
3858 %\begin{macro}{\@edname}
3859 % This will either be Editor or Editors depending on whether
3860 % \cs{editor} or \cs{editors} is used. Defaults to \cs{editorname}
3861 % \begin{macrocode}
3862 \let\@edname\editorname
3863 % \end{macrocode}
3864 %\end{macro}
3865 %\begin{macro}{\@editor}
3866 % The editor or editors are stored in \cs{@editor}
3867 % \begin{macrocode}
3868 \def\@editor{}
3869 % \end{macrocode}
3870 %\end{macro}
3871 %\begin{macro}{\editor}
3872 % A single editor
3873 % \begin{macrocode}
3874 \def\editor#1{%
3875 \global\let\@edname\editorname
3876 \gdef\@editor{#1}%
3877 }
3878 % \end{macrocode}
3879 %\end{macro}
3880 %\begin{macro}{\editors}
3881 % Multiple editors
3882 % \begin{macrocode}
3883 \def\editors#1{%
3884 \global\let\@edname\editorsname
3885 \gdef\@editor{#1}%
3886 }
3887 % \end{macrocode}
3888 %\end{macro}
3889 %
3890 %\subsection{Pagestyles}
3891 % This is taken from jmlr2e.sty
3892 %
3893 %\begin{macro}{\firstpageno}
3894 % Set the page counter.
3895 % \begin{macrocode}
3896 \def\firstpageno#1{\setcounter{page}{#1}}
3897 % \end{macrocode}
3898 %\end{macro}
3899 %\begin{macro}{\startpage}
3900 %\changes{1.10}{2011-01-05}{new}
3901 % If \cs{startpage} has been defined, use its value for the first
3902 % page.
3903 % \begin{macrocode}
3904 \@ifundefined{startpage}{}{\firstpageno{\startpage}}
3905 % \end{macrocode}
3906 %\end{macro}
3907 %
3908 % Label end page.
3909 %\begin{macro}{\@jmlrenddoc}
3910 % Label end page
3911 %\changes{1.29}{2022-01-29}{added float barrier}
3912 % \begin{macrocode}
3913 \newcommand*{\@jmlrenddoc}{%
3914 \FloatBarrier
3915 \phantomsection
3916 \protected@edef\@currentlabelname{end of \@shorttitle}%
3917 \label{jmlrend}\null
3918 \global\let\@reprint\@empty
3919 }
3920 % \end{macrocode}
3921 %\end{macro}
3922 %
3923 %\begin{macro}{\@titlefoot}
3924 %\changes{1.09}{2010/12/01}{added \cs{@reprint}}
3925 % \begin{macrocode}
3926 \newcommand*{\@titlefoot}{\scriptsize\copyright\space\@jmlryear
3927 \space\@jmlr@authors.\hfill
3928 \@reprint
3929 }
3930 % \end{macrocode}
3931 %\end{macro}
3932 %\begin{macro}{\reprint}
3933 %\changes{1.09}{2010/12/01}{new}
3934 % \begin{macrocode}
3935 \let\@reprint\@empty
3936 \newcommand{\reprint}[1]{%
3937 \gdef\@reprint{Reprinted with permission for JMLR#1}}
3938 % \end{macrocode}
3939 %\end{macro}
3940 %
3941 %\begin{macro}{\ps@jmlrtps}
3942 % Title page style
3943 % \begin{macrocode}
3944 \newcommand\ps@jmlrtps{%
3945 \let\@mkboth\@gobbletwo
3946 \def\@oddhead{\scriptsize \@jmlrproceedings
3947 \ifx\@jmlrvolume\@empty
3948 \else
3949 \space\@jmlrvolume
3950 \ifx\@jmlrissue\@empty\else(\@jmlrissue)\fi
3951 \ifx\@jmlrpages\@empty
3952 \ifx\@jmlryear\@empty
3953 \else
3954 \if\@jmlrissue\@empty,\fi
3955 \fi
3956 \else
3957 :%
3958 \fi
3959 \fi
3960 \ifx\@jmlrpages\@empty
3961 \else
3962 \ifx\@jmlrvolume\@empty\space\fi
3963 \@jmlrpages
3964 \ifx\@jmlryear\@empty\else,\fi
3965 \fi
3966 \ifx\@jmlryear\@empty\else\space\@jmlryear\fi
3967 \hfill
3968 \ifx\@jmlrworkshop\@empty
3969 \ifx\@jmlrsubmitted\@empty
3970 \else
3971 Submitted \@jmlrsubmitted
3972 \ifx\@jmlrpublished\@empty\else;\fi
3973 \fi
3974 \ifx\@jmlrpublished\@empty
3975 \else
3976 \space Published \@jmlrpublished
3977 \fi
3978 \else
3979 \space\@jmlrworkshop
3980 \fi
3981 }%
3982 \let\@evenhead\@oddhead
3983 \def\@oddfoot{\@titlefoot}%
3984 \let\@evenfoot\@oddfoot
3985 }
3986 % \end{macrocode}
3987 %\end{macro}
3988 %\begin{macro}{\ps@jmlrps}
3989 % Page style for subsequent pages
3990 % \begin{macrocode}
3991 \def\ps@jmlrps{%
3992 \let\@mkboth\@gobbletwo
3993 \def\@oddhead{\hfill {\small\scshape \@shorttitle} \hfill}%
3994 \def\@oddfoot{\hfill \small\rmfamily \thepage \hfill}%
3995 \def\@evenhead{\hfill {\small\scshape \@shortauthor} \hfill}%
3996 \def\@evenfoot{\hfill \small\rmfamily \thepage \hfill}%
3997 }%
3998 % \end{macrocode}
3999 % Set the page style:
4000 % \begin{macrocode}
4001 \pagestyle{jmlrps}
4002 % \end{macrocode}
4003 %\end{macro}
4004 % Set the heading information:
4005 %\begin{macro}{\@jmlrvolume}
4006 % The volume number:
4007 %\changes{1.17}{2012/05/30}{changed initial definition to use
4008 %\cs{providecommand}}
4009 % \begin{macrocode}
4010 \providecommand*{\@jmlrvolume}{}
4011 % \end{macrocode}
4012 %\end{macro}
4013 %\begin{macro}{\jmlrvolume}
4014 % \begin{macrocode}
4015 \newcommand*{\jmlrvolume}[1]{\renewcommand*{\@jmlrvolume}{#1}}
4016 % \end{macrocode}
4017 %\end{macro}
4018 %\begin{macro}{\@jmlrissue}
4019 % The issue number:
4020 % \begin{macrocode}
4021 \providecommand*{\@jmlrissue}{}
4022 % \end{macrocode}
4023 %\end{macro}
4024 %\begin{macro}{\jmlrissue}
4025 % \begin{macrocode}
4026 \newcommand*{\jmlrissue}[1]{\renewcommand*{\@jmlrissue}{#1}}
4027 % \end{macrocode}
4028 %\end{macro}
4029 %\begin{macro}{\@jmlryear}
4030 % The year of publication:
4031 %\changes{1.17}{2012/05/30}{changed initial definition to use
4032 %\cs{providecommand}}
4033 % \begin{macrocode}
4034 \providecommand*{\@jmlryear}{}
4035 % \end{macrocode}
4036 %\end{macro}
4037 %\begin{macro}{\jmlryear}
4038 % \begin{macrocode}
4039 \newcommand*{\jmlryear}[1]{\renewcommand*{\@jmlryear}{#1}}
4040 % \end{macrocode}
4041 %\end{macro}
4042 %\begin{macro}{\@jmlrpages}
4043 % The page range:
4044 %\changes{1.17}{2012/05/30}{changed initial definition to use
4045 %\cs{providecommand}}
4046 % \begin{macrocode}
4047 \providecommand*\@jmlrpages{\pageref{jmlrstart}--\pageref{jmlrend}}
4048 % \end{macrocode}
4049 %\end{macro}
4050 %\begin{macro}{\jmlrpages}
4051 % \begin{macrocode}
4052 \newcommand*{\jmlrpages}[1]{\renewcommand*{\@jmlrpages}{#1}}
4053 % \end{macrocode}
4054 %\end{macro}
4055 %\begin{macro}{\@jmlrsubmitted}
4056 % The date the article was submitted:
4057 %\changes{1.17}{2012/05/30}{changed initial definition to use
4058 %\cs{providecommand}}
4059 % \begin{macrocode}
4060 \providecommand*\@jmlrsubmitted{}
4061 % \end{macrocode}
4062 %\end{macro}
4063 %\begin{macro}{\jmlrsubmitted}
4064 % \begin{macrocode}
4065 \newcommand*{\jmlrsubmitted}[1]{\renewcommand*{\@jmlrsubmitted}{#1}}
4066 % \end{macrocode}
4067 %\end{macro}
4068 %\begin{macro}{\@jmlrpublished}
4069 % The date the article was published:
4070 %\changes{1.17}{2012/05/30}{changed initial definition to use
4071 %\cs{providecommand}}
4072 % \begin{macrocode}
4073 \providecommand*\@jmlrpublished{}
4074 % \end{macrocode}
4075 %\end{macro}
4076 %\begin{macro}{\jmlrpublished}
4077 % \begin{macrocode}
4078 \newcommand*{\jmlrpublished}[1]{\renewcommand*{\@jmlrpublished}{#1}}
4079 % \end{macrocode}
4080 %\end{macro}
4081 %\begin{macro}{\@jmlrworkshop}
4082 % The name of the workshop:
4083 %\changes{1.17}{2012/05/30}{changed initial definition to use
4084 %\cs{providecommand}}
4085 % \begin{macrocode}
4086 \providecommand*\@jmlrworkshop{}
4087 % \end{macrocode}
4088 %\end{macro}
4089 %\begin{macro}{\jmlrworkshop}
4090 % \begin{macrocode}
4091 \newcommand*{\jmlrworkshop}[1]{%
4092 \renewcommand*{\@jmlrworkshop}{#1}%
4093 \protected@write\@auxout{}{\string\jmlr@workshop{#1}}%
4094 }
4095 % \end{macrocode}
4096 %\end{macro}
4097 %\begin{macro}{\jmlr@workshop}
4098 %\changes{1.20}{2014/10/15}{new}
4099 % \begin{macrocode}
4100 \newcommand*{\jmlr@workshop}[1]{}
4101 % \end{macrocode}
4102 %\end{macro}
4103 %\begin{macro}{\date}
4104 % \begin{macrocode}
4105 \renewcommand*{\date}[1]{%
4106 \renewcommand*{\@date}{#1}%
4107 \protected@write\@auxout{}{\string\jmlr@date{#1}}%
4108 }
4109 % \end{macrocode}
4110 %\end{macro}
4111 %\begin{macro}{\jmlr@date}
4112 %\changes{1.20}{2014/10/15}{new}
4113 % \begin{macrocode}
4114 \newcommand*{\jmlr@date}[1]{}
4115 % \end{macrocode}
4116 %\end{macro}
4117 %\begin{macro}{\@jmlrauthors}
4118 % \begin{macrocode}
4119 \newcommand*{\@jmlrauthors}{}
4120 % \end{macrocode}
4121 %\end{macro}
4122 %\begin{macro}{\@jmlr@authors}
4123 %\changes{1.12}{2012/01/05}{new}
4124 % \begin{macrocode}
4125 \newcommand*{\@jmlr@authors}{\@jmlrauthors}
4126 % \end{macrocode}
4127 %\end{macro}
4128 %\begin{macro}{\jmlrauthors}
4129 % This is provided in case \cs{Name} doesn't set \cs{@jmlrauthors}
4130 % correctly.
4131 %\changes{1.12}{2012/01/05}{\cs{jmlrauthors} now redefines
4132 %\cs{@jmlr@authors} instead of \cs{@jmlrauthors}}
4133 % \begin{macrocode}
4134 \newcommand*{\jmlrauthors}[1]{\global\def\@jmlr@authors{#1}}
4135 % \end{macrocode}
4136 %\end{macro}
4137 %
4138 %
4139 %\subsection{Miscellany}
4140 % This code was taken from jmlr2e.sty.
4141
4142 % Define macros for figure captions and table titles
4143 % \begin{macrocode}
4144 \def\figurecaption#1#2{\noindent\hangindent 40pt
4145 \hbox to 36pt {\small\slshape #1 \hfil}
4146 \ignorespaces {\small #2}}
4147 % \end{macrocode}
4148 % Figurecenter prints the caption title centered.
4149 % \begin{macrocode}
4150 \def\figurecenter#1#2{\centerline{{\slshape #1} #2}}
4151 \def\figurecenter#1#2{\centerline{{\small\slshape #1} {\small #2}}}
4152 % \end{macrocode}
4153 %
4154 % Allow ``hanging indents'' in long captions
4155 %
4156 %\begin{macro}{\@makecaption}
4157 % \begin{macrocode}
4158 \long\def\@makecaption#1#2{%
4159 \vskip 10pt
4160 \setbox\@tempboxa\hbox{#1: #2}%
4161 \ifdim \wd\@tempboxa >\hsize % IF longer than one line:
4162 \begin{list}{#1:}{%
4163 \settowidth{\labelwidth}{#1:}
4164 \setlength{\leftmargin}{\labelwidth}
4165 \addtolength{\leftmargin}{\labelsep}
4166 }\item #2 \end{list}\par % Output in quote mode
4167 \else % ELSE center.
4168 \hbox to\hsize{\hfil\box\@tempboxa\hfil}
4169 \fi}
4170 % \end{macrocode}
4171 %\end{macro}
4172 % Define strut macros for skipping spaces above and below text in a
4173 % tabular environment.
4174 % \begin{macrocode}
4175 \def\abovestrut#1{\rule[0in]{0in}{#1}\ignorespaces}
4176 \def\belowstrut#1{\rule[-#1]{0in}{#1}\ignorespaces}
4177 % \end{macrocode}
4178 %\begin{macro}{\acks}
4179 % Acknowledgements
4180 % \begin{macrocode}
4181 \newcommand{\acks}[1]{\section*{Acknowledgments}#1}
4182 % \end{macrocode}
4183 %\end{macro}
4184 % Research Note
4185 %\begin{macro}{\researchnote}
4186 % \begin{macrocode}
4187 \newcommand{\researchnote}[1]{\noindent {\LARGE\itshape Research Note} #1}
4188 % \end{macrocode}
4189 %\end{macro}
4190 %
4191 %Other macros now moved to \sty{jmlrutils}.
4192 %
4193 %\begin{macro}{\ifprint}
4194 % Provide command to check if this is the printed greyscale
4195 % version or the online colour version.
4196 % \begin{macrocode}
4197 \providecommand{\ifprint}[2]{\ifgrayscale#1\else#2\fi}
4198 % \end{macrocode}
4199 %\end{macro}
4200 %
4201 % Modify \cs{includegraphics} so that it can pick up the greyscale
4202 % version of images if this is the print version. (Extension
4203 % shouldn't be specified.)
4204 % \begin{macrocode}
4205 \ifjmlrhtml
4206 \else
4207 \let\@org@Ginclude@graphics\Ginclude@graphics
4208 % \end{macrocode}
4209 % Since \sty{graphics} 2019/07/01, the file name parsing has changed
4210 % to allow for UTF-8 characters. So provide patches for the old and
4211 % new versions and work out which one to use.
4212 %\changes{1.25}{2020-01-17}{added check for graphics.sty version}
4213 %\begin{macro}{\@jmlr@old@Ginclude@graphics}
4214 %\changes{1.25}{2020-01-17}{new}
4215 %This is a patched version of the old \cs{Ginclude@graphics}.
4216 % \begin{macrocode}
4217 \def\@jmlr@old@Ginclude@graphics#1{%
4218 \begingroup
4219 \let\input@path\Ginput@path
4220 \ifprint{\filename@parse{#1-gray}}{\filename@parse{#1}}%
4221 \ifx\filename@ext\relax
4222 \@for\Gin@temp:=\Gin@extensions\do{%
4223 \ifx\Gin@ext\relax
4224 \Gin@getbase\Gin@temp
4225 \fi}%
4226 \else
4227 \ifprint{\filename@parse{#1}}{}%
4228 \Gin@getbase{\Gin@sepdefault\filename@ext}%
4229 \ifx\Gin@ext\relax
4230 \@warning{File `#1' not found}%
4231 \def\Gin@base{\filename@area\filename@base}%
4232 \edef\Gin@ext{\Gin@sepdefault\filename@ext}%
4233 \fi
4234 \fi
4235 \ifx\Gin@ext\relax
4236 \ifprint{\@org@Ginclude@graphics{#1}}%
4237 {%
4238 \@latex@error{File `#1' not found}%
4239 {I could not locate the file with any of these extensions:^^J%
4240 \Gin@extensions^^J\@ehc}%
4241 }%
4242 \else
4243 \@ifundefined{Gin@rule@\Gin@ext}%
4244 {\ifx\Gin@rule@*\@undefined
4245 \@latex@error{Unknown graphics extension: \Gin@ext}\@ehc
4246 \else
4247 \expandafter\Gin@setfile\Gin@rule@*{\Gin@base\Gin@ext}%
4248 \fi}%
4249 {\expandafter\expandafter\expandafter\Gin@setfile
4250 \csname Gin@rule@\Gin@ext\endcsname{\Gin@base\Gin@ext}}%
4251 \fi
4252 \endgroup}
4253 % \end{macrocode}
4254 %\end{macro}
4255 %\begin{macro}{\@jmlr@new@Ginclude@graphics}
4256 %\changes{1.25}{2020-01-17}{new}
4257 %This is a patch of the new version.
4258 % \begin{macrocode}
4259 \def\@jmlr@new@Ginclude@graphics#1{%
4260 \ifx\detokenize\@undefined\else
4261 \edef\Gin@extensions{\detokenize\expandafter{\Gin@extensions}}%
4262 \fi
4263 \begingroup
4264 \let\input@path\Ginput@path
4265 \ifprint{\set@curr@file{#1-gray}}{\set@curr@file{#1}}%
4266 \expandafter\filename@parse\expandafter{\@curr@file}%
4267 \ifx\filename@ext\Gin@gzext
4268 \expandafter\filename@parse\expandafter{\filename@base}%
4269 \ifx\filename@ext\relax
4270 \let\filename@ext\Gin@gzext
4271 \else
4272 \edef\Gin@ext{\Gin@ext\Gin@sepdefault\Gin@gzext}%
4273 \fi
4274 \fi
4275 \let\@jmlr@filename@ext\filename@ext
4276 \ifx\filename@ext\relax
4277 \@for\Gin@temp:=\Gin@extensions\do{%
4278 \ifx\Gin@ext\relax
4279 \Gin@getbase\Gin@temp
4280 \fi}%
4281 \ifprint
4282 {\ifx\Gin@ext\relax
4283 \set@curr@file{#1}%
4284 \expandafter\filename@parse\expandafter{\@curr@file}%
4285 \ifx\filename@ext\Gin@gzext
4286 \expandafter\filename@parse\expandafter{\filename@base}%
4287 \ifx\filename@ext\relax
4288 \let\filename@ext\Gin@gzext
4289 \else
4290 \edef\Gin@ext{\Gin@ext\Gin@sepdefault\Gin@gzext}%
4291 \fi
4292 \fi
4293 \let\@jmlr@filename@ext\filename@ext
4294 \ifx\filename@ext\relax
4295 \@for\Gin@temp:=\Gin@extensions\do{%
4296 \ifx\Gin@ext\relax
4297 \Gin@getbase\Gin@temp
4298 \fi}%
4299 \fi
4300 \fi}{}%
4301 \fi
4302 \ifx\@jmlr@filename@ext\relax
4303 \else
4304 \Gin@getbase{\Gin@sepdefault\filename@ext}%
4305 \ifx\Gin@ext\relax
4306 \let\Gin@savedbase\filename@base
4307 \let\Gin@savedext\filename@ext
4308 \edef\filename@base{\filename@base\Gin@sepdefault\filename@ext}%
4309 \let\filename@ext\relax
4310 \@for\Gin@temp:=\Gin@extensions\do{%
4311 \ifx\Gin@ext\relax
4312 \Gin@getbase\Gin@temp
4313 \fi}%
4314 \ifx\Gin@ext\relax
4315 \let\filename@base\Gin@savedbase
4316 \let\filename@ext\Gin@savedext
4317 \fi
4318 \fi
4319 \ifx\Gin@ext\relax
4320 \@warning{File `#1' not found}%
4321 \def\Gin@base{\filename@area\filename@base}%
4322 \edef\Gin@ext{\Gin@sepdefault\filename@ext}%
4323 \fi
4324 \fi
4325 \ifx\Gin@ext\relax
4326 \@latex@error{File `#1' not found}%
4327 {I could not locate the file with any of these extensions:^^J%
4328 \Gin@extensions^^J\@ehc}%
4329 \else
4330 \@ifundefined{Gin@rule@\Gin@ext}%
4331 {\ifx\Gin@rule@*\@undefined
4332 \@latex@error{Unknown graphics extension: \Gin@ext}\@ehc
4333 \else
4334 \expandafter\Gin@setfile\Gin@rule@*{\Gin@base\Gin@ext}%
4335 \fi}%
4336 {\expandafter\expandafter\expandafter\Gin@setfile
4337 \csname Gin@rule@\Gin@ext\endcsname{\Gin@base\Gin@ext}}%
4338 \fi
4339 \endgroup
4340 }
4341 % \end{macrocode}
4342 %\end{macro}
4343 %Determine which one to use:
4344 % \begin{macrocode}
4345 \@ifpackagelater{graphics}{2019/07/01}
4346 {\let\Ginclude@graphics\@jmlr@new@Ginclude@graphics}%
4347 {\let\Ginclude@graphics\@jmlr@old@Ginclude@graphics}%
4348 \fi
4349 % \end{macrocode}
4350 %
4351 %\begin{macro}{\artappendix}
4352 % Switch to appendices in an article
4353 % \begin{macrocode}
4354 \newcommand{\artappendix}{\par
4355 \setcounter{section}{0}
4356 \setcounter{subsection}{0}
4357 \def\thesection{\Alph{section}}
4358 % \end{macrocode}
4359 %\changes{1.12}{2012/01/05}{added chapter to \cs{theHsection} to ensure unique
4360 %hyperlink names in book}
4361 % \begin{macrocode}
4362 \def\theHsection{\theHchapter.\Alph{section}}
4363 \def\presectionnum{Appendix~}%
4364 }
4365 % \end{macrocode}
4366 %\end{macro}
4367 % The default assumes a stand-alone article.
4368 %\begin{macro}{\appendix}
4369 % \begin{macrocode}
4370 \let\appendix\artappendix
4371 % \end{macrocode}
4372 %\end{macro}
4373 %
4374 %\begin{macro}{\booklinebreak}
4375 %\changes{1.18}{2013-10-17}{new}
4376 % Provided for book production editors to fine tune the book
4377 % line breaking. Does nothing in the standalone article.
4378 % \begin{macrocode}
4379 \newcommand{\booklinebreak}[1][]{}
4380 % \end{macrocode}
4381 %\end{macro}
4382 %
4383 %\subsection{Compatibility with combine.cls}
4384 %
4385 % Define chapters to make this class play nicely with \cls{combine}.
4386 % These definitions are just copied from book.cls
4387 % \begin{macrocode}
4388 \newcounter{chapter}
4389 \renewcommand\thechapter{\@arabic\c@chapter}
4390 \newcommand\@chapapp{\chaptername}
4391 % \end{macrocode}
4392 % Add sections to the chapter reset.
4393 % \begin{macrocode}
4394 \@addtoreset{section}{chapter}
4395 % \end{macrocode}
4396 %\begin{macro}{\chaptermark}
4397 % \begin{macrocode}
4398 \newcommand*\chaptermark[1]{}
4399 % \end{macrocode}
4400 %\end{macro}
4401 % Chapters should only be defined when we're combining documents
4402 % into a book.
4403 %\begin{macro}{\bookchapter}
4404 % \begin{macrocode}
4405 \newcommand\bookchapter{%
4406 \if@openright\cleardoublepage\else\clearpage\fi
4407 \thispagestyle{plain}%
4408 \global\@topnum\z@
4409 \@afterindentfalse
4410 \secdef\@chapter\@schapter}
4411 % \end{macrocode}
4412 %\end{macro}
4413 %\begin{macro}{\artchapter}
4414 % Disable chapters for articles.
4415 % \begin{macrocode}
4416 \newcommand\artchapter{%
4417 \ClassError{jmlr}{Chapters not permitted in articles}{}}
4418 % \end{macrocode}
4419 %\end{macro}
4420 %\begin{macro}{\chapter}
4421 % The default assumes a stand-alone document.
4422 % \begin{macrocode}
4423 \let\chapter\artchapter
4424 % \end{macrocode}
4425 %\end{macro}
4426 % Label for the chapter entries in the toc.
4427 % \begin{macrocode}
4428 \def\@chaptoclabel{chapter}
4429 % \end{macrocode}
4430 %\begin{macro}{\@chapter}
4431 % Numbered chapters
4432 % \begin{macrocode}
4433 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
4434 \refstepcounter{chapter}%
4435 \if@mainmatter
4436 \typeout{\@chapapp\space\thechapter.}%
4437 \addcontentsline{toc}{\@chaptoclabel}%
4438 {\protect\numberline{\thechapter}#1}%
4439 \else
4440 \addcontentsline{toc}{\@chaptoclabel}{#1}%
4441 \fi
4442 \else
4443 \addcontentsline{toc}{\@chaptoclabel}{#1}%
4444 \fi
4445 \chaptermark{#1}%
4446 \addtocontents{lof}{\protect\addvspace{10\p@}}%
4447 \addtocontents{lot}{\protect\addvspace{10\p@}}%
4448 \if@twocolumn
4449 \@topnewpage[\@makechapterhead{#2}]%
4450 \else
4451 \@makechapterhead{#2}%
4452 \@afterheading
4453 \fi}
4454 % \end{macrocode}
4455 %\end{macro}
4456 %\begin{macro}{\chaptertitleformat}
4457 % Formats the chapter title
4458 % \begin{macrocode}
4459 \newcommand{\chaptertitleformat}[1]{%
4460 \Huge\bfseries#1%
4461 }
4462 % \end{macrocode}
4463 %\end{macro}
4464 %\begin{macro}{\chapternumberformat}
4465 % Formats the chapter number
4466 % \begin{macrocode}
4467 \newcommand{\chapternumberformat}[1]{%
4468 \huge\bfseries \@chapapp\space#1\par\nobreak
4469 \vskip 20\p@
4470 }
4471 % \end{macrocode}
4472 %\end{macro}
4473 %\begin{macro}{\chapterformat}
4474 % Overall format for chapter headings
4475 % \begin{macrocode}
4476 \newcommand*{\chapterformat}{\raggedright}
4477 % \end{macrocode}
4478 %\end{macro}
4479 %\begin{macro}{\postchapterskip}
4480 % Vertical gap after chapter heading
4481 % \begin{macrocode}
4482 \newlength\postchapterskip
4483 \setlength\postchapterskip{40pt}
4484 % \end{macrocode}
4485 %\end{macro}
4486 %\begin{macro}{\prechapterskip}
4487 % Vertical gap before chapter heading
4488 % \begin{macrocode}
4489 \newlength\prechapterskip
4490 \setlength\prechapterskip{50pt}
4491 % \end{macrocode}
4492 %\end{macro}
4493 %\begin{macro}{\@makechapterhead}
4494 % Chapter heading for numbered chapters
4495 % \begin{macrocode}
4496 \def\@makechapterhead#1{%
4497 \null\vskip\prechapterskip
4498 {\parindent \z@ \normalfont\chapterformat
4499 \ifnum \c@secnumdepth >\m@ne
4500 \if@mainmatter
4501 \chapternumberformat{\thechapter}%
4502 \fi
4503 \fi
4504 \interlinepenalty\@M
4505 \chaptertitleformat{#1}\par\nobreak
4506 \vskip \postchapterskip
4507 }}
4508 % \end{macrocode}
4509 %\end{macro}
4510 %\begin{macro}{\@schapter}
4511 % Unnumbered chapters.
4512 % \begin{macrocode}
4513 \def\@schapter#1{\if@twocolumn
4514 \@topnewpage[\@makeschapterhead{#1}]%
4515 \else
4516 \@makeschapterhead{#1}%
4517 \@afterheading
4518 \fi}
4519 % \end{macrocode}
4520 %\end{macro}
4521 %\begin{macro}{\@makeschapterhead}
4522 % Layout for unnumbered chapter headings
4523 % \begin{macrocode}
4524 \def\@makeschapterhead#1{%
4525 \vspace*{\prechapterskip}%
4526 {\parindent \z@
4527 \normalfont\chapterformat
4528 \interlinepenalty\@M
4529 \chaptertitleformat{#1}\par\nobreak
4530 \vskip \postchapterskip
4531 }}
4532 % \end{macrocode}
4533 %\end{macro}
4534 %\begin{macro}{\l@chapter}
4535 % Format for chapter entry in toc
4536 % \begin{macrocode}
4537 \newcommand*\l@chapter[2]{%
4538 \ifnum \c@tocdepth >\m@ne
4539 \addpenalty{-\@highpenalty}%
4540 \vskip 1.0em \@plus\p@
4541 \setlength\@tempdima{1.5em}%
4542 \begingroup
4543 \parindent \z@ \rightskip \@pnumwidth
4544 \parfillskip -\@pnumwidth
4545 \leavevmode \large\bfseries
4546 \advance\leftskip\@tempdima
4547 \hskip -\leftskip
4548 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
4549 \penalty\@highpenalty
4550 \endgroup
4551 \fi}
4552 % \end{macrocode}
4553 %\end{macro}
4554 %\begin{macro}{\l@appendix}
4555 % Make appendix entries in the toc the same as that for chapters
4556 % by default
4557 % \begin{macrocode}
4558 \let\l@appendix\l@chapter
4559 % \end{macrocode}
4560 %\end{macro}
4561 %\begin{macro}{\chaptername}
4562 % \begin{macrocode}
4563 \newcommand\chaptername{Chapter}
4564 % \end{macrocode}
4565 %\end{macro}
4566 %\begin{macro}{\frontmatter}
4567 % Start the front matter (in book)
4568 % \begin{macrocode}
4569 \newcommand\frontmatter{%
4570 \cleardoublepage
4571 \@mainmatterfalse
4572 \renewcommand*{\theHchapter}{front-\thechapter}%
4573 \pagenumbering{roman}%
4574 \morefrontmatter
4575 }
4576 \newcommand\morefrontmatter{}
4577 % \end{macrocode}
4578 %\end{macro}
4579 %\begin{macro}{\mainmatter}
4580 % Start the main matter (in book)
4581 % \begin{macrocode}
4582 \newcommand\mainmatter{%
4583 \cleardoublepage
4584 \@mainmattertrue
4585 \setcounter{chapter}{0}%
4586 \renewcommand*{\theHchapter}{\thechapter}%
4587 \pagenumbering{arabic}%
4588 \moremainmatter
4589 }
4590 \newcommand\moremainmatter{}
4591 % \end{macrocode}
4592 %\end{macro}
4593 %\begin{macro}{\backmatter}
4594 % Start the back matter (in book)
4595 % \begin{macrocode}
4596 \newcommand\backmatter{%
4597 \if@openright
4598 \cleardoublepage
4599 \else
4600 \clearpage
4601 \fi
4602 \@mainmatterfalse}
4603 % \end{macrocode}
4604 %\end{macro}
4605 %
4606 %\begin{macro}{\booktocpreamble}
4607 %\changes{1.09}{2010/12/01}{new}
4608 % \begin{macrocode}
4609 \newcommand*{\booktocpreamble}{}
4610 % \end{macrocode}
4611 %\end{macro}
4612 %
4613 %\begin{macro}{\booktocpostamble}
4614 %\changes{1.14}{2012-04-24}{new}
4615 % \begin{macrocode}
4616 \newcommand*{\booktocpostamble}{}
4617 % \end{macrocode}
4618 %\end{macro}
4619 %
4620 %\begin{macro}{\booktableofcontents}
4621 % This is for the main table of contents when using
4622 % the combine class file, and is not for use in individual
4623 % articles.
4624 %\changes{1.14}{2012-04-24}{reset page headers at end of toc}
4625 % \begin{macrocode}
4626 \newcommand\booktableofcontents{%
4627 \if@twocolumn
4628 \@restonecoltrue\onecolumn
4629 \else
4630 \@restonecolfalse
4631 \fi
4632 \chapter*{\contentsname
4633 \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
4634 \booktocpreamble
4635 \@starttoc{toc}%
4636 \booktocpostamble
4637 \if@restonecol
4638 \twocolumn
4639 \else
4640 \clearpage
4641 \fi
4642 \@mkboth{}{}%
4643 }
4644 % \end{macrocode}
4645 %\end{macro}
4646 %\begin{macro}{\arttableofcontents}
4647 % Table of contents for individual articles.
4648 % \begin{macrocode}
4649 \let\arttableofcontents\tableofcontents
4650 % \end{macrocode}
4651 %\end{macro}
4652 %\begin{macro}{\artpart}
4653 % A part in an article
4654 % \begin{macrocode}
4655 \newcommand{\artpart}{%
4656 % \end{macrocode}
4657 %\changes{1.10}{2011-01-05}{set \cs{toclevel@part}}
4658 % \begin{macrocode}
4659 \def\toclevel@part{0}%
4660 \if@noskipsec \leavevmode\fi
4661 \par
4662 \addvspace{4ex}%
4663 \@afterindentfalse
4664 \secdef\@artpart\@sartpart
4665 }
4666 \let\@artpart\@part
4667 \let\@sartpart\@spart
4668 % \end{macrocode}
4669 %\end{macro}
4670 %\begin{macro}{\bookpart}
4671 % A part in a book forming a collection of articles
4672 % \begin{macrocode}
4673 \newcommand\bookpart{%
4674 % \end{macrocode}
4675 %\changes{1.10}{2011-01-05}{set \cs{toclevel@part}}
4676 % \begin{macrocode}
4677 \def\toclevel@part{-1}%
4678 \if@openright
4679 \cleardoublepage
4680 \else
4681 \clearpage
4682 \fi
4683 \thispagestyle{plain}%
4684 \if@twocolumn
4685 \onecolumn
4686 \@tempswatrue
4687 \else
4688 \@tempswafalse
4689 \fi
4690 \preparthook
4691 \secdef\@bookpart\@sbookpart}
4692 % \end{macrocode}
4693 %\end{macro}
4694 %\begin{macro}{\parttitleformat}
4695 % Format of the title for a part (in a book)
4696 % \begin{macrocode}
4697 \newcommand{\parttitleformat}[1]{%
4698 \Huge\bfseries#1%
4699 }
4700 % \end{macrocode}
4701 %\end{macro}
4702 %
4703 % Part labels
4704 % \begin{macrocode}
4705 \newcommand*{\@parttoclabel}{part}
4706 % \end{macrocode}
4707 %
4708 %\begin{macro}{\@partapp}
4709 %\changes{1.09}{2010/12/01}{new}
4710 % \begin{macrocode}
4711 \def\@partapp{\partname}
4712 % \end{macrocode}
4713 %\end{macro}
4714 %
4715 %\begin{macro}{\partnumberformat}
4716 % Format of the part number (in a book)
4717 % \begin{macrocode}
4718 \newcommand{\partnumberformat}[1]{%
4719 \Huge\bfseries \@partapp\nobreakspace#1\par\nobreak
4720 \vskip 20\p@
4721 }
4722 % \end{macrocode}
4723 %\end{macro}
4724 %\begin{macro}{\preparthook}
4725 % Hook at the start of a part (in a book)
4726 % \begin{macrocode}
4727 \newcommand{\preparthook}{\null\vfil}
4728 % \end{macrocode}
4729 %\end{macro}
4730 %\begin{macro}{\partformat}
4731 % Overall format of part
4732 % \begin{macrocode}
4733 \newcommand*{\partformat}{\centering}
4734 % \end{macrocode}
4735 %\end{macro}
4736 %
4737 %\begin{macro}{\@bookpart}
4738 % Numbered book part format
4739 % \begin{macrocode}
4740 \def\@bookpart[#1]#2{%
4741 \ifnum \c@secnumdepth >-2\relax
4742 \refstepcounter{part}%
4743 \addcontentsline{toc}{\@parttoclabel}{\protect\numberline{\thepart}#1}%
4744 \else
4745 \addcontentsline{toc}{\@parttoclabel}{#1}%
4746 \fi
4747 \markboth{}{}%
4748 {\interlinepenalty \@M
4749 \normalfont\partformat
4750 \ifnum \c@secnumdepth >-2\relax
4751 \partnumberformat{\thepart}%
4752 \fi
4753 \parttitleformat{#2}\par}%
4754 \postparthook}
4755 % \end{macrocode}
4756 %\end{macro}
4757 %\begin{macro}{\@sbookpart}
4758 % Unnumbered book part format
4759 % \begin{macrocode}
4760 \def\@sbookpart#1{%
4761 {\interlinepenalty \@M
4762 \normalfont\partformat
4763 \parttitleformat{#1}\par}%
4764 \postparthook}
4765 % \end{macrocode}
4766 %\end{macro}
4767 %\begin{macro}{\postparthook}
4768 % Hook after part heading
4769 % \begin{macrocode}
4770 \def\postparthook{\vfil\newpage
4771 \if@twoside
4772 \if@openright
4773 \null
4774 \thispagestyle{empty}%
4775 \newpage
4776 \fi
4777 \fi
4778 \if@tempswa
4779 \twocolumn
4780 \fi}
4781 % \end{macrocode}
4782 %\end{macro}
4783 %\begin{macro}{\bookappendix}
4784 % Switch to appendices in book
4785 %\changes{1.17}{2012/05/30}{added def \cs{@write@jmlr@import}}
4786 % \begin{macrocode}
4787 \newcommand\bookappendix{\par
4788 \setcounter{table}{0}%
4789 \setcounter{figure}{0}%
4790 \zeroextracounters
4791 \par
4792 \gdef\theHchapter{\Alph {chapter}}%
4793 \xdef\Hy@chapapp{\Hy@appendixstring}%
4794 \setcounter{chapter}{0}%
4795 \setcounter{section}{0}%
4796 \gdef\@chapapp{\appendixname}%
4797 \gdef\thechapter{\@Alph\c@chapter}%
4798 \def\@write@jmlr@import{\@@write@jmlr@apdimport}%
4799 \csname appendixmore\endcsname
4800 }
4801 % \end{macrocode}
4802 %\end{macro}
4803 % Define commands to switch between book/article modes
4804 %\begin{macro}{\jmlrbookcommands}
4805 % Switch to book commands
4806 % \begin{macrocode}
4807 \newcommand*{\jmlrbookcommands}{%
4808 \let\part\bookpart
4809 \let\chapter\bookchapter
4810 \let\appendix\bookappendix
4811 \let\tableofcontents\booktableofcontents
4812 \def\thesection{\thechapter.\arabic{section}}%
4813 }
4814 % \end{macrocode}
4815 %\end{macro}
4816 %\begin{macro}{\jmlarticlecommands}
4817 % Switch to article commands
4818 % \begin{macrocode}
4819 \newcommand*{\jmlrarticlecommands}{%
4820 \let\part\artpart
4821 \let\chapter\artchapter
4822 \let\appendix\artappendix
4823 \let\tableofcontents\arttableofcontents
4824 \def\thesection{\arabic{section}}%
4825 }
4826 % \end{macrocode}
4827 %\end{macro}
4828 % Check for packages that are known to cause problems when
4829 % combining articles into a book.
4830 % Since \cls{jmlrbook} is now deprecated some errors can be
4831 % converted to warnings, which are suppressed by default.
4832 %\begin{macro}{\@jmlr@check@warn}
4833 %\changes{1.29}{2022-01-29}{new}
4834 % \begin{macrocode}
4835 \newcommand*{\@jmlr@check@warn}[1]{}
4836 % \end{macrocode}
4837 %\end{macro}
4838 %\begin{macro}{\@jmlr@check@packages}
4839 % \begin{macrocode}
4840 \newcommand*{\@jmlr@check@packages}{%
4841 \@ifpackageloaded{epsfig}{%
4842 \ClassError{jmlr}{Obsolete package `epsfig' detected.
4843 \MessageBreak
4844 Please use \string\includegraphics\space to include images
4845 instead}{}}{}%
4846 \@ifpackageloaded{psfig}{%
4847 \ClassError{jmlr}{Obsolete package `psfig' detected.
4848 \MessageBreak
4849 Please use \string\includegraphics\space to include images
4850 instead}{}}{}%
4851 \@ifpackageloaded{subfig}{%
4852 \@jmlr@check@warn{Package `subfig' detected.\MessageBreak
4853 This will cause a conflict if the article is incorporated
4854 \MessageBreak
4855 into a book using jmlbook.cls.
4856 \MessageBreak
4857 Please use \string\subfigure\space and
4858 \string\subtable\space instead}}{}%
4859 \@ifpackageloaded{theorem}{%
4860 \ClassError{jmlr}{Package `theorem' detected.\MessageBreak
4861 This can cause a conflict with other packages used by jmlr}{}}{}%
4862 \@ifpackageloaded{ntheorem}{%
4863 \ClassError{jmlr}{Package `ntheorem' detected.\MessageBreak
4864 This can cause a conflict with other packages used by jmlr}{}}{}%
4865 \@ifpackageloaded{amsthm}{%
4866 \ClassError{jmlr}{Package `amsthm' detected.\MessageBreak
4867 This package conflicts with the jmlr class}{}}{}%
4868 \@ifpackageloaded{pdfpages}%
4869 {\@jmlr@check@warn{Package `pdfpages' detected.\MessageBreak
4870 This can cause a problem for jmlrbook}}{}%
4871 \@ifpackageloaded{geometry}%
4872 {\@jmlr@check@warn{Package `geometry' detected.\MessageBreak
4873 This can cause a problem for jmlrbook}}{}%
4874 \@ifpackageloaded{tabularx}{%
4875 \ClassError{jmlr}{Package `tabularx' detected.\MessageBreak
4876 This will break footnote links}{}}{}%
4877 % \end{macrocode}
4878 %\changes{1.21}{2015-02-24}{Added check for jmlr2e package}
4879 % \begin{macrocode}
4880 \@ifpackageloaded{jmlr2e}{%
4881 \ClassError{jmlr}{Package `jmlr2e' detected.\MessageBreak
4882 This can't be used with the jmlr class}{}}{}%
4883 }
4884 \AtBeginDocument{%
4885 \@jmlr@check@packages
4886 \let\@jmlr@check@packages\relax
4887 }
4888 % \end{macrocode}
4889 %\end{macro}
4890 %\begin{macro}{\jmlrSuppressPackageChecks}
4891 % Don't check for potentially problematic packages.
4892 % \begin{macrocode}
4893 \newcommand*{\jmlrSuppressPackageChecks}{%
4894 \let\@jmlr@check@packages\relax
4895 }
4896 % \end{macrocode}
4897 %\end{macro}
4898 % Discourage authors from using obsolete commands:
4899 %\begin{macro}{\obsoletefontcs}
4900 % \begin{macrocode}
4901 \DeclareRobustCommand*{\obsoletefontcs}[1]{%
4902 \ClassWarning{jmlr}{Obsolete command
4903 \expandafter\string\csname#1\endcsname\space detected}%
4904 \csname #1 \endcsname
4905 }
4906 % \end{macrocode}
4907 %\end{macro}
4908 %\begin{macro}{\bf}
4909 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4910 % \begin{macrocode}
4911 \renewcommand*{\bf}{%
4912 \obsoletefontcs{bf}%
4913 }
4914 % \end{macrocode}
4915 %\end{macro}
4916 %\begin{macro}{\it}
4917 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4918 % \begin{macrocode}
4919 \renewcommand*{\it}{%
4920 \obsoletefontcs{it}%
4921 }
4922 % \end{macrocode}
4923 %\end{macro}
4924 %\begin{macro}{\sc}
4925 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4926 % \begin{macrocode}
4927 \renewcommand*{\sc}{%
4928 \obsoletefontcs{sc}%
4929 }
4930 % \end{macrocode}
4931 %\end{macro}
4932 %\begin{macro}{\rm}
4933 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4934 % \begin{macrocode}
4935 \renewcommand*{\rm}{%
4936 \obsoletefontcs{rm}%
4937 }
4938 % \end{macrocode}
4939 %\end{macro}
4940 %\begin{macro}{\sf}
4941 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4942 % \begin{macrocode}
4943 \renewcommand*{\sf}{%
4944 \obsoletefontcs{sf}%
4945 }
4946 % \end{macrocode}
4947 %\end{macro}
4948 %\begin{macro}{\tt}
4949 %\changes{1.17}{2012/05/30}{added redefinition to produce obsolete warning}
4950 % \begin{macrocode}
4951 \renewcommand*{\tt}{%
4952 \obsoletefontcs{tt}%
4953 }
4954 % \end{macrocode}
4955 %\end{macro}
4956 %
4957 %\begin{macro}{\jmlrcheckforpseudocode}
4958 %\changes{1.21}{2015-02-24}{Added check for pseudocode package}
4959 % Check for \sty{pseudocode} package since it conflicts with
4960 % the \sty{algorithm} package and quite often both packages
4961 % are used in the same book or proceedings.
4962 % \begin{macrocode}
4963 \providecommand*{\jmlrcheckforpseudocode}{%
4964 \@ifpackageloaded{pseudocode}%
4965 {%
4966 \let\pseudoRETURN\RETURN
4967 \let\pseudoTRUE\TRUE
4968 \let\pseudoFALSE\FALSE
4969 \let\pseudoAND\AND
4970 \let\pseudoOR\OR
4971 \let\pseudoNOT\NOT
4972 \let\pseudoTO\TO
4973 \let\pseudoCOMMENT\COMMENT
4974 \let\pseudoIF\IF
4975 \let\pseudoELSE\ELSE
4976 \let\pseudoFOR\FOR
4977 \let\pseudoFORALL\FORALL
4978 \let\pseudoWHILE\WHILE
4979 \let\pseudoREPEAT\REPEAT
4980 \let\pseudoUNTIL\UNTIL
4981 \let\pseudoENDFOR\ENDFOR
4982 \let\RETURN\undefined
4983 \let\TRUE\undefined
4984 \let\FALSE\undefined
4985 \let\AND\undefined
4986 \let\OR\undefined
4987 \let\NOT\undefined
4988 \let\TO\undefined
4989 \let\COMMENT\undefined
4990 \let\IF\undefined
4991 \let\ELSE\undefined
4992 \let\FOR\undefined
4993 \let\FORALL\undefined
4994 \let\WHILE\undefined
4995 \let\REPEAT\undefined
4996 \let\UNTIL\undefined
4997 \let\ENDFOR\undefined
4998 \preto\pseudocode{%
4999 \let\RETURN\pseudoRETURN
5000 \let\TRUE\pseudoTRUE
5001 \let\FALSE\pseudoFALSE
5002 \let\AND\pseudoAND
5003 \let\OR\pseudoOR
5004 \let\NOT\pseudoNOT
5005 \let\TO\pseudoTO
5006 \let\COMMENT\pseudoCOMMENT
5007 \let\IF\pseudoIF
5008 \let\ELSE\pseudoELSE
5009 \let\FOR\pseudoFOR
5010 \let\FORALL\pseudoFORALL
5011 \let\WHILE\pseudoWHILE
5012 \let\REPEAT\pseudoREPEAT
5013 \let\UNTIL\pseudoUNTIL
5014 \let\ENDFOR\pseudoENDFOR
5015 }%
5016 }%
5017 {}%
5018 }
5019 \jmlrcheckforpseudocode
5020 % \end{macrocode}
5021 %\end{macro}
5022 %\iffalse
5023 % \begin{macrocode}
5024 %</jmlr.cls>
5025 % \end{macrocode}
5026 %\fi
5027 %\iffalse
5028 % \begin{macrocode}
5029 %<*jmlrbook.cls>
5030 % \end{macrocode}
5031 %\fi
5032 %\section{jmlrbook.cls Code}
5033 % Class file for books composed of articles using the \clsfmt{jmlr} class.
5034 % \begin{macrocode}
5035 \NeedsTeXFormat{LaTeX2e}
5036 % \end{macrocode}
5037 % Declare class:
5038 % \begin{macrocode}
5039 \ProvidesClass{jmlrbook}[2022/02/09 v1.30 (NLCT) JMLR Book Style]
5040 % \end{macrocode}
5041 % Need \sty{xkeyval} package to have key=value class options
5042 % \begin{macrocode}
5043 \RequirePackage{xkeyval}
5044 % \end{macrocode}
5045 % Requires double spacing for the title page
5046 % \begin{macrocode}
5047 \RequirePackage{setspace}
5048 % \end{macrocode}
5049 %
5050 % Path used to determine if the preface is in the main
5051 % document or in a separate file.
5052 %\begin{macro}{\jmlrprefacefile}
5053 %\changes{1.20}{2014/10/15}{new}
5054 % \begin{macrocode}
5055 \newcommand*\jmlrprefacepath{}
5056 % \end{macrocode}
5057 %\end{macro}
5058 % The \sty{fink} package is now deprecated, so only use it if
5059 % \sty{currfile} isn't installed.
5060 % \begin{macrocode}
5061 \IfFileExists{currfile.sty}%
5062 {
5063 \RequirePackage{currfile}
5064 \renewcommand*\jmlrprefacepath{\currfilepath}
5065 }%
5066 {%
5067 % \end{macrocode}
5068 %\changes{1.11}{2011-03-24}{fink package now required}
5069 % \begin{macrocode}
5070 \RequirePackage{fink}
5071 \ifdef\finkpath
5072 {%
5073 \renewcommand*\jmlrprefacepath{\finkpath}%
5074 }
5075 {%
5076 % \end{macrocode}
5077 % \sty{fink} version too old.
5078 % \begin{macrocode}
5079 \ClassWarning{jmlrbook}{`currfile' package required}
5080 }
5081 }
5082 % \end{macrocode}
5083 % Some packages need to be loaded before \sty{hyperref} so provide a
5084 % hook to do this:
5085 %\changes{1.12}{2012/01/05}{changed \cs{newcommand} to \cs{providecommand}}
5086 % \begin{macrocode}
5087 \providecommand*{\jmlrprehyperref}{}
5088 % \end{macrocode}
5089 %\begin{macro}{\ifgrayscale}
5090 % Determine whether to select color or grayscale
5091 % \begin{macrocode}
5092 \newif\ifgrayscale
5093 \grayscalefalse
5094 % \end{macrocode}
5095 %\end{macro}
5096 %\begin{option}{draft}
5097 %\changes{1.18}{2013-10-17}{new}
5098 % \begin{macrocode}
5099 \DeclareOptionX{draft}{\setlength\overfullrule{5pt}}
5100 % \end{macrocode}
5101 %\end{option}
5102 %\begin{option}{final}
5103 %\changes{1.18}{2013-10-17}{new}
5104 % \begin{macrocode}
5105 \DeclareOptionX{final}{\setlength\overfullrule{0pt}}
5106 % \end{macrocode}
5107 %\end{option}
5108 %\begin{option}{color}
5109 % \begin{macrocode}
5110 \DeclareOptionX{color}{\grayscalefalse}
5111 % \end{macrocode}
5112 %\end{option}
5113 %\begin{option}{gray}
5114 % \begin{macrocode}
5115 \DeclareOptionX{gray}{\grayscaletrue}
5116 % \end{macrocode}
5117 %\end{option}
5118 % Pass \clsopt{letterpaper} and \clsopt{7x10} to \clsfmt{jmlr}.
5119 %\begin{option}{letterpaper}
5120 % \begin{macrocode}
5121 \DeclareOptionX{letterpaper}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5122 % \end{macrocode}
5123 %\end{option}
5124 %\begin{option}{7x10}
5125 % \begin{macrocode}
5126 \DeclareOptionX{7x10}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5127 % \end{macrocode}
5128 %\end{option}
5129 % Pass \clsopt{html} and \clsopt{nohtml} to \clsfmt{jmlr}.
5130 % (Used by \app{makejmlrbookgui})
5131 %\begin{option}{html}
5132 % \begin{macrocode}
5133 \DeclareOptionX{html}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5134 % \end{macrocode}
5135 %\end{option}
5136 %\begin{option}{nohtml}
5137 % \begin{macrocode}
5138 \DeclareOptionX{nohtml}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5139 % \end{macrocode}
5140 %\end{option}
5141 %\begin{macro}{\jmlrprefaceheader}
5142 %\changes{1.20}{2014/10/15}{new}
5143 % \begin{macrocode}
5144 \newcommand*{\jmlrprefaceheader}{%
5145 \phantomsection
5146 \chapter*{\prefacename}%
5147 \addcontentsline{toc}{chapter}{\prefacename}%
5148 \markboth{\prefacename}{\prefacename}%
5149 }
5150 % \end{macrocode}
5151 %\end{macro}
5152 % Pass \clsopt{wcp}, \clsopt{pmlr} and \clsopt{nowcp} options to \clsfmt{jmlr} and
5153 % set preface header.
5154 %\begin{option}{wcp}
5155 %\changes{1.21}{2015-02-24}{No longer changes preface header}
5156 % \begin{macrocode}
5157 \DeclareOptionX{wcp}{%
5158 \PassOptionsToClass{\CurrentOption}{jmlr}%
5159 }
5160 % \end{macrocode}
5161 %\end{option}
5162 %\begin{option}{pmlr}
5163 %\changes{1.23}{2017-03-09}{new}
5164 % \begin{macrocode}
5165 \DeclareOptionX{pmlr}{%
5166 \PassOptionsToClass{\CurrentOption}{jmlr}%
5167 }
5168 % \end{macrocode}
5169 %\end{option}
5170 %\begin{option}{nowcp}
5171 %\changes{1.21}{2015-02-24}{No longer changes preface header}
5172 % \begin{macrocode}
5173 \DeclareOptionX{nowcp}{%
5174 \PassOptionsToClass{\CurrentOption}{jmlr}%
5175 }
5176 % \end{macrocode}
5177 %\end{option}
5178 % Pass \clsopt{tablecaptiontop} and \clsopt{tablecaptionbottom} options
5179 % to \clsfmt{jmlr}.
5180 %\begin{option}{tablecaptiontop}
5181 % \begin{macrocode}
5182 \DeclareOptionX{tablecaptiontop}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5183 % \end{macrocode}
5184 %\end{option}
5185 %\begin{option}{tablecaptionbottom}
5186 % \begin{macrocode}
5187 \DeclareOptionX{tablecaptionbottom}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5188 % \end{macrocode}
5189 %\end{option}
5190 %
5191 % Pass font size commands to \clsfmt{jmlr}
5192 %\changes{1.10}{2011-01-05}{Added 10pt, 11pt and 12pt options to
5193 %jmlrbook}
5194 %\begin{option}{10pt}
5195 % \begin{macrocode}
5196 \DeclareOptionX{10pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5197 % \end{macrocode}
5198 %\end{option}
5199 %\begin{option}{11pt}
5200 % \begin{macrocode}
5201 \DeclareOptionX{11pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5202 % \end{macrocode}
5203 %\end{option}
5204 %\begin{option}{12pt}
5205 % \begin{macrocode}
5206 \DeclareOptionX{12pt}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5207 % \end{macrocode}
5208 %\end{option}
5209 %
5210 % Switch on two-side mode by default
5211 % \begin{macrocode}
5212 \@twosidetrue
5213 % \end{macrocode}
5214 %\begin{option}{oneside}
5215 %\changes{1.22}{2015/04/11}{new}
5216 %\changes{1.28}{2020-09-21}{pass option to jmlr.cls}
5217 % \begin{macrocode}
5218 \DeclareOptionX{oneside}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5219 % \end{macrocode}
5220 %\end{option}
5221 %\begin{option}{twoside}
5222 %\changes{1.22}{2015/04/11}{new}
5223 %\changes{1.28}{2020-09-21}{pass option to jmlr.cls}
5224 % \begin{macrocode}
5225 \DeclareOptionX{twoside}{\PassOptionsToClass{\CurrentOption}{jmlr}}
5226 % \end{macrocode}
5227 %\end{option}
5228 %
5229 %\begin{option}{pdfxa}
5230 %\changes{1.13}{2012/02/25}{new}
5231 % \begin{macrocode}
5232 \define@boolkey{jmlrbook.cls}[jmlr]{pdfxa}[true]{}
5233 \jmlrpdfxafalse
5234 % \end{macrocode}
5235 %\end{option}
5236 % Process options
5237 % \begin{macrocode}
5238 \ProcessOptionsX
5239 % \end{macrocode}
5240 % If \ics{jmlrgrayscale} has been defined, let it override the
5241 % class options. If it is defined, it should be set to 0 for the
5242 % online version and any other number for the grayscale print
5243 % version.
5244 % \begin{macrocode}
5245 \@ifundefined{jmlrgrayscale}{}%
5246 {%
5247 \ifnum\jmlrgrayscale=0\relax
5248 \grayscalefalse
5249 \else
5250 \grayscaletrue
5251 \fi
5252 }
5253 % \end{macrocode}
5254 %
5255 % This next bit is a modification of \sty{pdfx}. It's only used for
5256 % the print version when the \clsopt{pdfxa} option is used.
5257 %\changes{1.13}{2012/02/25}{added support for pdfx-1a}
5258 % \begin{macrocode}
5259 \ifgrayscale
5260 \newcommand*{\jmlrwritepdfinfo}{%
5261 \protected@write\@auxout{}{\string\jmlrbook@info{\xmpAuthor}{\xmpTitle}}%
5262 }
5263 \ifjmlrpdfxa
5264 \def\convertDate{\getYear}
5265 {\catcode`\D=12
5266 \gdef\getYear D:#1#2#3#4{\edef\xYear{#1#2#3#4}\getMonth}
5267 }
5268 \def\getMonth#1#2{\edef\xMonth{#1#2}\getDay}
5269 \def\getDay#1#2{\edef\xDay{#1#2}\getHour}
5270 \def\getHour#1#2{\edef\xHour{#1#2}\getMin}
5271 \def\getMin#1#2{\edef\xMin{#1#2}\getSec}
5272 \def\getSec#1#2{\edef\xSec{#1#2}\getTZh}
5273 {%
5274 \catcode`\Z=12
5275 \gdef\tmpz{Z}
5276 }
5277 \def\hash{\expandafter\@gobble\string\#}%
5278 \def\amp{\expandafter\@gobble\string\&}%
5279 \def\xmpAmp{\amp\hash x0026;}%
5280 \def\sep{</rdf:li><rdf:li>}
5281 \def\TextCopyright{\amp\hash x00A9;}
5282 \def\Title#1{\gdef\xmpTitle{#1}}
5283 \def\Author#1{\gdef\xmpAuthor{#1}}
5284 \def\Keywords#1{\gdef\xmpKeywords{#1}}
5285 \let\xmpKeywords\@empty
5286 \let\xmpSubject\xmpKeywords
5287 \def\Creator#1{\gdef\xmpCreator{#1}}
5288 \def\xmpCreator{\@pdfcreator}
5289 \def\Producer#1{\gdef\xmpProducer{#1}}
5290 \def\xmpProducer{pdfTeX}
5291 \def\Volume#1{\gdef\xmpVolume{#1}}
5292 \let\xmpVolume\@empty
5293 \def\Issue#1{\gdef\xmpIssue{#1}}
5294 \let\xmpIssue\@empty
5295 \def\CoverDisplayDate#1{\gdef\xmpCoverDisplayDate{#1}}
5296 \let\xmpCoverDisplayDate\@empty
5297 \def\CoverDate#1{\gdef\xmpCoverDate{#1}}
5298 \let\xmpCoverDate\@empty
5299 \def\Copyright#1{\gdef\xmpCopyright{#1}}
5300 \let\xmpCopyright\@empty
5301 \def\Doi#1{\gdef\xmpDoi{#1}}
5302 \let\xmpDoi\@empty
5303 \def\Lastpage#1{\gdef\xmpLastpage{#1}}
5304 \let\xmpLastpage\@empty
5305 \def\Firstpage#1{\gdef\xmpFirstpage{#1}}
5306 \let\xmpFirstpage\@empty
5307 \def\Journaltitle#1{\gdef\xmpJournaltitle{#1}}
5308 \let\xmpJournaltitle\@empty
5309 \def\Journalnumber#1{\gdef\xmpJournalnumber{#1}}
5310 \let\xmpJournalnumber\@empty
5311 \def\Org#1{\gdef\xmpOrg{#1}}
5312 \let\xmpOrg\@empty
5313 \def\CreatorTool#1{\gdef\xmpCreatorTool{#1}}
5314 \def\xmpCreatorTool{\xmpProducer}
5315 \def\AuthoritativeDomain#1{\gdef\xmpAuthoritativeDomain{#1}}
5316 \let\xmpAuthoritativeDomain\@empty
5317 \def\findUUID#1{\edef\tmpstring{\pdfmdfivesum{#1}}
5318 \expandafter\eightofnine\tmpstring\end}
5319 \def\eightofnine#1#2#3#4#5#6#7#8#9\end{%
5320 \xdef\eightchars{#1#2#3#4#5#6#7#8}
5321 \fouroffive#9\end}
5322 \def\fouroffive#1#2#3#4#5\end{\xdef\ffourchars{#1#2#3#4}
5323 \sfouroffive#5\end}
5324 \def\sfouroffive#1#2#3#4#5\end{\xdef\sfourchars{#1#2#3#4}
5325 \tfouroffive#5\end}
5326 \def\tfouroffive#1#2#3#4#5\end{\xdef\tfourchars{#1#2#3#4}
5327 \xdef\laststring{#5}}
5328 \def\uuid{\eightchars-%
5329 \ffourchars-%
5330 \sfourchars-%
5331 \tfourchars-%
5332 \laststring}
5333 % \end{macrocode}
5334 %
5335 %\begin{macro}{\getTZh}
5336 %\changes{1.14}{2012-04-24}{fixed for times zones other than Z}
5337 % This is a modification of the command from \sty{pdfx} that also
5338 % works for zero and negative hours.
5339 % \begin{macrocode}
5340 \def\getTZh#1{%
5341 \def\TZprefix{#1}%
5342 \ifx\TZprefix\tmpz
5343 \def\xTZsign{+}%
5344 \def\xTZh{00}%
5345 \def\xTZm{00}%
5346 \let\getTZnext\doConvDate
5347 \else
5348 \let\xTZsign\TZprefix
5349 \let\getTZnext\getTZhm
5350 \fi
5351 \getTZnext
5352 }
5353 % \end{macrocode}
5354 %\end{macro}
5355 %
5356 %\begin{macro}{\getTZm}
5357 % This is a modified version of the command from \sty{pdfx}.
5358 % \begin{macrocode}
5359 \def\getTZhm#1#2'#3#4'{%
5360 \edef\xTZh{#1#2}%
5361 \edef\xTZm{#3#4}%
5362 \doConvDate
5363 }
5364 % \end{macrocode}
5365 %\end{macro}
5366 %\begin{macro}{\doConvDate}
5367 % Defines the date using information derived from parsing
5368 % \ics{pdfcreationdate}
5369 % \begin{macrocode}
5370 \def\doConvDate{%
5371 \edef\convDate{\xYear-\xMonth-\xDay
5372 T\xHour:\xMin:\xSec\xTZsign\xTZh:\xTZm}%
5373 }
5374 % \end{macrocode}
5375 %\end{macro}
5376 %\begin{macro}{\@pre@hyperref}
5377 % This macro contains a trimmed down version of \sty{pdfx}.
5378 % \begin{macrocode}
5379 \newcommand{\@pre@hyperref}{%
5380 \IfFileExists{FOGRA39L.icc}%
5381 {%
5382 \pdfminorversion=3
5383 \pdfpageattr{/MediaBox[0 0 595 793]
5384 /BleedBox[0 0 595 793]
5385 /TrimBox[25 20 570 773]}%
5386 \findUUID{\jobname.pdf}%
5387 \edef\xmpdocid{\uuid}%
5388 \findUUID{\pdfcreationdate}%
5389 \edef\xmpinstid{\uuid}%
5390 \InputIfFileExists{\jobname.xmpdata}{}{}%
5391 \RequirePackage{xmpincl}%
5392 \expandafter\convertDate\pdfcreationdate
5393 \def\@pctchar{\expandafter\@gobble\string\%}
5394 \def\@bchar{\expandafter\@gobble\string\\}
5395 \immediate\pdfobj stream attr{/N 4} file{FOGRA39L.icc}
5396 \edef\OBJ@CVR{\the\pdflastobj}
5397 \pdfcatalog{/OutputIntents [ <<
5398 /Type/OutputIntent
5399 /S/GTS_PDFX
5400 /OutputCondition (FOGRA39)
5401 /OutputConditionIdentifier (FOGRA39 \@bchar(ISO Coated v2
5402 300\@pctchar\space \@bchar(ECI\@bchar)\@bchar))
5403 /DestOutputProfile \OBJ@CVR\space 0 R
5404 /RegistryName(http://www.color.org)
5405 >> ]}
5406 \input glyphtounicode.tex
5407 \input glyphtounicode-cmr.tex
5408 \pdfgentounicode=1
5409 \RequirePackage[draft,pdftex,pdfpagemode=UseNone,bookmarks=false]{hyperref}%
5410 }%
5411 {%
5412 \ClassError{jmlrbook}{Can't find `FOGRA39L.icc'}%
5413 {Download ISOcoated\string_v2\string_330\string_bas.icc from
5414 http://www.colormanagement.org/en/isoprofile.html
5415 Rename it FOGRA39L.icc and put it in the pdfx folder}%
5416 }%
5417 }
5418 \renewcommand*{\jmlrwritepdfinfo}{%
5419 \begingroup
5420 \let\&=\xmpAmp
5421 \IfFileExists{pdfx-1a.xmp}{%
5422 \pdfcompresslevel=0
5423 \immediate\pdfobj stream attr {/Type /Metadata /Subtype /XML}
5424 file{pdfx-1a.xmpi}
5425 \pdfcatalog{/Metadata \the\pdflastobj\space 0 R}
5426 }%
5427 {}%
5428 \endgroup
5429 \protected@write\@auxout{}{\string\jmlrbook@info{\xmpAuthor}{\xmpTitle}}%
5430 \pdfinfo{
5431 /Author(\xmpAuthor)%
5432 /Title(\xmpTitle)%
5433 /Creator(\xmpProducer)%
5434 /CreationDate(\convDate)%
5435 /ModDate(\convDate)%
5436 /Producer(\xmpProducer)%
5437 /Trapped /False
5438 /GTS_PDFXVersion (PDF/X-1:2001)%
5439 /GTS_PDFXConformance (PDF/X-1a:2001)%
5440 }%
5441 }
5442 % \end{macrocode}
5443 %\end{macro}
5444 % \begin{macrocode}
5445 \fi
5446 \else
5447 \newcommand*{\jmlrwritepdfinfo}{}
5448 \fi
5449 % \end{macrocode}
5450 %
5451 %\begin{macro}{\jmlrbook@info}
5452 %\changes{1.14}{2012-04-24}{new}
5453 % Not needed (information provided for MakeJmlrBookGUI)
5454 % \begin{macrocode}
5455 \newcommand*{\jmlrbook@info}[2]{}
5456 % \end{macrocode}
5457 %\end{macro}
5458 %\begin{macro}{\jmlrbook@location}
5459 %\changes{1.20}{2014/10/15}{new}
5460 % Not needed (information provided for MakeJmlrBookGUI)
5461 % \begin{macrocode}
5462 \newcommand*{\jmlrbook@location}[1]{}
5463 % \end{macrocode}
5464 %\end{macro}
5465 %\begin{macro}{\@post@hyperref}
5466 %\changes{1.16}{2012/05/15}{new}
5467 % \begin{macrocode}
5468 \newcommand*{\@post@hyperref}{%
5469 \let\@org@c@lenddoca\c@lenddoca
5470 \let\c@lenddoca\undefined
5471 }
5472 % \end{macrocode}
5473 %\end{macro}
5474 %
5475 % Load \cls{combine} class. This requires a little bit of trickery.
5476 % \begin{macrocode}
5477 \let\@org@LoadClass\LoadClass
5478 \def\LoadClass#1{\let\LoadClass\@org@LoadClass\@org@LoadClass{jmlr}}
5479 \@org@LoadClass{combine}
5480 \let\c@lenddoca\@org@c@lenddoca
5481 % \end{macrocode}
5482 % Requires \sty{combnat} to work with \sty{natbib}:
5483 % \begin{macrocode}
5484 \RequirePackage{combnat}
5485 % \end{macrocode}
5486 % Need to apply a patch to \sty{combnat} (this has now been fixed
5487 % in \sty{combnat}, but user might be using an old version):
5488 % \begin{macrocode}
5489 \renewcommand\c@laNAT@parse[1]{{%
5490 \let\protect=\@unexpandable@protect\let~\relax
5491 \let\active@prefix=\@gobble
5492 \xdef\NAT@temp{\csname b@#1\@extra@b@citeb\endcsname}}%
5493 \expandafter\NAT@split\NAT@temp?????@@%
5494 \expandafter\NAT@parse@date\NAT@date??????@@%
5495 \ifciteindex\NAT@index\fi}
5496
5497 \renewcommand\c@lbNAT@parse[1]{{%
5498 \let\protect=\@unexpandable@protect\let~\relax
5499 \let\active@prefix=\@gobble
5500 \xdef\NAT@temp{\csname B?\jobname?@#1\@extra@b@citeb\endcsname}}%
5501 \expandafter\NAT@split\NAT@temp?????@@%
5502 \expandafter\NAT@parse@date\NAT@date??????@@%
5503 \ifciteindex\NAT@index\fi}
5504 % \end{macrocode}
5505 % Start new chapters on the right hand page:
5506 % \begin{macrocode}
5507 \newif\if@openright
5508 \@openrighttrue
5509 \newif\if@mainmatter
5510 % \end{macrocode}
5511 % Define commands that affect the formatting:
5512 %\begin{macro}{\pagerule}
5513 % Draw line across the text block.
5514 % \begin{macrocode}
5515 \newcommand*{\pagerule}[1][0pt]{\par\noindent
5516 \rule[#1]{\linewidth}{2pt}\par}
5517 % \end{macrocode}
5518 %\end{macro}
5519 %
5520 %\begin{environment}{preface}
5521 % The preface environment starts a new chapter but also writes
5522 % information to the main aux file for \app{makejmlrbook}. The
5523 % optional argument is the file name for the extracted preface.
5524 %\changes{1.11}{2011-03-24}{new}
5525 %\changes{1.13}{2012/02/25}{changed the chapter to an unnumbered one}
5526 % \begin{macrocode}
5527 \ifjmlrhtml
5528 \newenvironment{preface}[1][preface]%
5529 {%
5530 \noindent\HCode{<h2>\prefacename</h2>}%
5531 }%
5532 {%
5533 }
5534 \else
5535 \newenvironment{preface}[1][preface]%
5536 {%
5537 % \end{macrocode}
5538 %\changes{1.19}{2014/09/29}{changed to unstarred chapter}
5539 % \begin{macrocode}
5540 \jmlrprefaceheader
5541 \protected@write\@mainauxout
5542 {}{\string\@prefacestart{\thepage}{\arabic{page}}}%
5543 \protected@write\@mainauxout{}{\string\@prefacefile{\jmlrprefacepath}{#1}}%
5544 }%
5545 {%
5546 \protected@write\@mainauxout{}{\string\@prefaceend{\thepage}}%
5547 }
5548 \fi
5549 % \end{macrocode}
5550 %\end{environment}
5551 %\begin{macro}{\prefacename}
5552 %\changes{1.11}{2011-03-24}{new}
5553 % \begin{macrocode}
5554 \newcommand*{\prefacename}{Preface}
5555 % \end{macrocode}
5556 %\end{macro}
5557 %\begin{macro}{\@prefacefile}
5558 % \begin{macrocode}
5559 \newcommand*{\@prefacefile}[2]{}
5560 % \end{macrocode}
5561 %\end{macro}
5562 %\begin{macro}{\@prefacestart}
5563 % \begin{macrocode}
5564 \newcommand*{\@prefacestart}[2]{}
5565 % \end{macrocode}
5566 %\end{macro}
5567 %\begin{macro}{\@prefaceend}
5568 % \begin{macrocode}
5569 \newcommand*{\@prefaceend}[1]{}
5570 % \end{macrocode}
5571 %\end{macro}
5572 %\begin{macro}{\@prefaceeditor}
5573 % \begin{macrocode}
5574 \newcommand*{\@prefaceeditor}[1]{}
5575 % \end{macrocode}
5576 %\end{macro}
5577 %
5578 % Cross-reference chapters:
5579 % \begin{macrocode}
5580 \newcommand*{\chapterrefname}{Chapter}
5581 \newcommand*{\chaptersrefname}{Chapters}
5582 % \end{macrocode}
5583 %\begin{macro}{\chapterref}
5584 % \begin{macrocode}
5585 \newcommand*{\chapterref}[1]{%
5586 \objectref{#1}{\chapterrefname}{\chaptersrefname}{}{}}
5587 % \end{macrocode}
5588 %\end{macro}
5589 %
5590 % Cross-referencing imported articles:
5591 %\begin{macro}{\articlepageref}
5592 % Page number of start of article
5593 % \begin{macrocode}
5594 \newcommand*{\articlepageref}[1]{%
5595 \pageref{#1jmlrstart}%
5596 }
5597 % \end{macrocode}
5598 %\end{macro}
5599 %\begin{macro}{\articlepagesref}
5600 % Page range of article
5601 % \begin{macrocode}
5602 \newcommand*{\articlepagesref}[1]{%
5603 \pageref{#1jmlrstart}--\pageref{#1jmlrend}%
5604 }
5605 % \end{macrocode}
5606 %\end{macro}
5607 %\begin{macro}{\@articlepagesref}
5608 % Page range of article for use within the article
5609 % \begin{macrocode}
5610 \newcommand*{\@articlepagesref}{%
5611 \pageref{jmlrstart}--\pageref{jmlrend}%
5612 }
5613 % \end{macrocode}
5614 %\end{macro}
5615 %\begin{macro}{\articletitleref}
5616 % Reference the short title of an imported article
5617 % \begin{macrocode}
5618 \newcommand*{\articletitleref}[1]{\nameref{#1jmlrstart}}
5619 % \end{macrocode}
5620 %\end{macro}
5621 %\begin{macro}{\articleauthorref}
5622 % Reference the authors of an imported article
5623 % \begin{macrocode}
5624 \newcommand*{\articleauthorref}[1]{%
5625 \@ifundefined{@jmlr@author@#1}%
5626 {%
5627 \ClassWarning{jmlrbook}{Label `#1' undefined}%
5628 }%
5629 {%
5630 \@nameuse{@jmlr@author@#1}%
5631 }%
5632 }
5633 % \end{macrocode}
5634 %\end{macro}
5635 %
5636 %\begin{macro}{\jmlrtitlehook}
5637 %\changes{1.20}{2014/10/15}{changed \cs{let} to \cs{def}}
5638 % Extra title information
5639 % \begin{macrocode}
5640 \renewcommand*\jmlrtitlehook{%
5641 \hypersetup{pdftitle={\@shorttitle}}%
5642 \def\xmpTitle{\@shorttitle}%
5643 \let\jmlrtitlehook\relax
5644 }
5645 \providecommand*{\xmpTitle}{\@title}%
5646 % \end{macrocode}
5647 %\end{macro}
5648 %
5649 %\begin{macro}{\jmlrauthorhook}
5650 %\changes{1.20}{2014/10/15}{changed \cs{let} to \cs{def}}
5651 % \begin{macrocode}
5652 \renewcommand*\jmlrauthorhook{%
5653 \ifx\@sauthor\@empty
5654 \hypersetup{pdfauthor={\@author}}%
5655 \else
5656 \hypersetup{pdfauthor={\@sauthor}}%
5657 \fi
5658 \def\xmpAuthor{\@sauthor}%
5659 \let\jmlrauthorhook\relax
5660 \let\@shortauthor\@empty
5661 }
5662 \providecommand*\xmpAuthor{\@author}%
5663 % \end{macrocode}
5664 %\end{macro}
5665 %\begin{macro}{\subtitle}
5666 % \begin{macrocode}
5667 \newcommand*{\@subtitle}{}
5668 \newcommand*{\subtitle}[1]{\renewcommand*{\@subtitle}{#1}}
5669 % \end{macrocode}
5670 %\end{macro}
5671 %\begin{macro}{\volume}
5672 % \begin{macrocode}
5673 \newcommand*{\@volume}{\@jmlrvolume}
5674 \newcommand*{\volume}[1]{%
5675 \renewcommand*{\@volume}{#1}%
5676 \ifjmlrpdfxa
5677 \let\xmpVolume\@volume
5678 \fi
5679 }
5680 % \end{macrocode}
5681 %\end{macro}
5682 %\begin{macro}{\jmlrissue}
5683 % \begin{macrocode}
5684 \newcommand*{\@issue}{\@jmlrissue}
5685 \newcommand*{\issue}[1]{%
5686 \renewcommand*{\@issue}{#1}%
5687 \ifjmlrpdfxa
5688 \let\xmpIssue\@issue
5689 \fi
5690 }
5691 % \end{macrocode}
5692 %\end{macro}
5693 %\begin{macro}{\thejmlrworkshop}
5694 % Provided in the event that it's required for the title page.
5695 % \begin{macrocode}
5696 \newcommand*{\thejmlrworkshop}{\@jmlrworkshop}
5697 % \end{macrocode}
5698 %\end{macro}
5699 %\begin{macro}{\team}
5700 % \begin{macrocode}
5701 \newcommand*{\@team}{}
5702 \newcommand*{\team}[1]{\renewcommand*{\@team}{#1}}
5703 % \end{macrocode}
5704 %\end{macro}
5705 %\begin{macro}{\jmlrlocation}
5706 %\changes{1.20}{2014/10/15}{new}
5707 % \begin{macrocode}
5708 \newcommand*{\@jmlrlocation}{}
5709 \newcommand*{\jmlrlocation}[1]{%
5710 \renewcommand*{\@jmlrlocation}{#1}%
5711 \protected@write\@auxout{}{\string\jmlrbook@location{#1}}%
5712 }
5713 % \end{macrocode}
5714 %\end{macro}
5715 %\begin{macro}{\@productioneditorname}
5716 % \begin{macrocode}
5717 \newcommand*{\@productioneditorname}{Production Editor}
5718 % \end{macrocode}
5719 %\end{macro}
5720 %\begin{macro}{\productioneditor}
5721 % \begin{macrocode}
5722 \newcommand*{\@productioneditor}{}
5723 \newcommand*{\productioneditor}[1]{%
5724 \renewcommand*{\@productioneditor}{#1}%
5725 \renewcommand*{\@productioneditorname}{Production Editor}%
5726 }
5727 % \end{macrocode}
5728 %\end{macro}
5729 %\begin{macro}{\productioneditors}
5730 % \begin{macrocode}
5731 \newcommand*{\productioneditors}[1]{%
5732 \renewcommand*{\@productioneditor}{#1}%
5733 \renewcommand*{\@productioneditorname}{Production Editors}%
5734 }
5735 % \end{macrocode}
5736 %\end{macro}
5737 %\begin{macro}{\logo}
5738 % Title page image
5739 %\changes{1.17}{2012/05/30}{added optional argument}
5740 % \begin{macrocode}
5741 \newcommand*{\@logo}{}
5742 \newcommand*{\logo}[2][]{%
5743 \ifjmlrhtml
5744 \def\@logo@tmp{#1}%
5745 \ifx\@logo@tmp\@empty
5746 \renewcommand*{\@logo}{#2}%
5747 \else
5748 \renewcommand*{\@logo}{\HCode{<a href="#1">}#2\HCode{</a>}}%
5749 \fi
5750 \else
5751 \renewcommand*{\@logo}{#2}%
5752 \fi
5753 }
5754 % \end{macrocode}
5755 %\end{macro}
5756 %
5757 %\begin{macro}{\booklinebreak}
5758 %\changes{1.18}{2013-10-17}{new}
5759 % Provided for book production editors to fine tune the book
5760 % line breaking.
5761 % \begin{macrocode}
5762 \renewcommand*{\booklinebreak}[1][4]{\linebreak[#1]}
5763 % \end{macrocode}
5764 %\end{macro}
5765 %
5766 % Set article title
5767 % \begin{macrocode}
5768 \def\c@lbmaketitle{\jmlrmaketitle}
5769 % \end{macrocode}
5770 % The book's title:
5771 %\begin{macro}{\maintitle}
5772 % \begin{macrocode}
5773 \newcommand*{\maintitle}{}
5774 % \end{macrocode}
5775 %\end{macro}
5776 %
5777 % Make it easier to modify the book's title page:
5778 %\begin{macro}{\SetTitleElement}
5779 % \begin{macrocode}
5780 \newcommand*{\SetTitleElement}[3]{%
5781 {%
5782 \expandafter\ifx\csname @#1\endcsname\@empty
5783 \else
5784 #2\csname @#1\endcsname#3%
5785 \fi
5786 }%
5787 }
5788 % \end{macrocode}
5789 %\end{macro}
5790 %
5791 %\begin{macro}{\IfTitleElement}
5792 % Determine if the given element has been set:
5793 % \begin{macrocode}
5794 \newcommand{\IfTitleElement}[3]{%
5795 \expandafter\ifx\csname @#1\endcsname\@empty
5796 #2%
5797 \else
5798 #3%
5799 \fi
5800 }
5801 % \end{macrocode}
5802 %\end{macro}
5803 %
5804 %\begin{macro}{\titlebody}
5805 % \begin{macrocode}
5806 \newcommand{\titlebody}{%
5807 \SetTitleElement{title}{\maintitlefont}{\postmaintitle}%
5808 \SetTitleElement{volume}{\mainvolumefont}{\postmainvolume}%
5809 \SetTitleElement{subtitle}{\mainsubtitlefont}{\postmainsubtitle}%
5810 \SetTitleElement{logo}{\mainlogofont}{\postmainlogo}%
5811 \SetTitleElement{team}{\mainteamfont}{\postmainteam}%
5812 \SetTitleElement{author}{\mainauthorfont}{\postmainauthor}%
5813 \SetTitleElement{productioneditor}{\mainproductioneditorfont}%
5814 {\postmainproductioneditor}%
5815 }
5816 % \end{macrocode}
5817 %\end{macro}
5818 %\begin{macro}{\c@lamaketitle}
5819 % \begin{macrocode}
5820 \ifjmlrhtml
5821 \renewcommand{\c@lamaketitle}{%
5822 \HCode{<table cellpadding="2" cellspacing="2" border="0" width="100\%">}%
5823 \HCode{<tbody><tr><td valign="top">}%
5824 \HCode{<h1>}%
5825 \@title\newline
5826 \ifx\@jmlrvolume\@empty
5827 \ifx\@volume\@empty
5828 \else
5829 Volume \@volume
5830 \ifx\@subtitle\@empty\else: \fi
5831 \fi
5832 \else
5833 Volume \@jmlrvolume
5834 \ifx\@subtitle\@empty\else: \fi
5835 \fi
5836 \@subtitle
5837 \HCode{</h1>}%
5838 \newline
5839 \textbf{Editors: \@author}
5840 \HCode{</td><td valign="top">}%
5841 \@logo
5842 \HCode{</td></tr></tbody></table>}%
5843 \let\maintitle\@title
5844 }
5845 \else
5846 \renewcommand{\c@lamaketitle}{%
5847 \pagenumbering{alph}%
5848 \pagestyle{empty}%
5849 \begin{titlepage}%
5850 \let\footnotesize\small
5851 \let\footnoterule\relax
5852 \let\footnote\thanks
5853 \titlebody
5854 \par
5855 \@thanks
5856 \end{titlepage}%
5857 \setcounter{footnote}{0}%
5858 \let\maintitle\@title
5859 \c@lmtitlempty
5860 }
5861 \fi
5862 % \end{macrocode}
5863 %\end{macro}
5864 %\begin{macro}{\maintitlefont}
5865 % \begin{macrocode}
5866 \renewcommand{\maintitlefont}{%
5867 \null\vskip15pt\relax\par
5868 \flushleft\Huge\bfseries\noindent}
5869 % \end{macrocode}
5870 %\end{macro}
5871 %\begin{macro}{\postmaintitle}
5872 % \begin{macrocode}
5873 \renewcommand{\postmaintitle}{%
5874 \par\relax
5875 }
5876 % \end{macrocode}
5877 %\end{macro}
5878 %\begin{macro}{\mainvolumefont}
5879 % \begin{macrocode}
5880 \newcommand{\mainvolumefont}{%
5881 \flushleft\noindent\LARGE\bfseries Volume
5882 }
5883 % \end{macrocode}
5884 %\end{macro}
5885 %\begin{macro}{\postmainvolume}
5886 % \begin{macrocode}
5887 \newcommand{\postmainvolume}{%
5888 \IfTitleElement{subtitle}{}{:}\par\relax
5889 }
5890 % \end{macrocode}
5891 %\end{macro}
5892 %
5893 %\begin{macro}{\mainissuefont}
5894 % \begin{macrocode}
5895 \newcommand{\mainissuefont}{%
5896 \flushleft\noindent\LARGE\bfseries Issue
5897 }
5898 % \end{macrocode}
5899 %\end{macro}
5900 %\begin{macro}{\postmainissue}
5901 % \begin{macrocode}
5902 \newcommand{\postmainissue}{%
5903 \par\relax
5904 }
5905 % \end{macrocode}
5906 %\end{macro}
5907 %
5908 %\begin{macro}{\mainsubtitlefont}
5909 % \begin{macrocode}
5910 \newcommand{\mainsubtitlefont}{%
5911 \flushleft\LARGE\bfseries\noindent}
5912 % \end{macrocode}
5913 %\end{macro}
5914 %\begin{macro}{\postmainsubtitle}
5915 % \begin{macrocode}
5916 \newcommand{\postmainsubtitle}{\par}
5917 % \end{macrocode}
5918 %\end{macro}
5919 %
5920 %\begin{macro}{\mainlogofont}
5921 % \begin{macrocode}
5922 \newcommand{\mainlogofont}{%
5923 \vfill
5924 \begin{center}}
5925 % \end{macrocode}
5926 %\end{macro}
5927 %\begin{macro}{\postmainlogo}
5928 % \begin{macrocode}
5929 \newcommand{\postmainlogo}{\end{center}\vfill\par}
5930 % \end{macrocode}
5931 %\end{macro}
5932 %
5933 %\begin{macro}{\mainteamfont}
5934 % \begin{macrocode}
5935 \newcommand{\mainteamfont}{\flushleft\bfseries\Large\noindent}
5936 % \end{macrocode}
5937 %\end{macro}
5938 %\begin{macro}{\postmainteam}
5939 % \begin{macrocode}
5940 \newcommand{\postmainteam}{\par}
5941 % \end{macrocode}
5942 %\end{macro}
5943 %\begin{macro}{\mainauthorfont}
5944 % \begin{macrocode}
5945 \renewcommand{\mainauthorfont}{%
5946 \flushleft\Large\itshape\doublespacing\noindent}
5947 % \end{macrocode}
5948 %\end{macro}
5949 %\begin{macro}{\postmainauthor}
5950 % \begin{macrocode}
5951 \renewcommand{\postmainauthor}{%
5952 \par}
5953 % \end{macrocode}
5954 %\end{macro}
5955 %
5956 %\begin{macro}{\mainproductioneditorfont}
5957 % \begin{macrocode}
5958 \newcommand{\mainproductioneditorfont}{%
5959 \flushleft\Large\noindent \@productioneditorname: \itshape}
5960 % \end{macrocode}
5961 %\end{macro}
5962 %\begin{macro}{\postmainproductioneditor}
5963 % \begin{macrocode}
5964 \newcommand{\postmainproductioneditor}{\par}
5965 % \end{macrocode}
5966 %\end{macro}
5967 %
5968 %\begin{macro}{\maindatefont}
5969 % \begin{macrocode}
5970 \renewcommand{\maindatefont}{}
5971 % \end{macrocode}
5972 %\end{macro}
5973 %\begin{macro}{\postmaindate}
5974 % \begin{macrocode}
5975 \renewcommand{\postmaindate}{}
5976 % \end{macrocode}
5977 %\end{macro}
5978 %
5979 %\begin{environment}{signoff}
5980 % Editorial team listed at the end of a preface etc. The mandatory
5981 % argument is the date, the optional argument is the team title.
5982 % Each editor should be separated with \ics{Editor}.
5983 %\changes{1.19}{2014/09/29}{added \cs{nopagebreak}}
5984 % \begin{macrocode}
5985 \ifjmlrhtml
5986 \newenvironment{signoff}[2][The Editorial Team]{%
5987 \def\Editor##1{##1\par\vskip\baselineskip\noindent\ignorespaces}%
5988 \def\@editorialteam{#1}%
5989 \def\@signoffdate{#2}%
5990 \par\vskip\baselineskip\noindent
5991 \ifx\@signoffdate\@empty
5992 \else
5993 \emph{\@signoffdate}\nopagebreak\par
5994 \nopagebreak\vskip\baselineskip\noindent
5995 \fi
5996 \ifx\@editorialteam\@empty
5997 \else
5998 \@editorialteam:\nopagebreak\par\nopagebreak\vskip\baselineskip
5999 \fi
6000 \nopagebreak\noindent\ignorespaces
6001 }%
6002 {%
6003 }%
6004 \else
6005 \newenvironment{signoff}[2][The Editorial Team]{%
6006 \def\Editor##1{%
6007 \protected@write\@mainauxout{}{\string\@prefaceeditor{##1}}%
6008 \begin{tabular}{@{}l@{}}%
6009 ##1%
6010 \end{tabular}%
6011 \par\vskip\baselineskip\noindent\ignorespaces
6012 }%
6013 \def\@editorialteam{#1}%
6014 \def\@signoffdate{#2}%
6015 \par\vskip\baselineskip\noindent
6016 \ifx\@signoffdate\@empty
6017 \else
6018 \emph{\@signoffdate}\par
6019 \vskip\baselineskip\noindent
6020 \fi
6021 \ifx\@editorialteam\@empty
6022 \else
6023 % \end{macrocode}
6024 %\changes{1.21}{2015-02-24}{added \cs{nopagebreak}}
6025 % \begin{macrocode}
6026 \@editorialteam:\nopagebreak\par\vskip\baselineskip
6027 \fi
6028 \nopagebreak\noindent\ignorespaces
6029 }%
6030 {%
6031 }
6032 \fi
6033 % \end{macrocode}
6034 %\end{environment}
6035 %\begin{environment}{authorsignoff}
6036 % An author can sign off at the end of a chapter (such as a
6037 % foreword).
6038 % Each author should be separated with \ics{Author}.
6039 % \begin{macrocode}
6040 \newenvironment{authorsignoff}{%
6041 \def\Author##1{\begin{tabular}{@{}p{\linewidth}@{}}%
6042 ##1%
6043 \end{tabular}%
6044 \par\vskip\baselineskip\noindent\ignorespaces
6045 }%
6046 \par\vskip\baselineskip\noindent\ignorespaces
6047 }{%
6048 }
6049 % \end{macrocode}
6050 %\end{environment}
6051 %
6052 %\begin{macro}{\zeroextracounters}
6053 % Reset counters at the start of each imported article
6054 %\changes{1.15}{2012/05/12}{added algocf and definition to reset}
6055 % \begin{macrocode}
6056 \renewcommand{\zeroextracounters}{%
6057 \@ifundefined{c@theorem}{}{\setcounter{theorem}{0}}%
6058 \@ifundefined{c@algorithm}{}{\setcounter{algorithm}{0}}%
6059 \@ifundefined{c@algocf}{}{\setcounter{algocf}{0}}%
6060 \@ifundefined{c@example}{}{\setcounter{example}{0}}%
6061 \@ifundefined{c@definition}{}{\setcounter{definition}{0}}%
6062 }
6063 % \end{macrocode}
6064 %\end{macro}
6065 %\begin{macro}{\contentsname}
6066 % Redcfine title of the table of contents
6067 % \begin{macrocode}
6068 \renewcommand*{\contentsname}{Table of Contents}
6069 % \end{macrocode}
6070 %\end{macro}
6071 %\begin{macro}{\theHalgorithm}
6072 %\changes{1.12}{2012/01/05}{in definition, changed \cs{thechapter}
6073 %to \cs{theHchapter}}
6074 % \begin{macrocode}
6075 \def\theHalgorithm{\theHchapter.\thealgorithm}
6076 % \end{macrocode}
6077 %\end{macro}
6078 \def\theHexample{\theHchapter.\theexample}
6079 \def\theHtheorem{\theHchapter.\thetheorem}
6080 %\begin{macro}{\theHsection}
6081 % \begin{macrocode}
6082 \def\theHsection{\theHchapter.\thesection}
6083 \def\theHsubsection{\theHchapter.\thesubsection}
6084 \def\theHsubsubsection{\theHchapter.\thesubsubsection}
6085 \def\theHparagraph{\theHchapter.\theparagraph}
6086 % \end{macrocode}
6087 %\end{macro}
6088 %\begin{macro}{\theHsubfigure}
6089 % \begin{macrocode}
6090 \def\theHsubfigure{\theHfigure.\arabic{subfigure}}
6091 \def\theHsubtable{\theHtable.\arabic{subtable}}
6092 % \end{macrocode}
6093 %\end{macro}
6094 %\begin{macro}{\theHfootnote}
6095 %\changes{1.12}{2012/01/05}{new}
6096 % \begin{macrocode}
6097 \def\theHfootnote{\theHchapter.\alpha{footnote}}
6098 % \end{macrocode}
6099 %\end{macro}
6100 %\begin{macro}{\theHtable}
6101 %\changes{1.12}{2012/01/05}{new}
6102 % \begin{macrocode}
6103 \def\theHtable{\theHchapter.\arabic{table}}
6104 % \end{macrocode}
6105 %\end{macro}
6106 %\begin{macro}{\theHfigure}
6107 %\changes{1.12}{2012/01/05}{new}
6108 % \begin{macrocode}
6109 \def\theHfigure{\theHchapter.\arabic{figure}}
6110 % \end{macrocode}
6111 %\end{macro}
6112 %\begin{macro}{\theHalgocf}
6113 %\changes{1.15}{2012/05/12}{new}
6114 % \begin{macrocode}
6115 \def\theHalgocf{\theHchapter.\thealgocf}
6116 % \end{macrocode}
6117 %\end{macro}
6118 %\begin{macro}{\mailto}
6119 % \begin{macrocode}
6120 \renewcommand*{\mailto}[1]{%
6121 \href{mailto:#1}{\nolinkurl{#1}}%
6122 }
6123 % \end{macrocode}
6124 %\end{macro}
6125 % \begin{macrocode}
6126 \c@lhaschapterfalse
6127 \let\c@lthesec\thesection
6128 % \end{macrocode}
6129 % Make sure the hyperlinks work
6130 %\begin{macro}{\doimportchapterHref}
6131 % \begin{macrocode}
6132 \newcommand\doimportchapterHref{%
6133 \edef\@currentHref{chapter.\thechapter}%
6134 }
6135 % \end{macrocode}
6136 %\end{macro}
6137 %\begin{macro}{\toclevel@appendix}
6138 % Set the toc level for the main appendices
6139 % \begin{macrocode}
6140 \def\toclevel@appendix{-1}
6141 % \end{macrocode}
6142 %\end{macro}
6143 %
6144 % \sty{hyperref} and \cls{combine} don't play nicely
6145 % need to fudge the cross-referencing a bit.
6146 %\begin{macro}{\Xprefix}
6147 % \begin{macrocode}
6148 \def\Xprefix{}
6149 % \end{macrocode}
6150 %\end{macro}
6151 %\begin{macro}{\Xref}
6152 % \begin{macrocode}
6153 \DeclareRobustCommand\Xref{\@ifstar\@Xrefstar\T@Xref}%
6154 % \end{macrocode}
6155 %\end{macro}
6156 %\begin{macro}{\Xpageref}
6157 % \begin{macrocode}
6158 \DeclareRobustCommand\Xpageref{%
6159 \@ifstar\@Xpagerefstar\T@Xpageref
6160 }%
6161 % \end{macrocode}
6162 %\end{macro}
6163 %\begin{macro}{\HyRef@StarSetXRef}
6164 % \begin{macrocode}
6165 \def\HyRef@StarSetXRef#1{%
6166 \begingroup
6167 \Hy@safe@activestrue
6168 \edef\x{#1}%
6169 \@onelevel@sanitize\x
6170 \edef\x{\endgroup
6171 \noexpand\HyRef@@StarSetRef
6172 \expandafter\noexpand\csname r@\Xprefix\x\endcsname{\x}%
6173 }%
6174 \x
6175 }
6176 % \end{macocode}
6177 %\end{macro}
6178 %
6179 %\begin{macro}{\@Xrefstar}
6180 % \begin{macrocode}
6181 \def\@Xrefstar#1{%
6182 \HyRef@StarSetXRef{#1}\@firstoffive
6183 }
6184 % \end{macrocode}
6185 %\end{macro}
6186 %\begin{macro}{\@Xpagerefstar}
6187 % \begin{macrocode}
6188 \def\@Xpagerefstar#1{%
6189 \HyRef@StarSetXRef{#1}\@secondoffive
6190 }
6191 % \end{macrocode}
6192 %\end{macro}
6193 %\begin{macro}{\T@Xref}
6194 % \begin{macrocode}
6195 \def\T@Xref#1{%
6196 \Hy@safe@activestrue
6197 \expandafter\@setXref\csname r@\Xprefix#1\endcsname\@firstoffive{#1}%
6198 \Hy@safe@activesfalse
6199 }%
6200 % \end{macrocode}
6201 %\end{macro}
6202 %
6203 %\begin{macro}{\T@Xpageref}
6204 % \begin{macrocode}
6205 \def\T@Xpageref#1{%
6206 \Hy@safe@activestrue
6207 \expandafter\@setXref\csname r@\Xprefix#1\endcsname\@secondoffive{#1}%
6208 \Hy@safe@activesfalse
6209 }%
6210 % \end{macrocode}
6211 %\end{macro}
6212 %
6213 %\begin{macro}{\Xlabel}
6214 % \begin{macrocode}
6215 \def\Xlabel#1{%
6216 \@bsphack
6217 \begingroup
6218 \@onelevel@sanitize\@currentlabelname
6219 \edef\@currentlabelname{%
6220 \expandafter\strip@period\@currentlabelname\relax.\relax\@@@
6221 }%
6222 \protected@write\@mainauxout{}{%
6223 \string\newlabel{\Xprefix#1}{{\@currentlabel}{\thepage}%
6224 {\@currentlabelname}{\@currentHref}{}}%
6225 }%
6226 \endgroup
6227 \@esphack
6228 }
6229 \let\ltx@label\Xlabel
6230 % \end{macrocode}
6231 %\end{macro}
6232 %\begin{macro}{\@setXref}
6233 % \begin{macrocode}
6234 \def\@setXref#1#2#3{% csname, extract group, refname
6235 \ifx#1\relax
6236 \protect\G@refundefinedtrue
6237 \nfss@text{\reset@font\bfseries ??}%
6238 \@latex@warning{%
6239 Reference `#3' on page \thepage \space undefined%
6240 }%
6241 \else
6242 \expandafter\Hy@setref@link#1\@empty\@empty\@nil{#2}%
6243 \fi
6244 }
6245 % \end{macrocode}
6246 %\end{macro}
6247 %\begin{macro}{\@secondoffive}
6248 % Something's redefining \cs{@secondoffive} incorrectly at the
6249 % start of the document when hyperref's draft mode is on. Need
6250 % to fix it.
6251 % \begin{macrocode}
6252 \AtBeginDocument{%
6253 \renewcommand\@secondoffive[5]{#2}%
6254 \jmlrwritepdfinfo
6255 \let\jmlrwritepdfinfo\relax
6256 }
6257 % \end{macrocode}
6258 %\end{macro}
6259 %
6260 % Need to write imported chapter label to main auxfile.
6261 %\begin{macro}{\@setimportlabel}
6262 % \begin{macrocode}
6263 \def\@setimportlabel{%
6264 \let\@mainauxout\@auxout
6265 \let\HRlabel\label
6266 }
6267 % \end{macrocode}
6268 %\end{macro}
6269 % \begin{macrocode}
6270 \AtBeginDocument{\@jmlrbegindoc}
6271 % \end{macrocode}
6272 %\begin{macro}{\@jmlrbegindoc}
6273 % \begin{macrocode}
6274 \newcommand*\@jmlrbegindoc{
6275 \@setimportlabel
6276 \gdef\@setimportlabel{\let\ref\Xref \let\pageref\Xpageref}%
6277 \let\ReadBookmarks\relax
6278 % \end{macrocode}
6279 % Patch to work with \sty{auxhook} if loaded
6280 %\changes{1.18}{2013-10-17}{patched to work with auxhook}
6281 % \begin{macrocode}
6282 \@ifundefined{@beginmainauxhook}{}{\@beginmainauxhook}%
6283 }
6284 % \end{macrocode}
6285 %\end{macro}
6286 % Imported papers modify \ics{InputIfFileExists} so save original
6287 % definition.
6288 % \begin{macrocode}
6289 \let\@org@InputIfFileExists\InputIfFileExists
6290 % \end{macrocode}
6291 %
6292 %\begin{environment}{jmlrpapers}
6293 % \begin{macrocode}
6294 \newenvironment{jmlrpapers}{%
6295 % \end{macrocode}
6296 %\changes{1.09}{2010/12/01}{reset start and end document hook to avoid
6297 %problems caused by packages defining duplicate commands etc}
6298 % \begin{macrocode}
6299 \def\@begindocumenthook{%
6300 \@jmlrbegindoc
6301 \let\bibcite\c@lbNATbibcite
6302 }
6303 \def\@enddocumenthook{%
6304 \@jmlrenddoc
6305 \let\bibcite\c@lbNAT@testdef
6306 }
6307 \begin{papers}[]
6308 % \end{macrocode}
6309 %\changes{1.07}{2010-06-30}{Added check for two column style}
6310 % \begin{macrocode}
6311 \if@twocolumn
6312 \def\@jmlr@restore{\twocolumn}%
6313 \else
6314 \def\@jmlr@restore{\onecolumn}%
6315 \fi
6316 \jmlrarticlecommands
6317 \let\importpubpaper\@importpubpaper
6318 \let\importpaper\@importpaper
6319 \let\importarticle\@importarticle
6320 \let\label\Xlabel
6321 \let\ref\Xref
6322 \pagestyle{article}%
6323 }{%
6324 \@jmlr@restore
6325 \end{papers}
6326 }
6327 % \end{macrocode}
6328 %\end{environment}
6329 %
6330 %\begin{macro}{\addtomaincontents}
6331 % \begin{macrocode}
6332 \newcommand{\addtomaincontents}[2]{%
6333 \protected@write\@mainauxout{\let\label\@gobble\let\index\@gobble
6334 \let\glossary\@gobble}{\string\@writefile{#1}{#2}}%
6335 }
6336 % \end{macrocode}
6337 %\end{macro}
6338 %\begin{macro}{\@write@author}
6339 % \begin{macrocode}
6340 \newcommand*{\@write@author}[2]{%
6341 \def\@jmlr@authors@sep{ and }%
6342 \protected@write\@mainauxout{}{%
6343 \string\@new@articleauthor{#1}{#2}%
6344 }%
6345 }
6346 % \end{macrocode}
6347 %\end{macro}
6348 %\begin{macro}{\@new@articleauthor}
6349 % \begin{macrocode}
6350 \newcommand*{\@new@articleauthor}[2]{%
6351 \expandafter\gdef\csname @jmlr@author@#1\endcsname{%
6352 \hyperref[#1jmlrstart]{#2}}%
6353 }
6354 % \end{macrocode}
6355 %\end{macro}
6356 %
6357 %\begin{macro}{\@@write@jmlr@import}
6358 % The accompanying \app{makejmlrbook} Perl script scans the aux file
6359 % for information. Any articles imported using \ics{importpubpaper},
6360 % \ics{importpaper} or \ics{importarticle} need to write the
6361 % relevant information to the aux file.
6362 % \begin{macrocode}
6363 \newcommand*{\@@write@jmlr@import}[3]{%
6364 \protected@write\@mainauxout{}{\string\@jmlr@import{#1}{#2}{#3}}%
6365 }
6366 % \end{macrocode}
6367 %\end{macro}
6368 %\begin{macro}{\@jmlr@import}
6369 % \LaTeX\ should ignore \cs{@jmlr@import} as it's only needed for
6370 % \app{makejmlrbook}:
6371 % \begin{macrocode}
6372 \newcommand*{\@jmlr@import}[3]{}
6373 % \end{macrocode}
6374 %\end{macro}
6375 %\begin{macro}{\@@write@jmlr@apdimport}
6376 %\changes{1.17}{2012/05/30}{new}
6377 % As above but for files imported in the appendix.
6378 % \begin{macrocode}
6379 \newcommand*{\@@write@jmlr@apdimport}[3]{%
6380 \protected@write\@mainauxout{}{\string\@jmlr@apdimport{#1}{#2}{#3}}%
6381 }
6382 % \end{macrocode}
6383 %\end{macro}
6384 %\begin{macro}{\@jmlr@apdimport}
6385 %\changes{1.17}{2012/05/30}{new}
6386 % As above but for files imported in the appendix.
6387 % \LaTeX\ should ignore \cs{@jmlr@apdimport} as it's only needed for
6388 % \app{makejmlrbookgui}:
6389 % \begin{macrocode}
6390 \newcommand*{\@jmlr@apdimport}[3]{}
6391 % \end{macrocode}
6392 %\end{macro}
6393 %\begin{macro}{\@write@jmlr@import}
6394 % Initialise to \cs{@@write@jmlr@import} and switch to
6395 % \cs{@@write@jmlr@apdimport} in the appendices.
6396 % \begin{macrocode}
6397 \def\@write@jmlr@import{\@@write@jmlr@import}
6398 % \end{macrocode}
6399 %\end{macro}
6400 %
6401 %\begin{macro}{\jmlrpremaketitlehook}
6402 %\changes{1.09}{2010/12/01}{Moved redefinition outside of import
6403 %macros}
6404 % Redefine \cs{jmlrpremaketitlehook}
6405 % \begin{macrocode}
6406 \def\jmlrpremaketitlehook{%
6407 \cleardoublepage
6408 \phantomsection
6409 \let\@currentlabelname\@shorttitle
6410 % \end{macrocode}
6411 %\changes{1.09}{2010/12/01}{Moved \cs{refstepcounter} from
6412 %\cs{jmlrmaketitlehook} to \cs{jmlrpremaketitlehook}}
6413 % \begin{macrocode}
6414 \refstepcounter{chapter}%
6415 }%
6416 % \end{macrocode}
6417 %\end{macro}
6418 %\begin{macro}{\jmlrimporthook}
6419 % Hook just before document is imported.
6420 %\changes{1.09}{2010/12/01}{new}
6421 % \begin{macrocode}
6422 \newcommand*{\jmlrimporthook}{}
6423 % \end{macrocode}
6424 %\end{macro}
6425 %
6426 %\begin{macro}{\importpubpaper}
6427 % Import a document that has already been published.
6428 % Syntax: \cs{importpubpaper}\oarg{label}\marg{dir}\marg{file}\marg{pages}
6429 % where \meta{dir} is the directory in which the paper is located,
6430 % \meta{file} is the name of the file and \meta{pages} indicates
6431 % the page range \emph{for the original version}. The optional
6432 % argument is a label. This is used to prefix the labels and
6433 % citations in the document so they don't clash with other imported
6434 % articles. If omitted, \meta{dir}/\meta{file} is used instead.
6435 % \begin{macrocode}
6436 \newcommand*{\@importpubpaper}[4][\@importdir\@importfile]{%
6437 \bgroup
6438 \def\@importdir{#2/}%
6439 \def\@importfile{#3}%
6440 \@write@jmlr@import{#1}{#2}{#3}%
6441 \def\@extra@b@citeb{#1}%
6442 \def\@extra@binfo{#1}%
6443 \jmlrpages{#4}%
6444 \graphicspath{{\@importdir}}%
6445 \def\jmlrmaketitlehook{%
6446 % \end{macrocode}
6447 %\changes{1.09}{2010/12/01}{Added \cs{label} to \cs{jmlrmaketitlehook}}
6448 % \begin{macrocode}
6449 \label{}%
6450 \def\titlebreak{ }%
6451 \addtomaincontents{toc}%
6452 % \end{macrocode}
6453 %\changes{1.12}{2012/01/05}{changed \cs{@shorttitle} to \cs{@title}}
6454 % \begin{macrocode}
6455 {%
6456 \protect\contentsline{papertitle}{\@title}{\thepage}%
6457 {page.\thepage}}%
6458 \pdfbookmark{\@shorttitle}{chapter.\theHchapter}%
6459 \def\@jmlr@authors@sep{ \& }%
6460 % \end{macrocode}
6461 %\changes{1.12}{2012/01/05}{changed \cs{@jmlrauthors} to \cs{@jmlr@authors}}
6462 % \begin{macrocode}
6463 \tocchapterpubauthor{\@jmlr@authors}%
6464 {%
6465 \@jmlrabbrvproceedings
6466 \ifx\@jmlrvolume\@empty
6467 \ifx\@jmlrpages\@empty\else\space\fi
6468 \else
6469 \space\@jmlrvolume
6470 \ifx\@jmlrissue\@empty
6471 \else
6472 (\@jmlrissue)%
6473 \fi
6474 \ifx\@jmlrpages\@empty\else:\fi
6475 \fi
6476 \ifx\@jmlrpages\@empty
6477 \else
6478 \@jmlrpages
6479 \ifx\@jmlryear\@empty\else,\fi
6480 \fi
6481 \space\@jmlryear
6482 }%
6483 % \end{macrocode}
6484 %\changes{1.12}{2012/01/05}{changed \cs{@jmlrauthors} to \cs{@jmlr@authors}}
6485 % \begin{macrocode}
6486 \@write@author{#1}{\@jmlr@authors}%
6487 }%
6488 \def\InputIfFileExists##1##2##3{%
6489 \IfFileExists{##1}{%
6490 \@org@InputIfFileExists{##1}{##2}{##3}%
6491 }%
6492 {%
6493 \@org@InputIfFileExists{\@importdir##1}{##2}{##3}%
6494 }%
6495 }%
6496 \def\Xprefix{#1}%
6497 \jmlrimporthook
6498 \import{\@importdir\@importfile}%
6499 \def\Xprefix{}%
6500 \egroup
6501 \gdef\@shortauthor{}%
6502 \gdef\@shorttitle{}%
6503 \gdef\@firstauthor{}%
6504 \gdef\@jmlr@authors{\@jmlrauthors}%
6505 \gdef\@jmlrauthors{}%
6506 \gdef\@firstsurname{}%
6507 }
6508 \newcommand{\importpubpaper}[4][]{%
6509 \ClassError{jmlrbook}{\string\importpubpaper\space
6510 not permitted outside `jmlrpapers' environment}{}%
6511 }
6512 % \end{macrocode}
6513 %\end{macro}
6514 %
6515 %\begin{macro}{\importpaper}
6516 % Like \cs{importpubpaper} but sets the pages to the page-range for
6517 % this book.
6518 % \begin{macrocode}
6519 \newcommand{\@importpaper}[3][\@importdir\@importfile]{%
6520 \bgroup
6521 \def\@importdir{#2/}%
6522 \def\@importfile{#3}%
6523 \@write@jmlr@import{#1}{#2}{#3}%
6524 \def\@extra@b@citeb{#1}%
6525 \def\@extra@binfo{#1}%
6526 \jmlrpages{\protect\@articlepagesref}%
6527 \graphicspath{{\@importdir}}%
6528 \def\jmlrmaketitlehook{%
6529 % \end{macrocode}
6530 %\changes{1.09}{2010/12/01}{Added \cs{label} to \cs{jmlrmaketitlehook}}
6531 % \begin{macrocode}
6532 \label{}%
6533 \def\titlebreak{ }%
6534 \addtomaincontents{toc}%
6535 % \end{macrocode}
6536 %\changes{1.12}{2012/01/05}{changed \cs{@shorttitle} to \cs{@title}}
6537 % \begin{macrocode}
6538 {%
6539 \protect\contentsline{papertitle}{\@title}{\thepage}%
6540 {page.\thepage}}%
6541 \pdfbookmark{\@shorttitle}{chapter.\theHchapter}%
6542 \def\@jmlr@authors@sep{ \& }%
6543 % \end{macrocode}
6544 %\changes{1.12}{2012/01/05}{changed \cs{@jmlrauthors} to \cs{@jmlr@authors}}
6545 % \begin{macrocode}
6546 \tocchapterpubauthor{\@jmlr@authors}%
6547 {%
6548 \@jmlrabbrvproceedings
6549 \ifx\@jmlrvolume\@empty
6550 \space
6551 \else
6552 \space\@jmlrvolume
6553 \ifx\@jmlrissue\@empty
6554 \else
6555 (\@jmlrissue)%
6556 \fi
6557 :%
6558 \fi
6559 \protect\articlepagesref{#1}%
6560 \ifx\@jmlryear\@empty\else,\fi
6561 \space\@jmlryear
6562 }%
6563 % \end{macrocode}
6564 %\changes{1.12}{2012/01/05}{changed \cs{@jmlrauthors} to \cs{@jmlr@authors}}
6565 % \begin{macrocode}
6566 \@write@author{#1}{\@jmlr@authors}%
6567 }%
6568 \def\InputIfFileExists##1##2##3{%
6569 \IfFileExists{##1}{%
6570 \@org@InputIfFileExists{##1}{##2}{##3}%
6571 }%
6572 {%
6573 \@org@InputIfFileExists{\@importdir##1}{##2}{##3}%
6574 }%
6575 }%
6576 \def\Xprefix{#1}%
6577 % \end{macrocode}
6578 % Disable \ics{jmlrvolume}, \ics{jmlryear}, \ics{jmlrworkshop} etc
6579 % (since the imported papers belong to the same volume as the
6580 % book---use \ics{importpubpaper} for papers pre-published in
6581 %\changes{1.17}{2012/05/30}{disable \cs{jmlrvolume}, \cs{jmlryear}
6582 %and \cs{jmlrworkshop} in imported papers}
6583 % another volume).
6584 % \begin{macrocode}
6585 \let\jmlrvolume\@gobble
6586 \let\jmlryear\@gobble
6587 \let\jmlrworkshop\@gobble
6588 \let\jmlrissue\@gobble
6589 \let\jmlrpages\@gobble
6590 \jmlrimporthook
6591 \import{\@importdir\@importfile}%
6592 \def\Xprefix{}%
6593 \egroup
6594 \gdef\@shortauthor{}%
6595 \gdef\@shorttitle{}%
6596 \gdef\@firstauthor{}%
6597 \gdef\@jmlr@authors{\@jmlrauthors}%
6598 \gdef\@jmlrauthors{}%
6599 \gdef\@firstsurname{}%
6600 }
6601
6602 \newcommand{\importpaper}[3][]{%
6603 \ClassError{jmlrbook}{\string\importpaper\space
6604 not permitted outside `jmlrpapers' environment}{}%
6605 }
6606 % \end{macrocode}
6607 %\end{macro}
6608 %
6609 %\begin{macro}{\importarticle}
6610 % Import a document that hasn't been published.
6611 % Syntax: \cs{importarticle}\oarg{label}\marg{dir}\marg{file}
6612 % where \meta{dir} is the directory in which the paper is located and
6613 % \meta{file} is the name of the file. The optional
6614 % argument is a label. This is used to prefix the labels and
6615 % citations in the document so they don't clash with other imported
6616 % articles. If omitted, \meta{file} is used instead.
6617 % \begin{macrocode}
6618 \newcommand{\@importarticle}[3][\@importdir\@importfile]{%
6619 \bgroup
6620 \def\@importdir{#2/}%
6621 \def\@importfile{#3}%
6622 \@write@jmlr@import{#1}{#2}{#3}%
6623 \def\@extra@b@citeb{#1}%
6624 \def\@extra@binfo{#1}%
6625 \def\jmlrmaketitlehook{%
6626 \def\titlebreak{ }%
6627 \addtomaincontents{toc}%
6628 % \end{macrocode}
6629 %\changes{1.12}{2012/01/05}{changed \cs{@shorttitle} to \cs{@title}}
6630 % \begin{macrocode}
6631 {%
6632 \protect\contentsline{papertitle}{\@title}{\thepage}%
6633 {page.\thepage}}%
6634 % \end{macrocode}
6635 %\changes{1.09}{2010/12/01}{Added \cs{label} to \cs{jmlrmaketitlehook}}
6636 % \begin{macrocode}
6637 \label{}%
6638 \pdfbookmark{\@shorttitle}{chapter.\theHchapter}%
6639 \def\@jmlr@authors@sep{ \& }%
6640 % \end{macrocode}
6641 %\changes{1.12}{2012/01/05}{changed \cs{@jmlrauthors} to \cs{@jmlr@authors}}
6642 % \begin{macrocode}
6643 \tocchapterauthor{\@jmlr@authors}%
6644 \@write@author{#1}{\@jmlr@authors}%
6645 \jmlrpages{}%
6646 \jmlrvolume{}%
6647 \jmlryear{}%
6648 \jmlrsubmitted{}%
6649 \jmlrpublished{}%
6650 \jmlrproceedings{}{}%
6651 }%
6652 \graphicspath{{\@importdir}}%
6653 \def\InputIfFileExists##1##2##3{%
6654 \IfFileExists{##1}{%
6655 \@org@InputIfFileExists{##1}{##2}{##3}%
6656 }%
6657 {%
6658 \@org@InputIfFileExists{\@importdir##1}{##2}{##3}%
6659 }%
6660 }%
6661 \def\Xprefix{#1}%
6662 \jmlrimporthook
6663 % \end{macrocode}
6664 %\changes{1.17}{2012/15/28}{set title page style for imported
6665 %articles to articlet style}
6666 % \begin{macrocode}
6667 \let\ps@jmlrtps\ps@articlet
6668 \import{\@importdir\@importfile}%
6669 \def\Xprefix{}%
6670 \egroup
6671 \gdef\@shortauthor{}%
6672 \gdef\@shorttitle{}%
6673 \gdef\@firstauthor{}%
6674 \gdef\@jmlr@authors{\@jmlrauthors}%
6675 \gdef\@jmlrauthors{}%
6676 \gdef\@firstsurname{}%
6677 }
6678 \newcommand{\importarticle}[3][]{%
6679 \ClassError{jmlrbook}{\string\importarticle\space
6680 not permitted outside `jmlrpapers' environment}{}%
6681 }
6682 % \end{macrocode}
6683 %\end{macro}
6684 %
6685 %\begin{macro}{\addtocpart}
6686 % Add a part to the TOC without printing anything in the text
6687 % (but does a \cs{cleardoublepage}).
6688 % \begin{macrocode}
6689 \newcommand{\addtocpart}[1]{%
6690 \cleardoublepage
6691 \refstepcounter{tocpart}%
6692 \addtocontents{toc}{\protect\tocpart{#1}}%
6693 \pdfbookmark[-1]{#1}{part.\thetocpart}%
6694 }
6695 \newcounter{tocpart}
6696 % \end{macrocode}
6697 %\end{macro}
6698 %
6699 %\begin{macro}{\tocpart}
6700 % Define the appearance of a part in the TOC.
6701 % \begin{macrocode}
6702 \newcommand{\tocpart}[1]{%
6703 \addpenalty{-\@highpenalty}%
6704 \vskip 1.0ex \@plus\p@
6705 \setlength\@tempdima{2.25em}%
6706 \begingroup
6707 \parindent \z@ \rightskip \@pnumwidth
6708 \parfillskip -\@pnumwidth
6709 \leavevmode \large\bfseries
6710 \advance\leftskip\@tempdima
6711 \hskip -\leftskip
6712 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss \null}\par
6713 \penalty\@highpenalty
6714 \endgroup
6715 }
6716 % \end{macrocode}
6717 %\end{macro}
6718 %
6719 % Set up the layout of the chapter headings
6720 % \begin{macrocode}
6721 \setlength{\prechapterskip}{3em}
6722 \setlength{\postchapterskip}{20pt}
6723 % \end{macrocode}
6724 %
6725 %\begin{macro}{\chapternumberformat}
6726 % \begin{macrocode}
6727 \renewcommand{\chapternumberformat}[1]{%
6728 \Large\bfseries \@chapapp\space#1\par
6729 }
6730 % \end{macrocode}
6731 %\end{macro}
6732 %
6733 %\begin{macro}{\chaptertitleformat}
6734 % \begin{macrocode}
6735 \renewcommand{\chaptertitleformat}[1]{%
6736 \Large\bfseries #1}
6737 % \end{macrocode}
6738 %\end{macro}
6739 %\begin{macro}{\chapterformat}
6740 % \begin{macrocode}
6741 \renewcommand*{\chapterformat}{%
6742 \raggedright
6743 }
6744 % \end{macrocode}
6745 %\end{macro}
6746 % Set up the format of a part in the book (not a part in an
6747 % article).
6748 %\begin{macro}{\preparthook}
6749 % \begin{macrocode}
6750 \renewcommand{\preparthook}{\cleardoublepage\null\vfil}
6751 % \end{macrocode}
6752 %\end{macro}
6753 %\begin{macro}{\partnumberformat}
6754 % \begin{macrocode}
6755 \renewcommand{\partnumberformat}[1]{%
6756 \Huge\bfseries \@partapp\nobreakspace#1\par\nobreak
6757 \vskip 20\p@
6758 }
6759 % \end{macrocode}
6760 %\end{macro}
6761 %\begin{macro}{\postparthook}
6762 % \begin{macrocode}
6763 \def\postparthook{%
6764 \thispagestyle{empty}%
6765 \vfil\newpage
6766 \null
6767 \thispagestyle{empty}%
6768 \newpage
6769 }
6770 % \end{macrocode}
6771 %\end{macro}
6772 %
6773 %\begin{macro}{\@curparthead}
6774 % The heading of the current part
6775 % \begin{macrocode}
6776 \newcommand{\@curparthead}{}
6777 % \end{macrocode}
6778 %\end{macro}
6779 %
6780 %\begin{macro}{\parttitleformat}
6781 % \begin{macrocode}
6782 \renewcommand{\parttitleformat}[1]{#1%
6783 \gdef\@curparthead{\@partapp\space \thepart. #1}%
6784 \@mkboth{\@curparthead}{\@curparthead}%
6785 }
6786 % \end{macrocode}
6787 %\end{macro}
6788 %
6789 %\begin{macro}{\firstpageno}
6790 % Change \cs{firstpageno} to do nothing as the page number will
6791 % be determined by the book.
6792 % \begin{macrocode}
6793 \renewcommand{\firstpageno}[1]{}
6794 % \end{macrocode}
6795 %\end{macro}
6796 %
6797 %\begin{macro}{\tocchapterauthor}
6798 % Add the author of the current chapter to the table of contents.
6799 % \begin{macrocode}
6800 \newcommand{\tocchapterauthor}[1]{%
6801 \addtomaincontents{toc}{\protect\contentsline{chapterauthor}{%
6802 #1}{}{}}%
6803 }
6804 % \end{macrocode}
6805 %\end{macro}
6806 %
6807 %\begin{macro}{\tocchapterpubauthor}
6808 % Add the author of an imported prepublished paper to the
6809 % table of contents. The first argument is the author (or list
6810 % of authors). The second argument is the reference to the
6811 % published article.
6812 % \begin{macrocode}
6813 \newcommand{\tocchapterpubauthor}[2]{%
6814 \addtomaincontents{toc}{\protect\contentsline{chapterauthor}{%
6815 #1; #2.}{}{}}%
6816 }
6817 % \end{macrocode}
6818 %\end{macro}
6819 %
6820 % Set up the formatting in the TOC
6821 % \begin{macrocode}
6822 \renewcommand*\@pnumwidth{2em}
6823 % \end{macrocode}
6824 %
6825 %\begin{macro}{\l@part}
6826 % Format for book parts
6827 % \begin{macrocode}
6828 \renewcommand*\l@part[2]{%
6829 \ifnum \c@tocdepth >\m@ne
6830 \addpenalty{-\@highpenalty}%
6831 \vskip 1.0em \@plus\p@
6832 %\setlength\@tempdima{5em}%
6833 \settowidth\@tempdima{\large\bfseries \@partapp\space MM}%
6834 \vbox{%
6835 \pagerule
6836 \begingroup
6837 \parindent \z@ \rightskip \@pnumwidth
6838 \parfillskip -\@pnumwidth
6839 \leavevmode \large\bfseries
6840 \advance\leftskip\@tempdima
6841 \hskip -\leftskip
6842 \renewcommand*\numberline[1]{\hb@xt@ \@tempdima
6843 {\@partapp\space ##1\hfil }}%
6844 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss
6845 \normalfont\normalsize #2}\par
6846 \penalty\@highpenalty
6847 \endgroup
6848 \pagerule
6849 }%
6850 \fi}
6851 % \end{macrocode}
6852 %\end{macro}
6853 %
6854 %\begin{macro}{\l@chapter}
6855 % \begin{macrocode}
6856 \renewcommand{\l@chapter}[2]{%
6857 \ifnum\c@tocdepth>\m@ne
6858 \addpenalty{-\@highpenalty}%
6859 \vskip 1.0em \@plus \p@
6860 \setlength\@tempdima{2em}%
6861 \begingroup
6862 \parindent \z@
6863 \rightskip \@pnumwidth
6864 \parfillskip -\@pnumwidth
6865 \leavevmode \large \bfseries
6866 \advance \leftskip \@tempdima
6867 \hskip -\leftskip
6868 \renewcommand*\numberline[1]{\hb@xt@ \@tempdima
6869 {##1\hfil }}%
6870 #1\nobreak \hfil \nobreak \hb@xt@ \@pnumwidth {\hss
6871 \normalfont\normalsize #2}\par
6872 \penalty \@highpenalty
6873 \endgroup
6874 \fi
6875 }
6876 % \end{macrocode}
6877 %\end{macro}
6878 %
6879 %\begin{macro}{\l@papertitle}
6880 % \begin{macrocode}
6881 \newcommand*{\l@papertitle}[2]{%
6882 \ifnum \c@tocdepth >\m@ne
6883 \addpenalty{-\@highpenalty}%
6884 \vskip 1.0em \@plus\p@
6885 \setlength\@tempdima{3em}%
6886 \begingroup
6887 \leavevmode \raggedright\itshape
6888 #1\nobreak\hfill \nobreak\hb@xt@\@pnumwidth{\hss
6889 \normalfont#2}%
6890 \par
6891 \penalty\@highpenalty
6892 \endgroup
6893 \fi
6894 }
6895 % \end{macrocode}
6896 %\end{macro}
6897 %
6898 %\begin{macro}{\l@chapterauthor}
6899 % \begin{macrocode}
6900 \newcommand*\l@chapterauthor[2]{%
6901 \ifnum \c@tocdepth >\m@ne
6902 % \end{macrocode}
6903 %\changes{1.11}{2011-03-24}{removed penalty}
6904 % \begin{macrocode}
6905 \begingroup
6906 \parindent \z@
6907 \rightskip \@pnumwidth
6908 \parfillskip -\@pnumwidth
6909 \leavevmode \raggedright
6910 \parbox{\linewidth-\@pnumwidth}{\raggedright#1\par}%
6911 \par
6912 \endgroup
6913 \fi}
6914 % \end{macrocode}
6915 %\end{macro}
6916 %
6917 %\begin{macro}{\l@section}
6918 % \begin{macrocode}
6919 \renewcommand*\l@section[2]{%
6920 \ifnum \c@tocdepth >\m@ne
6921 \addpenalty{-\@highpenalty}%
6922 \vskip 1.0em \@plus\p@
6923 \setlength\@tempdima{3em}%
6924 \begingroup
6925 \parindent \z@ \rightskip \@pnumwidth
6926 \parfillskip -\@pnumwidth
6927 \leavevmode \normalsize\mdseries
6928 \advance\leftskip\@tempdima
6929 \hskip -\leftskip
6930 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
6931 \penalty\@highpenalty
6932 \endgroup
6933 \fi}
6934 % \end{macrocode}
6935 %\end{macro}
6936 %
6937 %\begin{macro}{\l@subsection}
6938 % \begin{macrocode}
6939 \renewcommand*\l@subsection[2]{%
6940 \ifnum \c@tocdepth >\m@ne
6941 \addpenalty{-\@highpenalty}%
6942 \vskip 1.0em \@plus\p@
6943 \setlength\@tempdima{3.5em}%
6944 \begingroup
6945 \parindent \z@ \rightskip \@pnumwidth
6946 \parfillskip -\@pnumwidth
6947 \leavevmode \normalsize\mdseries
6948 \advance\leftskip\@tempdima
6949 \hskip -\leftskip
6950 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
6951 \penalty\@highpenalty
6952 \endgroup
6953 \fi}
6954 % \end{macrocode}
6955 %\end{macro}
6956 %
6957 %\begin{macro}{\chaptermark}
6958 % \begin{macrocode}
6959 \renewcommand*{\chaptermark}[1]{%
6960 \@mkboth{\@curparthead}{\protect\thechapter. #1}%
6961 }
6962 % \end{macrocode}
6963 %\end{macro}
6964 %
6965 % Set up page styles
6966 %\begin{macro}{\firstpagehead}
6967 % \begin{macrocode}
6968 \newcommand{\firstpagehead}{}
6969 % \end{macrocode}
6970 %\end{macro}
6971 %\begin{macro}{\firstpagefoot}
6972 %\changes{1.09}{2010/12/01}{added \cs{@reprint}}
6973 % \begin{macrocode}
6974 \newcommand{\firstpagefoot}{%
6975 \@reprint\hfill\thepage
6976 }
6977 % \end{macrocode}
6978 %\end{macro}
6979 %
6980 %\begin{macro}{\headfont}
6981 % Set the header font
6982 % \begin{macrocode}
6983 \newcommand*{\headfont}{\reset@font\small\scshape}%
6984 % \end{macrocode}
6985 %\end{macro}
6986 %\begin{macro}{\footfont}
6987 % Set the footer font
6988 % \begin{macrocode}
6989 \newcommand*{\footfont}{\reset@font\small\itshape}%
6990 % \end{macrocode}
6991 %\end{macro}
6992 %
6993 %\begin{macro}{\ps@chplain}
6994 % Page style for first page of a chapter
6995 % \begin{macrocode}
6996 \newcommand*{\ps@chplain}{%
6997 \let\@mkboth\@gobbletwo
6998 \renewcommand*{\@oddhead}{\headfont\firstpagehead}%
6999 \renewcommand*{\@evenhead}{}%
7000 \renewcommand*{\@oddfoot}{\footfont\firstpagefoot}%
7001 \renewcommand*{\@evenfoot}{\footfont\thepage\hfill
7002 }%
7003 }
7004 \let\ps@plain\ps@chplain
7005 % \end{macrocode}
7006 %\end{macro}
7007 %\begin{macro}{\ps@article}
7008 % Page style for the imported articles.
7009 % \begin{macrocode}
7010 \newcommand*{\ps@article}{%
7011 \let\@mkboth\@gobbletwo
7012 \renewcommand*{\@oddhead}{\headfont\hfill\@shorttitle}%
7013 \renewcommand*{\@evenhead}{\headfont\@shortauthor\hfill}%
7014 \renewcommand*{\@oddfoot}{\footfont\hfill\thepage}
7015 \renewcommand*{\@evenfoot}{\footfont\thepage\hfill}
7016 }
7017 % \end{macrocode}
7018 %\end{macro}
7019 %\begin{macro}{\ps@articlet}
7020 % Title page style for imported articles (imported using
7021 % \cs{importarticle})
7022 % \begin{macrocode}
7023 \newcommand*{\ps@articlet}{%
7024 \let\@mkboth\@gobbletwo
7025 \renewcommand*{\@oddhead}{}%
7026 \renewcommand*{\@evenhead}{}%
7027 \renewcommand*{\@oddfoot}{\footfont\hfill\thepage}
7028 \renewcommand*{\@evenfoot}{\footfont\thepage\hfill}
7029 }
7030 % \end{macrocode}
7031 %\end{macro}
7032 %
7033 %\begin{macro}{\ps@jmlrbook}
7034 % Page style for book
7035 %\changes{1.15}{2012/05/12}{removed dependence on \cs{ps@headings}
7036 %(made consistent with article page style)}
7037 % \begin{macrocode}
7038 \newcommand*{\ps@jmlrbook}{%
7039 \renewcommand*{\@oddfoot}{\footfont\hfill\thepage}
7040 \renewcommand*{\@evenfoot}{\footfont\thepage\hfill}
7041 \def\@evenhead{\headfont\leftmark\hfill}%
7042 \def\@oddhead{\hfill\headfont\rightmark}%
7043 \let\@mkboth\markboth
7044 \renewcommand*{\sectionmark}[1]{}%
7045 }
7046 % \end{macrocode}
7047 %\end{macro}
7048 %
7049 %\begin{macro}{\markleft}
7050 %\changes{1.15}{2012/05/12}{new}
7051 % Provide a command to set just the left header mark.
7052 % \begin{macrocode}
7053 \newcommand*{\markleft}[1]{%
7054 \begingroup
7055 \let\label\relax
7056 \let\index\relax
7057 \let\glossary\relax
7058 \expandafter\@markleft\@themark{#1}%
7059 \@temptokena
7060 \expandafter{\@themark}%
7061 \mark{\the\@temptokena}
7062 \endgroup
7063 \if@nobreak
7064 \ifvmode
7065 \nobreak
7066 \fi
7067 \fi
7068 }
7069 \newcommand*{\@markleft}[3]{%
7070 \@temptokena{#2}%
7071 \unrestored@protected@xdef\@themark{{#3}{\the\@temptokena}}
7072 }
7073 % \end{macrocode}
7074 %\end{macro}
7075 %
7076 %\begin{macro}{\morefrontmatter}
7077 % \begin{macrocode}
7078 \renewcommand*{\morefrontmatter}{\pagestyle{jmlrbook}%
7079 \def\chaptermark##1{%
7080 \@mkboth{##1\hfill}{\hfill##1}}%
7081 }
7082 % \end{macrocode}
7083 %\end{macro}
7084 %
7085 %\begin{macro}{\moremainmatter}
7086 % \begin{macrocode}
7087 \renewcommand*{\moremainmatter}{\pagestyle{jmlrbook}%
7088 \def\chaptermark##1{%
7089 \@mkboth{\@curparthead}{\protect\thechapter. ##1}%
7090 }%
7091 }
7092 % \end{macrocode}
7093 %\end{macro}
7094 %
7095 %\begin{macro}{\bibsection}
7096 % Set the bibliography headings in the articles
7097 % \begin{macrocode}
7098 \renewcommand*\bibsection{\section*{\refname}}
7099 % \end{macrocode}
7100 %\end{macro}
7101 %\changes{1.10}{2011-01-05}{Removed redundant redefinition of
7102 %\cs{@bookpart}}
7103 %
7104 % Set up the book commands:
7105 % \begin{macrocode}
7106 \jmlrbookcommands
7107 % \end{macrocode}
7108 %
7109 % In the event that authors have used different versions of
7110 % \sty{algorithm2e}, define old command names.
7111 %\changes{1.11}{2011-03-24}{added old algorithm2e commands}
7112 % \begin{macrocode}
7113 \providecommand*{\SetNoLine}{\SetAlgoNoLine}
7114 \providecommand*{\SetVline}{\SetAlgoVlined}
7115 \providecommand*{\Setvlineskip}{\SetVlineSkip}
7116 \providecommand*{\SetLine}{\SetAlgoLined}
7117 \providecommand*{\dontprintsemicolon}{\DontPrintSemicolon}
7118 \providecommand*{\printsemicolon}{\PrintSemicolon}
7119 \providecommand*{\incmargin}{\IncMargin}
7120 \providecommand*{\decmargin}[1]{\DecMargin{-#1}}
7121 \providecommand*{\setnlskip}{\SetNlSkip}
7122 \providecommand*{\Setnlskip}{\SetNlSkip}
7123 \providecommand*{\setalcapskip}{\SetAlCapSkip}
7124 \providecommand*{\setalcaphskip}{\SetAlCapHSkip}
7125 \providecommand*{\nlSty}{\NlSty}
7126 \providecommand*{\Setnlsty}{\SetNlSty}
7127 \providecommand*{\linesnumbered}{\LinesNumbered}
7128 \providecommand*{\linesnotnumbered}{\LinesNotNumbered}
7129 \providecommand*{\linesnumberedhidden}{\LinesNumberedHidden}
7130 \providecommand*{\showln}{\ShowLn}
7131 \providecommand*{\showlnlabel}{\ShowLnLabel}
7132 \providecommand*{\nocaptionofalgo}{\NoCaptionOfAlgo}
7133 \providecommand*{\restorecaptionofalgo}{\RestoreCaptionOfAlgo}
7134 \providecommand*{\restylealgo}{\RestyleAlgo}
7135 \providecommand*{\Titleofalgo}{\TitleOfAlgo}
7136 % \end{macrocode}
7137 %\iffalse
7138 % \begin{macrocode}
7139 %</jmlrbook.cls>
7140 % \end{macrocode}
7141 %\fi
7142 %\Finale
7143 \endinput