└── jmlr2e.sty /jmlr2e.sty: -------------------------------------------------------------------------------- 1 | % 2 | % File: Macros for Journal of Machine Learning Research 3 | % Very minor modification of macros for Journal of Artificial 4 | % Intelligence Research (jair.sty) 5 | % 6 | % Suggestions: Submit an issue or pull request to 7 | % https://github.com/JournalMLR/jmlr-style-file 8 | % 9 | % Last edited October 9, 2000 by Leslie Pack Kaelbling 10 | % Last edited January 23, 2001 by Alex J. Smola (we should set up RCS or CVS) 11 | % Last edited March 29, 2004 Erik G. Learned-Miller 12 | % Last edited January 17, 2016 Charles Sutton 13 | % Last edited January 9, 2017 Charles Sutton 14 | % (We have now set up GIT, good thing that we waited for it to 15 | % be invented.) 16 | % 17 | % The name of this file should follow the article document 18 | % type, e.g. \documentstyle[jmlr]{article} 19 | 20 | % Copied and edited from similar file for Machine Learning Journal. 21 | % Original Author: Jeff Schlimmer 22 | % Edited by: Kevin Thompson, Martha Del Alto, Helen Stewart, Steve Minton \& Pandu Nayak. 23 | % Last edited: Mon May 3 20:40:00 1993 by kthompso (Kevin Thompson) on muir 24 | 25 | \typeout{Document Style `jmlr' -- January 2016.} 26 | 27 | \newif\if@abbrvbib\@abbrvbibfalse 28 | \DeclareOption{abbrvbib}{\@abbrvbibtrue} 29 | 30 | \newif\if@usehyper\@usehypertrue 31 | \DeclareOption{nohyperref}{\@usehyperfalse} 32 | \DeclareOption{hyperref}{\@usehypertrue} 33 | 34 | \DeclareOption*{\PackageWarning{jmlr}{Unknown ‘\CurrentOption’}} 35 | \ProcessOptions\relax 36 | 37 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 38 | % REQUIRED PACKAGES 39 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 40 | 41 | \RequirePackage{epsfig} 42 | \RequirePackage{amssymb} 43 | \RequirePackage{natbib} 44 | \RequirePackage{graphicx} 45 | 46 | \if@usehyper 47 | \RequirePackage[colorlinks=false,allbordercolors={1 1 1}]{hyperref} 48 | \fi 49 | 50 | \if@abbrvbib 51 | \bibliographystyle{abbrvnat} 52 | \else 53 | \bibliographystyle{plainnat} 54 | \fi 55 | 56 | \bibpunct{(}{)}{;}{a}{,}{,} 57 | 58 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 59 | % P A G E S I Z E 60 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 61 | 62 | % Change the overall width of the page. If these parameters are 63 | % changed, they will require corresponding changes in the 64 | % maketitle section. 65 | % 66 | \renewcommand{\topfraction}{0.95} % let figure take up nearly whole page 67 | \renewcommand{\textfraction}{0.05} % let figure take up nearly whole page 68 | 69 | % Specify the dimensions of each page 70 | 71 | \oddsidemargin .25in % Note \oddsidemargin = \evensidemargin 72 | \evensidemargin .25in 73 | \marginparwidth 0.07 true in 74 | %\marginparwidth 0.75 true in 75 | %\topmargin 0 true pt % Nominal distance from top of page to top of 76 | %\topmargin 0.125in 77 | \topmargin -0.5in 78 | \addtolength{\headsep}{0.25in} 79 | \textheight 8.5 true in % Height of text (including footnotes & figures) 80 | \textwidth 6.0 true in % Width of text line. 81 | \widowpenalty=10000 82 | \clubpenalty=10000 83 | \@twosidetrue \@mparswitchtrue \def\ds@draft{\overfullrule 5pt} 84 | 85 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 86 | % S E C T I O N S 87 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 88 | 89 | % Definitions for nicer (?) sections, etc., ideas from Pat Langley. 90 | % Numbering for sections, etc. is taken care of automatically. 91 | 92 | \def\@startsiction#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi 93 | \par \@tempskipa #4\relax 94 | \@afterindenttrue 95 | \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi 96 | \if@nobreak \everypar{}\else 97 | \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar 98 | {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sict{#1}{#2}{#3}{#4}{#5}{#6}}}} 99 | 100 | \def\@sict#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth 101 | \def\@svsec{}\else 102 | \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname}\fi 103 | \@tempskipa #5\relax 104 | \ifdim \@tempskipa>\z@ 105 | \begingroup #6\relax 106 | \@hangfrom{\hskip #3\relax\@svsec.\hskip 0.1em} 107 | {\interlinepenalty \@M #8\par} 108 | \endgroup 109 | \csname #1mark\endcsname{#7}\addcontentsline 110 | {toc}{#1}{\ifnum #2>\c@secnumdepth \else 111 | \protect\numberline{\csname the#1\endcsname}\fi 112 | #7}\else 113 | \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname 114 | {#7}\addcontentsline 115 | {toc}{#1}{\ifnum #2>\c@secnumdepth \else 116 | \protect\numberline{\csname the#1\endcsname}\fi 117 | #7}}\fi 118 | \@xsect{#5}} 119 | 120 | \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth 121 | \def\@svsec{}\else 122 | \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 0.5em }\fi 123 | \@tempskipa #5\relax 124 | \ifdim \@tempskipa>\z@ 125 | \begingroup #6\relax 126 | \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par} 127 | \endgroup 128 | \csname #1mark\endcsname{#7}\addcontentsline 129 | {toc}{#1}{\ifnum #2>\c@secnumdepth \else 130 | \protect\numberline{\csname the#1\endcsname}\fi 131 | #7}\else 132 | \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname 133 | {#7}\addcontentsline 134 | {toc}{#1}{\ifnum #2>\c@secnumdepth \else 135 | \protect\numberline{\csname the#1\endcsname}\fi 136 | #7}}\fi 137 | \@xsect{#5}} 138 | 139 | \def\thesection {\arabic{section}} 140 | \def\thesubsection {\thesection.\arabic{subsection}} 141 | \def\section{\@startsiction{section}{1}{\z@}{-0.24in}{0.10in} 142 | {\large\bf\raggedright}} 143 | \def\subsection{\@startsection{subsection}{2}{\z@}{-0.20in}{0.08in} 144 | {\normalsize\bf\raggedright}} 145 | \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-0.18in}{0.08in} 146 | {\normalsize\sc\raggedright}} 147 | \def\paragraph{\@startsiction{paragraph}{4}{\z@}{1.5ex plus 148 | 0.5ex minus .2ex}{-1em}{\normalsize\bf}} 149 | \def\subparagraph{\@startsiction{subparagraph}{5}{\z@}{1.5ex plus 150 | 0.5ex minus .2ex}{-1em}{\normalsize\bf}} 151 | 152 | 153 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 154 | % F O O T N O T E S 155 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 156 | 157 | % Change the size of the footnote rule 158 | % 159 | % \renewcommand{\footnoterule}{\vspace{10pt}\hrule width 0mm} 160 | 161 | \long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize 162 | \advance\@tempdima-15pt\parshape \@ne 15pt \@tempdima}\par 163 | \parindent 2em\noindent \hbox to \z@{\hss{\@thefnmark}. \hfil}#1} 164 | 165 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 166 | % A B S T R A C T 167 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 168 | 169 | %% use \begin{abstract} .. \end{abstract} for abstracts. 170 | \renewenvironment{abstract} 171 | {\centerline{\large\bf Abstract}\vspace{0.7ex}% 172 | \bgroup\leftskip 20pt\rightskip 20pt\small\noindent\ignorespaces}% 173 | {\par\egroup\vskip 0.25ex} 174 | 175 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 176 | % KEYWORDS 177 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 178 | 179 | %% use \begin{keywords} .. \end{keywords} for keywordss. 180 | \newenvironment{keywords} 181 | {\bgroup\leftskip 20pt\rightskip 20pt \small\noindent{\bf Keywords:} }% 182 | {\par\egroup\vskip 0.25ex} 183 | 184 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 185 | % FIRST PAGE, TITLE, AUTHOR 186 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 187 | 188 | % Author information can be set in various styles: 189 | % For several authors from the same institution: 190 | % \author{Author 1 \and ... \and Author n \\ 191 | % \addr{Address line} \\ ... \\ \addr{Address line}} 192 | % if the names do not fit well on one line use 193 | % Author 1 \\ {\bf Author 2} \\ ... \\ {\bf Author n} \\ 194 | % To start a seperate ``row'' of authors use \AND, as in 195 | % \author{Author 1 \\ \addr{Address line} \\ ... \\ \addr{Address line} 196 | % \AND 197 | % Author 2 \\ \addr{Address line} \\ ... \\ \addr{Address line} \And 198 | % Author 3 \\ \addr{Address line} \\ ... \\ \addr{Address line}} 199 | 200 | % Title stuff, borrowed in part from aaai92.sty 201 | 202 | \newlength\aftertitskip \newlength\beforetitskip 203 | \newlength\interauthorskip \newlength\aftermaketitskip 204 | 205 | %% Changeable parameters. 206 | \setlength\aftertitskip{0.1in plus 0.2in minus 0.2in} 207 | \setlength\beforetitskip{0.05in plus 0.08in minus 0.08in} 208 | \setlength\interauthorskip{0.08in plus 0.1in minus 0.1in} 209 | \setlength\aftermaketitskip{0.3in plus 0.1in minus 0.1in} 210 | 211 | %% overall definition of maketitle, @maketitle does the real work 212 | \def\maketitle{\par 213 | \begingroup 214 | \def\thefootnote{\fnsymbol{footnote}} 215 | \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} 216 | \@maketitle \@thanks 217 | \endgroup 218 | \setcounter{footnote}{0} 219 | \let\maketitle\relax \let\@maketitle\relax 220 | \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax} 221 | 222 | \def\@startauthor{\noindent \normalsize\bf} 223 | \def\@endauthor{} 224 | \def\@starteditor{\noindent \small {\bf Editor:~}} 225 | \def\@endeditor{\normalsize} 226 | \def\@maketitle{\vbox{\hsize\textwidth 227 | \linewidth\hsize \vskip \beforetitskip 228 | {\begin{center} \Large\bf \@title \par \end{center}} \vskip \aftertitskip 229 | {\def\and{\unskip\enspace{\rm and}\enspace}% 230 | \def\addr{\small\it}% 231 | \def\email{\hfill\small\sc}% 232 | \def\name{\normalsize\bf}% 233 | \def\AND{\@endauthor\rm\hss \vskip \interauthorskip \@startauthor} 234 | \@startauthor \@author \@endauthor} 235 | 236 | \vskip \aftermaketitskip 237 | \noindent \@starteditor \@editor \@endeditor 238 | \vskip \aftermaketitskip 239 | }} 240 | 241 | \def\editor#1{\gdef\@editor{#1}} 242 | 243 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 244 | %%% 245 | %%% Pagestyle 246 | %% 247 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 248 | 249 | %% Defines the pagestyle for the title page. 250 | %% Usage: \jmlrheading{1}{1993}{1-15}{8/93}{9/93}{14-115}{Jane Q. Public and A. U. Thor} 251 | %% \jmlrheading{vol}{year}{pages}{Submitted date}{published date}{paper id}{authors} 252 | %% 253 | %% If your paper required revisions that were reviewed by the action editor, then indicate 254 | %% this by, e.g. 255 | %% \jmlrheading{1}{1993}{1-15}{8/93; Revised 10/93}{12/93}{14-115}{Jane Q. Public and A. U. Thor} 256 | 257 | \def\firstpageno#1{\setcounter{page}{#1}} 258 | 259 | \def\jmlrheading#1#2#3#4#5#6#7{\def\ps@jmlrtps{\let\@mkboth\@gobbletwo% 260 | \def\@oddhead{\scriptsize Journal of Machine Learning Research #1 (#2) #3 \hfill Submitted #4; Published #5}% 261 | \def\@oddfoot{\parbox[t]{\textwidth}{\raggedright \scriptsize \copyright #2 #7.\\[5pt] 262 | License: CC-BY 4.0, see \url{https://creativecommons.org/licenses/by/4.0/}. Attribution requirements 263 | are provided at \url{http://jmlr.org/papers/v#1/#6.html}.\hfill}}% 264 | 265 | \def\@evenhead{}\def\@evenfoot{}}% 266 | \thispagestyle{jmlrtps}} 267 | 268 | %% Defines the pagestyle for the rest of the pages 269 | %% Usage: \ShortHeadings{Minimizing Conflicts}{Minton et al} 270 | %% \ShortHeadings{short title}{short authors} 271 | 272 | \def\ShortHeadings#1#2{\def\ps@jmlrps{\let\@mkboth\@gobbletwo% 273 | \def\@oddhead{\hfill {\small\sc #1} \hfill}% 274 | \def\@oddfoot{\hfill \small\rm \thepage \hfill}% 275 | \def\@evenhead{\hfill {\small\sc #2} \hfill}% 276 | \def\@evenfoot{\hfill \small\rm \thepage \hfill}}% 277 | \pagestyle{jmlrps}} 278 | 279 | 280 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 281 | % MISCELLANY 282 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 283 | 284 | % Define macros for figure captions and table titles 285 | 286 | % Figurecaption prints the caption title flush left. 287 | % \def\figurecaption#1#2{\noindent\hangindent 42pt 288 | % \hbox to 36pt {\sl #1 \hfil} 289 | % \ignorespaces #2} 290 | % \def\figurecaption#1#2{\noindent\hangindent 46pt 291 | % \hbox to 41pt {\small\sl #1 \hfil} 292 | % \ignorespaces {\small #2}} 293 | \def\figurecaption#1#2{\noindent\hangindent 40pt 294 | \hbox to 36pt {\small\sl #1 \hfil} 295 | \ignorespaces {\small #2}} 296 | % Figurecenter prints the caption title centered. 297 | \def\figurecenter#1#2{\centerline{{\sl #1} #2}} 298 | \def\figurecenter#1#2{\centerline{{\small\sl #1} {\small #2}}} 299 | 300 | % 301 | % Allow ``hanging indents'' in long captions 302 | % 303 | \long\def\@makecaption#1#2{ 304 | \vskip 10pt 305 | \setbox\@tempboxa\hbox{#1: #2} 306 | \ifdim \wd\@tempboxa >\hsize % IF longer than one line: 307 | \begin{list}{#1:}{ 308 | \settowidth{\labelwidth}{#1:} 309 | \setlength{\leftmargin}{\labelwidth} 310 | \addtolength{\leftmargin}{\labelsep} 311 | }\item #2 \end{list}\par % Output in quote mode 312 | \else % ELSE center. 313 | \hbox to\hsize{\hfil\box\@tempboxa\hfil} 314 | \fi} 315 | 316 | 317 | % Define strut macros for skipping spaces above and below text in a 318 | % tabular environment. 319 | \def\abovestrut#1{\rule[0in]{0in}{#1}\ignorespaces} 320 | \def\belowstrut#1{\rule[-#1]{0in}{#1}\ignorespaces} 321 | 322 | % Acknowledgments 323 | \long\def\acks#1{\vskip 0.3in\noindent{\large\bf Acknowledgments}\vskip 0.2in 324 | \noindent #1} 325 | 326 | % Research Note 327 | \long\def\researchnote#1{\noindent {\LARGE\it Research Note} #1} 328 | 329 | \renewcommand{\appendix}{\par 330 | \setcounter{section}{0} 331 | \setcounter{subsection}{0} 332 | \def\thesection{\Alph{section}} 333 | \def\section{\@ifnextchar*{\@startsiction{section}{1}{\z@}{-0.24in}{0.10in}% 334 | {\large\bf\raggedright}}% 335 | {\@startsiction{section}{1}{\z@}{-0.24in}{0.10in} 336 | {\large\bf\raggedright Appendix\ }}}} 337 | 338 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 339 | % PROOF, THEOREM, and FRIENDS 340 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 341 | 342 | \newcommand{\BlackBox}{\rule{1.5ex}{1.5ex}} % end of proof 343 | \newenvironment{proof}{\par\noindent{\bf Proof\ }}{\hfill\BlackBox\\[2mm]} 344 | \newtheorem{example}{Example} 345 | \newtheorem{theorem}{Theorem} 346 | \newtheorem{lemma}[theorem]{Lemma} 347 | \newtheorem{proposition}[theorem]{Proposition} 348 | \newtheorem{remark}[theorem]{Remark} 349 | \newtheorem{corollary}[theorem]{Corollary} 350 | \newtheorem{definition}[theorem]{Definition} 351 | \newtheorem{conjecture}[theorem]{Conjecture} 352 | \newtheorem{axiom}[theorem]{Axiom} 353 | 354 | 355 | 356 | --------------------------------------------------------------------------------