No Description
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.

aistats2019.sty 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. % File: aistats2019.sty
  2. % Modified Atsushi Miyauchi, Mirai Tanaka and Akiko Takeda, 2018: changed venue,
  3. % year, volume number, and heading for the references, and removed tiny bugs.
  4. %
  5. % Modified Fernando Perez-Cruz, 2017: changed venue, year, and volume number.
  6. %
  7. % Modified Scott Alfeld, 2016: changed venue, year, and volume number.
  8. %
  9. % Modified Zoltan Szabo, 2015: change venue, year, volume number.
  10. %
  11. % Modified Antti Honkela, 2013: change venue, year
  12. %
  13. % Modified Miro Dudik, 2011, 2012: change venue, year and volume number
  14. %
  15. % Modified Geoff Gordon, 2010: change to 2011
  16. %
  17. % Modified Mauricio Alvarez, 2009. Headings for the manuscript when
  18. % being under review and additional changes so that the headings are
  19. % automatically obtained from the title and author fields from the tex
  20. % file. Also changes to the year 2009 for 2010 where it appeared.
  21. %
  22. % Modified Mauricio Alvarez, 2009. Copyright Notice and commands for headings
  23. %
  24. %
  25. % Originally this file contains the LaTeX formatting parameters for the Morgan
  26. % Kaufmann two column, 8 1/2 by 11 inch proceedings format.
  27. \NeedsTeXFormat{LaTeX2e}
  28. \ProvidesPackage{aistats2019}
  29. \RequirePackage{amsmath}
  30. \DeclareOption{accepted}{\renewcommand{\statePaper}{\acceptedPaper}%
  31. \renewcommand{\Notice@String}{\AISTATS@appearing}}
  32. \newcommand{\statePaper}{0}
  33. \newcommand{\acceptedPaper}{1}
  34. \newcommand{\Notice@String}{Preliminary work. Under review by AISTATS 2019. Do not distribute.}
  35. \newcommand{\AISTATS@appearing}{Proceedings of the 22\textsuperscript{nd} International Conference on Artificial
  36. Intelligence and Statistics (AISTATS) 2019, Naha, Okinawa, Japan\@. PMLR: Volume 89. Copyright
  37. 2019 by the author(s).}
  38. \ProcessOptions\relax
  39. \evensidemargin .05in \oddsidemargin .05in
  40. \setlength\topmargin{-25pt} \setlength\textheight{9.25in}
  41. \setlength\textwidth{6.75in} \setlength\columnsep{0.25in}
  42. \newlength\titlebox \setlength\titlebox{2.375in}
  43. \setlength\headheight{10pt} \setlength\headsep{15pt}
  44. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  45. %%%% To include the copyright legend at the end of
  46. %%%% the first column of the first page. Adapted from ICML09.sty
  47. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  48. \def\ftype@copyrightbox{8}
  49. \def\@copyrightspace{
  50. % Create a float object positioned at the bottom of the column. Note
  51. % that because of the mystical nature of floats, this has to be called
  52. % before the first column is populated with text (e.g., from the title
  53. % or abstract blocks). Otherwise, the text will force the float to
  54. % the next column. -- TDRL.
  55. \@float{copyrightbox}[b]
  56. \begin{center}
  57. \setlength{\unitlength}{1pc}
  58. \begin{picture}(20,2.5)
  59. % Create a line separating the main text from the note block.
  60. % 4.818pc==0.8in.
  61. \put(0,3.5){\line(1,0){4.818}}
  62. % Insert the text string itself. Note that the string has to be
  63. % enclosed in a parbox -- the \put call needs a box object to
  64. % position. Without the parbox, the text gets splattered across the
  65. % bottom of the page semi-randomly. The 19.75pc distance seems to be
  66. % the width of the column, though I can't find an appropriate distance
  67. % variable to substitute here. -- TDRL.
  68. \put(0,0){\parbox[b]{19.75pc}{\small \Notice@String}}
  69. \end{picture}
  70. \end{center}
  71. \end@float}
  72. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74. \setlength\footskip{0pt}
  75. \thispagestyle{empty} \pagestyle{empty}
  76. \flushbottom \twocolumn \sloppy
  77. \def\addcontentsline#1#2#3{}
  78. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  79. %%%%%% Definition of maketitle (includes title and author)
  80. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  81. \RequirePackage{fancyhdr}
  82. % box to check the size of the running head
  83. \newbox\titrun
  84. \newbox\autrun
  85. % general page style
  86. \pagestyle{fancy}
  87. \renewcommand{\headrulewidth}{0pt}
  88. \fancyhead{}
  89. \fancyfoot{}
  90. % definition to set running head title and running head author
  91. \def\runningtitle#1{\gdef\@runningtitle{#1}}
  92. \def\runningauthor#1{\gdef\@runningauthor{#1}}
  93. \long\def\aistatstitle#1{
  94. %\renewcommand{\headrulewidth}{0.5pt}
  95. \gdef\@runningheadingerrortitle{0}
  96. % If paper is under review print this as headings
  97. \ifnum\statePaper=0
  98. {
  99. \gdef\@runningtitle{Manuscript under review by AISTATS 2019}
  100. }
  101. \fi
  102. % If the paper is accepted, print the title or the running title as heading.
  103. \ifnum\statePaper=1
  104. {
  105. \ifx\undefined\@runningtitle
  106. {
  107. \gdef\@runningtitle{#1}
  108. }
  109. \fi
  110. }
  111. \fi
  112. \ifnum\@runningheadingerrortitle=0
  113. {
  114. \global\setbox\titrun=\vbox{\small\bfseries\@runningtitle}%
  115. \ifdim\wd\titrun>\textwidth%
  116. {\gdef\@runningheadingerrortitle{2}
  117. \gdef\@messagetitle{Running heading title too long}
  118. }%
  119. \else\ifdim\ht\titrun>10pt
  120. {\gdef\@runningheadingerrortitle{3}
  121. \gdef\@messagetitle{Running heading title breaks the line}
  122. }%
  123. \fi
  124. \fi
  125. }
  126. \fi
  127. \ifnum\@runningheadingerrortitle>0
  128. {
  129. \fancyhead[CE]{\small\bfseries\@messagetitle}
  130. \ifnum\@runningheadingerrortitle>1
  131. \typeout{}%
  132. \typeout{}%
  133. \typeout{*******************************************************}%
  134. \typeout{Running heading title exceeds size limitations for running head.}%
  135. \typeout{Please supply a shorter form for the running head}
  136. \typeout{with \string\runningtitle{...}\space just after \string\begin{document}}%
  137. \typeout{*******************************************************}%
  138. \typeout{}%
  139. \typeout{}%
  140. \fi
  141. }
  142. \else
  143. {
  144. \fancyhead[CE]{\small\bfseries\@runningtitle}
  145. }
  146. \fi
  147. \hsize\textwidth
  148. \linewidth\hsize \toptitlebar {\centering
  149. {\Large\bfseries #1 \par}}
  150. \bottomtitlebar \vskip 0.2in plus 1fil minus 0.1in
  151. }
  152. \long\def\aistatsauthor#1{
  153. \gdef\@runningheadingerrorauthor{0}
  154. % If the paper is under review, print this message as heading.
  155. \ifnum\statePaper=0
  156. {
  157. \gdef\@runningauthor{Manuscript under review by AISTATS 2019}
  158. }
  159. \fi
  160. % If the paper is accepted, print the author names or runningauthor as heading.
  161. \ifnum\statePaper=1
  162. {
  163. \ifx\undefined\@runningauthor%
  164. {
  165. \gdef\@runningauthor{\def\and{\unskip{,}\enspace}\def\And{\unskip{,}\enspace}\def\AND{\unskip{,}\enspace}
  166. #1}
  167. }
  168. \fi
  169. }
  170. \fi
  171. \ifnum\@runningheadingerrorauthor=0
  172. {
  173. \global\setbox\autrun=\vbox{\small\bfseries\@runningauthor}
  174. \ifdim\wd\autrun>\textwidth%
  175. {\gdef\@runningheadingerrorauthor{2}
  176. \gdef\@messageauthor{Running heading author too long}
  177. }%
  178. \else\ifdim\ht\autrun>10pt
  179. {\gdef\@runningheadingerrorauthor{3}
  180. \gdef\@messageauthor{Running heading author breaks the line}
  181. }%
  182. \fi
  183. \fi
  184. }
  185. \fi
  186. \ifnum\@runningheadingerrorauthor>0
  187. {
  188. \fancyhead[CO]{\small\bfseries\@messageauthor}
  189. \ifnum\@runningheadingerrorauthor>1
  190. \typeout{}%
  191. \typeout{}%
  192. \typeout{*******************************************************}%
  193. \typeout{Running heading author exceeds size limitations for running head.}%
  194. \typeout{Please supply a shorter form for the running head}
  195. \typeout{with \string\runningauthor{...}\space just after \string\begin{document}}%
  196. \typeout{*******************************************************}%
  197. \typeout{}%
  198. \typeout{}%
  199. \fi
  200. }
  201. \else
  202. {
  203. \fancyhead[CO]{\small\bfseries\@runningauthor}
  204. }
  205. \fi
  206. {\def\and{\unskip\enspace{\rm and}\enspace}%
  207. \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil
  208. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bfseries}%
  209. \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
  210. \vskip 0.25in plus 1fil minus 0.125in
  211. \hbox to \linewidth\bgroup \hfil\hfil
  212. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bfseries}
  213. \def\ANDD{\end{tabular}\hss\egroup \hfil\hfil\egroup
  214. \vskip 0.25in plus 1fil minus 0.125in
  215. \hbox to \linewidth\bgroup \hfil\hfil
  216. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bfseries}
  217. \hbox to \linewidth\bgroup \hfil\hfil
  218. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bfseries #1
  219. \end{tabular}
  220. \hss\egroup
  221. \hfil\hfil\egroup}
  222. }
  223. \long\def\aistatsaddress#1{
  224. {\def\and{\unskip\enspace{\rm and}\enspace}%
  225. \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil
  226. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c} }%
  227. \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
  228. \vskip 0.25in plus 1fil minus 0.125in
  229. \hbox to \linewidth\bgroup \hfil\hfil
  230. \hbox to 0pt \bgroup \hss \begin{tabular}[t]{c}}
  231. \def\ANDD{\end{tabular}\hss\egroup \hfil\hfil\egroup
  232. \vskip 0.25in plus 1fil minus 0.125in
  233. \hbox to \linewidth \bgroup \hfil\hfil
  234. \hbox to 0pt \bgroup \hss\begin{tabular}[t]{c}\bfseries}
  235. \hbox to \linewidth\bgroup \hfil\hfil
  236. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c} #1
  237. \end{tabular}
  238. \hss\egroup
  239. \hfil\hfil\egroup}
  240. \vskip 0.3in plus 2fil minus 0.1in
  241. }
  242. \renewcommand{\headrulewidth}{0.5pt}
  243. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  244. %%% Definition of abstract environment
  245. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  246. \renewenvironment{abstract}
  247. {\@copyrightspace\centerline{\large\bfseries
  248. Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex}
  249. % sections with less space
  250. \def\section{\@startsection {section}{1}{\z@}{-2.0ex plus
  251. -0.5ex minus -.2ex}{1.5ex plus 0.3ex minus .2ex}{\large\bfseries\raggedright}}
  252. \def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus
  253. -0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bfseries\raggedright}}
  254. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex plus
  255. -0.5ex minus -.2ex}{0.5ex plus .2ex}{\normalsize\bfseries\raggedright}}
  256. \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus
  257. 0.5ex minus .2ex}{-1em}{\normalsize\bfseries}}
  258. \def\subparagraph{\@startsection{subparagraph}{5}{\z@}{1.5ex plus
  259. 0.5ex minus .2ex}{-1em}{\normalsize\bfseries}}
  260. \def\subsubsubsection{\vskip 5pt{\noindent\normalsize\rm\raggedright}}
  261. % Footnotes
  262. \footnotesep 6.65pt %
  263. \skip\footins 9pt plus 4pt minus 2pt
  264. \def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
  265. \setcounter{footnote}{0}
  266. % Lists and paragraphs
  267. \parindent 0pt
  268. \topsep 4pt plus 1pt minus 2pt
  269. \partopsep 1pt plus 0.5pt minus 0.5pt
  270. \itemsep 2pt plus 1pt minus 0.5pt
  271. \parsep 2pt plus 1pt minus 0.5pt
  272. \parskip .5pc
  273. \leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
  274. \leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em
  275. \leftmarginvi .5em
  276. \labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt
  277. \def\@listi{\leftmargin\leftmargini}
  278. \def\@listii{\leftmargin\leftmarginii
  279. \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  280. \topsep 2pt plus 1pt minus 0.5pt
  281. \parsep 1pt plus 0.5pt minus 0.5pt
  282. \itemsep \parsep}
  283. \def\@listiii{\leftmargin\leftmarginiii
  284. \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  285. \topsep 1pt plus 0.5pt minus 0.5pt
  286. \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt
  287. \itemsep \topsep}
  288. \def\@listiv{\leftmargin\leftmarginiv
  289. \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  290. \def\@listv{\leftmargin\leftmarginv
  291. \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  292. \def\@listvi{\leftmargin\leftmarginvi
  293. \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  294. \abovedisplayskip 7pt plus2pt minus5pt%
  295. \belowdisplayskip \abovedisplayskip
  296. \abovedisplayshortskip 0pt plus3pt%
  297. \belowdisplayshortskip 4pt plus3pt minus3pt%
  298. % Less leading in most fonts (due to the narrow columns)
  299. % The choices were between 1-pt and 1.5-pt leading
  300. \def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}
  301. \def\small{\@setsize\small{10pt}\ixpt\@ixpt}
  302. \def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}
  303. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  304. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  305. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  306. \def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
  307. \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
  308. \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
  309. \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}
  310. \def\toptitlebar{
  311. \hrule height4pt
  312. \vskip .25in}
  313. \def\bottomtitlebar{
  314. \vskip .25in
  315. \hrule height1pt
  316. \vskip .25in}
  317. \renewenvironment{thebibliography}[1]
  318. {\subsubsection*{\refname}%
  319. \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
  320. \list{\@biblabel{\@arabic\c@enumiv}}%
  321. {\settowidth\labelwidth{\@biblabel{#1}}%
  322. \leftmargin\labelwidth
  323. \advance\leftmargin\labelsep
  324. \@openbib@code
  325. \usecounter{enumiv}%
  326. \let\p@enumiv\@empty
  327. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  328. \sloppy
  329. \clubpenalty4000
  330. \@clubpenalty \clubpenalty
  331. \widowpenalty4000%
  332. \sfcode`\.\@m}
  333. {\def\@noitemerr
  334. {\@latex@warning{Empty `thebibliography' environment}}%
  335. \endlist}