Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

jmlr2e.sty 14KB

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