You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

icml2019.sty 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. % File: icml2019.sty (LaTeX style file for ICML-2019, version of 2019-01-07)
  2. % This file contains the LaTeX formatting parameters for a two-column
  3. % conference proceedings that is 8.5 inches wide by 11 inches high.
  4. %
  5. % Modified by Iain Murray 2018: changed years, location. Remove affiliation notes when anonymous.
  6. % Move times dependency from .tex to .sty so fewer people delete it.
  7. %
  8. % Modified by Daniel Roy 2017: changed byline to use footnotes for affiliations, and removed emails
  9. %
  10. % Modified by Percy Liang 12/2/2013: changed the year, location from the previous template for ICML 2014
  11. % Modified by Fei Sha 9/2/2013: changed the year, location form the previous template for ICML 2013
  12. %
  13. % Modified by Fei Sha 4/24/2013: (1) remove the extra whitespace after the first author's email address (in %the camera-ready version) (2) change the Proceeding ... of ICML 2010 to 2014 so PDF's metadata will show up % correctly
  14. %
  15. % Modified by Sanjoy Dasgupta, 2013: changed years, location
  16. %
  17. % Modified by Francesco Figari, 2012: changed years, location
  18. %
  19. % Modified by Christoph Sawade and Tobias Scheffer, 2011: added line
  20. % numbers, changed years
  21. %
  22. % Modified by Hal Daume III, 2010: changed years, added hyperlinks
  23. %
  24. % Modified by Kiri Wagstaff, 2009: changed years
  25. %
  26. % Modified by Sam Roweis, 2008: changed years
  27. %
  28. % Modified by Ricardo Silva, 2007: update of the ifpdf verification
  29. %
  30. % Modified by Prasad Tadepalli and Andrew Moore, merely changing years.
  31. %
  32. % Modified by Kristian Kersting, 2005, based on Jennifer Dy's 2004 version
  33. % - running title. If the original title is to long or is breaking a line,
  34. % use \icmltitlerunning{...} in the preamble to supply a shorter form.
  35. % Added fancyhdr package to get a running head.
  36. % - Updated to store the page size because pdflatex does compile the
  37. % page size into the pdf.
  38. %
  39. % Hacked by Terran Lane, 2003:
  40. % - Updated to use LaTeX2e style file conventions (ProvidesPackage,
  41. % etc.)
  42. % - Added an ``appearing in'' block at the base of the first column
  43. % (thus keeping the ``appearing in'' note out of the bottom margin
  44. % where the printer should strip in the page numbers).
  45. % - Added a package option [accepted] that selects between the ``Under
  46. % review'' notice (default, when no option is specified) and the
  47. % ``Appearing in'' notice (for use when the paper has been accepted
  48. % and will appear).
  49. %
  50. % Originally created as: ml2k.sty (LaTeX style file for ICML-2000)
  51. % by P. Langley (12/23/99)
  52. %%%%%%%%%%%%%%%%%%%%
  53. %% This version of the style file supports both a ``review'' version
  54. %% and a ``final/accepted'' version. The difference is only in the
  55. %% text that appears in the note at the bottom of the first column of
  56. %% the first page. The default behavior is to print a note to the
  57. %% effect that the paper is under review and don't distribute it. The
  58. %% final/accepted version prints an ``Appearing in'' note. To get the
  59. %% latter behavior, in the calling file change the ``usepackage'' line
  60. %% from:
  61. %% \usepackage{icml2019}
  62. %% to
  63. %% \usepackage[accepted]{icml2019}
  64. %%%%%%%%%%%%%%%%%%%%
  65. \NeedsTeXFormat{LaTeX2e}
  66. \ProvidesPackage{icml2019}[2019/01/07 v2.0 ICML Conference Style File]
  67. % Before 2018, \usepackage{times} was in the example TeX, but inevitably
  68. % not everybody did it.
  69. \RequirePackage{times}
  70. % Use fancyhdr package
  71. \RequirePackage{fancyhdr}
  72. \RequirePackage{color}
  73. \RequirePackage{algorithm}
  74. \RequirePackage{algorithmic}
  75. % \RequirePackage{natbib}
  76. \RequirePackage{eso-pic} % used by \AddToShipoutPicture
  77. \RequirePackage{forloop}
  78. %%%%%%%% Options
  79. \DeclareOption{accepted}{%
  80. \renewcommand{\Notice@String}{\ICML@appearing}
  81. \gdef\isaccepted{1}
  82. }
  83. \DeclareOption{nohyperref}{%
  84. \gdef\nohyperref{1}
  85. }
  86. \ifdefined\nohyperref\else\ifdefined\hypersetup
  87. \definecolor{mydarkblue}{rgb}{0,0.08,0.45}
  88. \hypersetup{ %
  89. pdftitle={},
  90. pdfauthor={},
  91. pdfsubject={Proceedings of the International Conference on Machine Learning 2019},
  92. pdfkeywords={},
  93. pdfborder=0 0 0,
  94. pdfpagemode=UseNone,
  95. colorlinks=true,
  96. linkcolor=mydarkblue,
  97. citecolor=mydarkblue,
  98. filecolor=mydarkblue,
  99. urlcolor=mydarkblue,
  100. pdfview=FitH}
  101. \ifdefined\isaccepted \else
  102. \hypersetup{pdfauthor={Anonymous Submission}}
  103. \fi
  104. \fi\fi
  105. %%%%%%%%%%%%%%%%%%%%
  106. % This string is printed at the bottom of the page for the
  107. % final/accepted version of the ``appearing in'' note. Modify it to
  108. % change that text.
  109. %%%%%%%%%%%%%%%%%%%%
  110. \newcommand{\ICML@appearing}{\textit{Proceedings of the
  111. $\mathit{36}^{th}$ International Conference on Machine Learning},
  112. Long Beach, California, PMLR 97, 2019.
  113. Copyright 2019 by the author(s).}
  114. %%%%%%%%%%%%%%%%%%%%
  115. % This string is printed at the bottom of the page for the draft/under
  116. % review version of the ``appearing in'' note. Modify it to change
  117. % that text.
  118. %%%%%%%%%%%%%%%%%%%%
  119. \newcommand{\Notice@String}{Preliminary work. Under review by the
  120. International Conference on Machine Learning (ICML)\@. Do not distribute.}
  121. % Cause the declared options to actually be parsed and activated
  122. \ProcessOptions\relax
  123. % Uncomment the following for debugging. It will cause LaTeX to dump
  124. % the version of the ``appearing in'' string that will actually appear
  125. % in the document.
  126. %\typeout{>> Notice string='\Notice@String'}
  127. % Change citation commands to be more like old ICML styles
  128. \newcommand{\yrcite}[1]{\citeyearpar{#1}}
  129. \renewcommand{\cite}[1]{\citep{#1}}
  130. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  131. % to ensure the letter format is used. pdflatex does compile the
  132. % page size into the pdf. This is done using \pdfpagewidth and
  133. % \pdfpageheight. As Latex does not know this directives, we first
  134. % check whether pdflatex or latex is used.
  135. %
  136. % Kristian Kersting 2005
  137. %
  138. % in order to account for the more recent use of pdfetex as the default
  139. % compiler, I have changed the pdf verification.
  140. %
  141. % Ricardo Silva 2007
  142. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  143. \paperwidth=8.5in
  144. \paperheight=11in
  145. % old PDFLaTex verification, circa 2005
  146. %
  147. %\newif\ifpdf\ifx\pdfoutput\undefined
  148. % \pdffalse % we are not running PDFLaTeX
  149. %\else
  150. % \pdfoutput=1 % we are running PDFLaTeX
  151. % \pdftrue
  152. %\fi
  153. \newif\ifpdf %adapted from ifpdf.sty
  154. \ifx\pdfoutput\undefined
  155. \else
  156. \ifx\pdfoutput\relax
  157. \else
  158. \ifcase\pdfoutput
  159. \else
  160. \pdftrue
  161. \fi
  162. \fi
  163. \fi
  164. \ifpdf
  165. % \pdfpagewidth=\paperwidth
  166. % \pdfpageheight=\paperheight
  167. \setlength{\pdfpagewidth}{8.5in}
  168. \setlength{\pdfpageheight}{11in}
  169. \fi
  170. % Physical page layout
  171. \evensidemargin -0.23in
  172. \oddsidemargin -0.23in
  173. \setlength\textheight{9.0in}
  174. \setlength\textwidth{6.75in}
  175. \setlength\columnsep{0.25in}
  176. \setlength\headheight{10pt}
  177. \setlength\headsep{10pt}
  178. \addtolength{\topmargin}{-20pt}
  179. \addtolength{\topmargin}{-0.29in}
  180. % Historically many authors tried to include packages like geometry or fullpage,
  181. % which change the page layout. It either makes the proceedings inconsistent, or
  182. % wastes organizers' time chasing authors. So let's nip these problems in the
  183. % bud here. -- Iain Murray 2018.
  184. %\RequirePackage{printlen}
  185. \AtBeginDocument{%
  186. % To get the numbers below, include printlen package above and see lengths like this:
  187. %\printlength\oddsidemargin\\
  188. %\printlength\headheight\\
  189. %\printlength\textheight\\
  190. %\printlength\marginparsep\\
  191. %\printlength\footskip\\
  192. %\printlength\hoffset\\
  193. %\printlength\paperwidth\\
  194. %\printlength\topmargin\\
  195. %\printlength\headsep\\
  196. %\printlength\textwidth\\
  197. %\printlength\marginparwidth\\
  198. %\printlength\marginparpush\\
  199. %\printlength\voffset\\
  200. %\printlength\paperheight\\
  201. %
  202. \newif\ifmarginsmessedwith
  203. \marginsmessedwithfalse
  204. \ifdim\oddsidemargin=-16.62178pt \else oddsidemargin has been altered.\\ \marginsmessedwithtrue\fi
  205. \ifdim\headheight=10.0pt \else headheight has been altered.\\ \marginsmessedwithtrue\fi
  206. \ifdim\textheight=650.43pt \else textheight has been altered.\\ \marginsmessedwithtrue\fi
  207. \ifdim\marginparsep=11.0pt \else marginparsep has been altered.\\ \marginsmessedwithtrue\fi
  208. \ifdim\footskip=0.0pt \else footskip has been altered.\\ \marginsmessedwithtrue\fi
  209. \ifdim\hoffset=0.0pt \else hoffset has been altered.\\ \marginsmessedwithtrue\fi
  210. \ifdim\paperwidth=614.295pt \else paperwidth has been altered.\\ \marginsmessedwithtrue\fi
  211. \ifdim\topmargin=-24.95781pt \else topmargin has been altered.\\ \marginsmessedwithtrue\fi
  212. \ifdim\headsep=10.0pt \else headsep has been altered.\\ \marginsmessedwithtrue\fi
  213. \ifdim\textwidth=487.8225pt \else textwidth has been altered.\\ \marginsmessedwithtrue\fi
  214. \ifdim\marginparwidth=65.0pt \else marginparwidth has been altered.\\ \marginsmessedwithtrue\fi
  215. \ifdim\marginparpush=5.0pt \else marginparpush has been altered.\\ \marginsmessedwithtrue\fi
  216. \ifdim\voffset=0.0pt \else voffset has been altered.\\ \marginsmessedwithtrue\fi
  217. \ifdim\paperheight=794.96999pt \else paperheight has been altered.\\ \marginsmessedwithtrue\fi
  218. \ifmarginsmessedwith
  219. \textbf{\large \em The page layout violates the ICML style.}
  220. Please do not change the page layout, or include packages like geometry,
  221. savetrees, or fullpage, which change it for you.
  222. We're not able to reliably undo arbitrary changes to the style. Please remove
  223. the offending package(s), or layout-changing commands and try again.
  224. \fi}
  225. %% The following is adapted from code in the acmconf.sty conference
  226. %% style file. The constants in it are somewhat magical, and appear
  227. %% to work well with the two-column format on US letter paper that
  228. %% ICML uses, but will break if you change that layout, or if you use
  229. %% a longer block of text for the copyright notice string. Fiddle with
  230. %% them if necessary to get the block to fit/look right.
  231. %%
  232. %% -- Terran Lane, 2003
  233. %%
  234. %% The following comments are included verbatim from acmconf.sty:
  235. %%
  236. %%% This section (written by KBT) handles the 1" box in the lower left
  237. %%% corner of the left column of the first page by creating a picture,
  238. %%% and inserting the predefined string at the bottom (with a negative
  239. %%% displacement to offset the space allocated for a non-existent
  240. %%% caption).
  241. %%%
  242. \def\ftype@copyrightbox{8}
  243. \def\@copyrightspace{
  244. % Create a float object positioned at the bottom of the column. Note
  245. % that because of the mystical nature of floats, this has to be called
  246. % before the first column is populated with text (e.g., from the title
  247. % or abstract blocks). Otherwise, the text will force the float to
  248. % the next column. -- TDRL.
  249. \@float{copyrightbox}[b]
  250. \begin{center}
  251. \setlength{\unitlength}{1pc}
  252. \begin{picture}(20,1.5)
  253. % Create a line separating the main text from the note block.
  254. % 4.818pc==0.8in.
  255. \put(0,2.5){\line(1,0){4.818}}
  256. % Insert the text string itself. Note that the string has to be
  257. % enclosed in a parbox -- the \put call needs a box object to
  258. % position. Without the parbox, the text gets splattered across the
  259. % bottom of the page semi-randomly. The 19.75pc distance seems to be
  260. % the width of the column, though I can't find an appropriate distance
  261. % variable to substitute here. -- TDRL.
  262. \put(0,0){\parbox[b]{19.75pc}{\small \Notice@String}}
  263. \end{picture}
  264. \end{center}
  265. \end@float}
  266. % Note: A few Latex versions need the next line instead of the former.
  267. % \addtolength{\topmargin}{0.3in}
  268. % \setlength\footheight{0pt}
  269. \setlength\footskip{0pt}
  270. %\pagestyle{empty}
  271. \flushbottom \twocolumn
  272. \sloppy
  273. % Clear out the addcontentsline command
  274. \def\addcontentsline#1#2#3{}
  275. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  276. %%% commands for formatting paper title, author names, and addresses.
  277. %%start%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  278. %%%%%% title as running head -- Kristian Kersting 2005 %%%%%%%%%%%%%
  279. %\makeatletter
  280. %\newtoks\mytoksa
  281. %\newtoks\mytoksb
  282. %\newcommand\addtomylist[2]{%
  283. % \mytoksa\expandafter{#1}%
  284. % \mytoksb{#2}%
  285. % \edef#1{\the\mytoksa\the\mytoksb}%
  286. %}
  287. %\makeatother
  288. % box to check the size of the running head
  289. \newbox\titrun
  290. % general page style
  291. \pagestyle{fancy}
  292. \fancyhf{}
  293. \fancyhead{}
  294. \fancyfoot{}
  295. % set the width of the head rule to 1 point
  296. \renewcommand{\headrulewidth}{1pt}
  297. % definition to set the head as running head in the preamble
  298. \def\icmltitlerunning#1{\gdef\@icmltitlerunning{#1}}
  299. % main definition adapting \icmltitle from 2004
  300. \long\def\icmltitle#1{%
  301. %check whether @icmltitlerunning exists
  302. % if not \icmltitle is used as running head
  303. \ifx\undefined\@icmltitlerunning%
  304. \gdef\@icmltitlerunning{#1}
  305. \fi
  306. %add it to pdf information
  307. \ifdefined\nohyperref\else\ifdefined\hypersetup
  308. \hypersetup{pdftitle={#1}}
  309. \fi\fi
  310. %get the dimension of the running title
  311. \global\setbox\titrun=\vbox{\small\bf\@icmltitlerunning}
  312. % error flag
  313. \gdef\@runningtitleerror{0}
  314. % running title too long
  315. \ifdim\wd\titrun>\textwidth%
  316. {\gdef\@runningtitleerror{1}}%
  317. % running title breaks a line
  318. \else\ifdim\ht\titrun>6.25pt
  319. {\gdef\@runningtitleerror{2}}%
  320. \fi
  321. \fi
  322. % if there is somthing wrong with the running title
  323. \ifnum\@runningtitleerror>0
  324. \typeout{}%
  325. \typeout{}%
  326. \typeout{*******************************************************}%
  327. \typeout{Title exceeds size limitations for running head.}%
  328. \typeout{Please supply a shorter form for the running head}
  329. \typeout{with \string\icmltitlerunning{...}\space prior to \string\begin{document}}%
  330. \typeout{*******************************************************}%
  331. \typeout{}%
  332. \typeout{}%
  333. % set default running title
  334. \chead{\small\bf Title Suppressed Due to Excessive Size}%
  335. \else
  336. % 'everything' fine, set provided running title
  337. \chead{\small\bf\@icmltitlerunning}%
  338. \fi
  339. % no running title on the first page of the paper
  340. \thispagestyle{empty}
  341. %%%%%%%%%%%%%%%%%%%% Kristian Kersting %%%%%%%%%%%%%%%%%%%%%%%%%
  342. %end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  343. {\center\baselineskip 18pt
  344. \toptitlebar{\Large\bf #1}\bottomtitlebar}
  345. }
  346. \gdef\icmlfullauthorlist{}
  347. \newcommand\addstringtofullauthorlist{\g@addto@macro\icmlfullauthorlist}
  348. \newcommand\addtofullauthorlist[1]{%
  349. \ifdefined\icmlanyauthors%
  350. \addstringtofullauthorlist{, #1}%
  351. \else%
  352. \addstringtofullauthorlist{#1}%
  353. \gdef\icmlanyauthors{1}%
  354. \fi%
  355. \ifdefined\nohyperref\else\ifdefined\hypersetup%
  356. \hypersetup{pdfauthor=\icmlfullauthorlist}%
  357. \fi\fi}
  358. \def\toptitlebar{\hrule height1pt \vskip .25in}
  359. \def\bottomtitlebar{\vskip .22in \hrule height1pt \vskip .3in}
  360. \newenvironment{icmlauthorlist}{%
  361. \setlength\topsep{0pt}
  362. \setlength\parskip{0pt}
  363. \begin{center}
  364. }{%
  365. \end{center}
  366. }
  367. \newcounter{@affiliationcounter}
  368. \newcommand{\@pa}[1]{%
  369. % ``#1''
  370. \ifcsname the@affil#1\endcsname
  371. % do nothing
  372. \else
  373. \ifcsname @icmlsymbol#1\endcsname
  374. % nothing
  375. \else
  376. \stepcounter{@affiliationcounter}%
  377. \newcounter{@affil#1}%
  378. \setcounter{@affil#1}{\value{@affiliationcounter}}%
  379. \fi
  380. \fi%
  381. \ifcsname @icmlsymbol#1\endcsname
  382. \textsuperscript{\csname @icmlsymbol#1\endcsname\,}%
  383. \else
  384. %\expandafter\footnotemark[\arabic{@affil#1}\,]%
  385. \textsuperscript{\arabic{@affil#1}\,}%
  386. \fi
  387. }
  388. %\newcommand{\icmlauthor}[2]{%
  389. %\addtofullauthorlist{#1}%
  390. %#1\@for\theaffil:=#2\do{\pa{\theaffil}}%
  391. %}
  392. \newcommand{\icmlauthor}[2]{%
  393. \ifdefined\isaccepted
  394. \mbox{\bf #1}\,\@for\theaffil:=#2\do{\@pa{\theaffil}} \addtofullauthorlist{#1}%
  395. \else
  396. \ifdefined\@icmlfirsttime
  397. \else
  398. \gdef\@icmlfirsttime{1}
  399. \mbox{\bf Anonymous Authors}\@pa{@anon} \addtofullauthorlist{Anonymous Authors}
  400. \fi
  401. \fi
  402. }
  403. \newcommand{\icmlsetsymbol}[2]{%
  404. \expandafter\gdef\csname @icmlsymbol#1\endcsname{#2}
  405. }
  406. \newcommand{\icmlaffiliation}[2]{%
  407. \ifdefined\isaccepted
  408. \ifcsname the@affil#1\endcsname
  409. \expandafter\gdef\csname @affilname\csname the@affil#1\endcsname\endcsname{#2}%
  410. \else
  411. {\bf AUTHORERR: Error in use of \textbackslash{}icmlaffiliation command. Label ``#1'' not mentioned in some \textbackslash{}icmlauthor\{author name\}\{labels here\} command beforehand. }
  412. \typeout{}%
  413. \typeout{}%
  414. \typeout{*******************************************************}%
  415. \typeout{Affiliation label undefined. }%
  416. \typeout{Make sure \string\icmlaffiliation\space follows }
  417. \typeout{all of \string\icmlauthor\space commands}%
  418. \typeout{*******************************************************}%
  419. \typeout{}%
  420. \typeout{}%
  421. \fi
  422. \else % \isaccepted
  423. % can be called multiple times... it's idempotent
  424. \expandafter\gdef\csname @affilname1\endcsname{Anonymous Institution, Anonymous City, Anonymous Region, Anonymous Country}
  425. \fi
  426. }
  427. \newcommand{\icmlcorrespondingauthor}[2]{
  428. \ifdefined\isaccepted
  429. \ifdefined\icmlcorrespondingauthor@text
  430. \g@addto@macro\icmlcorrespondingauthor@text{, #1 \textless{}#2\textgreater{}}
  431. \else
  432. \gdef\icmlcorrespondingauthor@text{#1 \textless{}#2\textgreater{}}
  433. \fi
  434. \else
  435. \gdef\icmlcorrespondingauthor@text{Anonymous Author \textless{}anon.email@domain.com\textgreater{}}
  436. \fi
  437. }
  438. \newcommand{\icmlEqualContribution}{\textsuperscript{*}Equal contribution }
  439. \newcounter{@affilnum}
  440. \newcommand{\printAffiliationsAndNotice}[1]{%
  441. \stepcounter{@affiliationcounter}%
  442. {\let\thefootnote\relax\footnotetext{\hspace*{-\footnotesep}\ifdefined\isaccepted #1\fi%
  443. \forloop{@affilnum}{1}{\value{@affilnum} < \value{@affiliationcounter}}{
  444. \textsuperscript{\arabic{@affilnum}}\ifcsname @affilname\the@affilnum\endcsname%
  445. \csname @affilname\the@affilnum\endcsname%
  446. \else
  447. {\bf AUTHORERR: Missing \textbackslash{}icmlaffiliation.}
  448. \fi
  449. }.
  450. \ifdefined\icmlcorrespondingauthor@text
  451. Correspondence to: \icmlcorrespondingauthor@text.
  452. \else
  453. {\bf AUTHORERR: Missing \textbackslash{}icmlcorrespondingauthor.}
  454. \fi
  455. \ \\
  456. \Notice@String
  457. }
  458. }
  459. }
  460. %\makeatother
  461. \long\def\icmladdress#1{%
  462. {\bf The \textbackslash{}icmladdress command is no longer used. See the example\_paper PDF .tex for usage of \textbackslash{}icmlauther and \textbackslash{}icmlaffiliation.}
  463. }
  464. %% keywords as first class citizens
  465. \def\icmlkeywords#1{%
  466. % \ifdefined\isaccepted \else
  467. % \par {\bf Keywords:} #1%
  468. % \fi
  469. % \ifdefined\nohyperref\else\ifdefined\hypersetup
  470. % \hypersetup{pdfkeywords={#1}}
  471. % \fi\fi
  472. % \ifdefined\isaccepted \else
  473. % \par {\bf Keywords:} #1%
  474. % \fi
  475. \ifdefined\nohyperref\else\ifdefined\hypersetup
  476. \hypersetup{pdfkeywords={#1}}
  477. \fi\fi
  478. }
  479. % modification to natbib citations
  480. % \setcitestyle{authoryear,round,citesep={;},aysep={,},yysep={;}}
  481. % Redefinition of the abstract environment.
  482. \renewenvironment{abstract}
  483. {%
  484. % Insert the ``appearing in'' copyright notice.
  485. %\@copyrightspace
  486. \centerline{\large\bf Abstract}
  487. \vspace{-0.12in}\begin{quote}}
  488. {\par\end{quote}\vskip 0.12in}
  489. % numbered section headings with different treatment of numbers
  490. \def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
  491. \par \@tempskipa #4\relax
  492. \@afterindenttrue
  493. % Altered the following line to indent a section's first paragraph.
  494. % \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
  495. \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \fi
  496. \if@nobreak \everypar{}\else
  497. \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
  498. {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sict{#1}{#2}{#3}{#4}{#5}{#6}}}}
  499. \def\@sict#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  500. \def\@svsec{}\else
  501. \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname}\fi
  502. \@tempskipa #5\relax
  503. \ifdim \@tempskipa>\z@
  504. \begingroup #6\relax
  505. \@hangfrom{\hskip #3\relax\@svsec.~}{\interlinepenalty \@M #8\par}
  506. \endgroup
  507. \csname #1mark\endcsname{#7}\addcontentsline
  508. {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  509. \protect\numberline{\csname the#1\endcsname}\fi
  510. #7}\else
  511. \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
  512. {#7}\addcontentsline
  513. {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  514. \protect\numberline{\csname the#1\endcsname}\fi
  515. #7}}\fi
  516. \@xsect{#5}}
  517. \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
  518. \def\@svsec{}\else
  519. \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 0.4em }\fi
  520. \@tempskipa #5\relax
  521. \ifdim \@tempskipa>\z@
  522. \begingroup #6\relax
  523. \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
  524. \endgroup
  525. \csname #1mark\endcsname{#7}\addcontentsline
  526. {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  527. \protect\numberline{\csname the#1\endcsname}\fi
  528. #7}\else
  529. \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
  530. {#7}\addcontentsline
  531. {toc}{#1}{\ifnum #2>\c@secnumdepth \else
  532. \protect\numberline{\csname the#1\endcsname}\fi
  533. #7}}\fi
  534. \@xsect{#5}}
  535. % section headings with less space above and below them
  536. \def\thesection {\arabic{section}}
  537. \def\thesubsection {\thesection.\arabic{subsection}}
  538. \def\section{\@startsection{section}{1}{\z@}{-0.12in}{0.02in}
  539. {\large\bf\raggedright}}
  540. \def\subsection{\@startsection{subsection}{2}{\z@}{-0.10in}{0.01in}
  541. {\normalsize\bf\raggedright}}
  542. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-0.08in}{0.01in}
  543. {\normalsize\sc\raggedright}}
  544. \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus
  545. 0.5ex minus .2ex}{-1em}{\normalsize\bf}}
  546. \def\subparagraph{\@startsection{subparagraph}{5}{\z@}{1.5ex plus
  547. 0.5ex minus .2ex}{-1em}{\normalsize\bf}}
  548. % Footnotes
  549. \footnotesep 6.65pt %
  550. \skip\footins 9pt
  551. \def\footnoterule{\kern-3pt \hrule width 0.8in \kern 2.6pt }
  552. \setcounter{footnote}{0}
  553. % Lists and paragraphs
  554. \parindent 0pt
  555. \topsep 4pt plus 1pt minus 2pt
  556. \partopsep 1pt plus 0.5pt minus 0.5pt
  557. \itemsep 2pt plus 1pt minus 0.5pt
  558. \parsep 2pt plus 1pt minus 0.5pt
  559. \parskip 6pt
  560. \leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
  561. \leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em
  562. \leftmarginvi .5em
  563. \labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt
  564. \def\@listi{\leftmargin\leftmargini}
  565. \def\@listii{\leftmargin\leftmarginii
  566. \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  567. \topsep 2pt plus 1pt minus 0.5pt
  568. \parsep 1pt plus 0.5pt minus 0.5pt
  569. \itemsep \parsep}
  570. \def\@listiii{\leftmargin\leftmarginiii
  571. \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  572. \topsep 1pt plus 0.5pt minus 0.5pt
  573. \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt
  574. \itemsep \topsep}
  575. \def\@listiv{\leftmargin\leftmarginiv
  576. \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  577. \def\@listv{\leftmargin\leftmarginv
  578. \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  579. \def\@listvi{\leftmargin\leftmarginvi
  580. \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  581. \abovedisplayskip 7pt plus2pt minus5pt%
  582. \belowdisplayskip \abovedisplayskip
  583. \abovedisplayshortskip 0pt plus3pt%
  584. \belowdisplayshortskip 4pt plus3pt minus3pt%
  585. % Less leading in most fonts (due to the narrow columns)
  586. % The choices were between 1-pt and 1.5-pt leading
  587. \def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}
  588. \def\small{\@setsize\small{10pt}\ixpt\@ixpt}
  589. \def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}
  590. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  591. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  592. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  593. \def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
  594. \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
  595. \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
  596. \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}
  597. % Revised formatting for figure captions and table titles.
  598. \newsavebox\newcaptionbox\newdimen\newcaptionboxwid
  599. \long\def\@makecaption#1#2{
  600. \vskip 10pt
  601. \baselineskip 11pt
  602. \setbox\@tempboxa\hbox{#1. #2}
  603. \ifdim \wd\@tempboxa >\hsize
  604. \sbox{\newcaptionbox}{\small\sl #1.~}
  605. \newcaptionboxwid=\wd\newcaptionbox
  606. \usebox\newcaptionbox {\footnotesize #2}
  607. % \usebox\newcaptionbox {\small #2}
  608. \else
  609. \centerline{{\small\sl #1.} {\small #2}}
  610. \fi}
  611. \def\fnum@figure{Figure \thefigure}
  612. \def\fnum@table{Table \thetable}
  613. % Strut macros for skipping spaces above and below text in tables.
  614. \def\abovestrut#1{\rule[0in]{0in}{#1}\ignorespaces}
  615. \def\belowstrut#1{\rule[-#1]{0in}{#1}\ignorespaces}
  616. \def\abovespace{\abovestrut{0.20in}}
  617. \def\aroundspace{\abovestrut{0.20in}\belowstrut{0.10in}}
  618. \def\belowspace{\belowstrut{0.10in}}
  619. % Various personal itemization commands.
  620. \def\texitem#1{\par\noindent\hangindent 12pt
  621. \hbox to 12pt {\hss #1 ~}\ignorespaces}
  622. \def\icmlitem{\texitem{$\bullet$}}
  623. % To comment out multiple lines of text.
  624. \long\def\comment#1{}
  625. %% Line counter (not in final version). Adapted from NIPS style file by Christoph Sawade
  626. % Vertical Ruler
  627. % This code is, largely, from the CVPR 2010 conference style file
  628. % ----- define vruler
  629. \makeatletter
  630. \newbox\icmlrulerbox
  631. \newcount\icmlrulercount
  632. \newdimen\icmlruleroffset
  633. \newdimen\cv@lineheight
  634. \newdimen\cv@boxheight
  635. \newbox\cv@tmpbox
  636. \newcount\cv@refno
  637. \newcount\cv@tot
  638. % NUMBER with left flushed zeros \fillzeros[<WIDTH>]<NUMBER>
  639. \newcount\cv@tmpc@ \newcount\cv@tmpc
  640. \def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi
  641. \cv@tmpc=1 %
  642. \loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi
  643. \ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat
  644. \ifnum#2<0\advance\cv@tmpc1\relax-\fi
  645. \loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat
  646. \cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}%
  647. % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
  648. \def\makevruler[#1][#2][#3][#4][#5]{
  649. \begingroup\offinterlineskip
  650. \textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt%
  651. \global\setbox\icmlrulerbox=\vbox to \textheight{%
  652. {
  653. \parskip=0pt\hfuzz=150em\cv@boxheight=\textheight
  654. \cv@lineheight=#1\global\icmlrulercount=#2%
  655. \cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2%
  656. \cv@refno1\vskip-\cv@lineheight\vskip1ex%
  657. \loop\setbox\cv@tmpbox=\hbox to0cm{ % side margin
  658. \hfil {\hfil\fillzeros[#4]\icmlrulercount}
  659. }%
  660. \ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break
  661. \advance\cv@refno1\global\advance\icmlrulercount#3\relax
  662. \ifnum\cv@refno<\cv@tot\repeat
  663. }
  664. }
  665. \endgroup
  666. }%
  667. \makeatother
  668. % ----- end of vruler
  669. % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
  670. \def\icmlruler#1{\makevruler[12pt][#1][1][3][\textheight]\usebox{\icmlrulerbox}}
  671. \AddToShipoutPicture{%
  672. \icmlruleroffset=\textheight
  673. \advance\icmlruleroffset by 5.2pt % top margin
  674. \color[rgb]{.7,.7,.7}
  675. \ifdefined\isaccepted \else
  676. \AtTextUpperLeft{%
  677. \put(\LenToUnit{-35pt},\LenToUnit{-\icmlruleroffset}){%left ruler
  678. \icmlruler{\icmlrulercount}}
  679. % \put(\LenToUnit{1.04\textwidth},\LenToUnit{-\icmlruleroffset}){%right ruler
  680. % \icmlruler{\icmlrulercount}}
  681. }
  682. \fi
  683. }
  684. \endinput