tmlr.sty (6560B)
1 %%%% TMLR Macros (LaTex) 2 %%%% Adapted by Hugo Larochelle and Fabian Pedregosa from the 3 %%%% ICLR stylefile Macros and borrowing from the JMLR Macros 4 %%%% Style File 5 6 %%%% Last edited, January 2021 by Chris J. Maddison 7 %%%% Change font choice 8 9 % Change the overall width of the page. If these parameters are 10 % changed, they will require corresponding changes in the 11 % maketitle section. 12 % 13 \usepackage{eso-pic} % used by \AddToShipoutPicture 14 \RequirePackage{fancyhdr} 15 \RequirePackage{natbib} 16 17 \usepackage[T1]{fontenc} 18 \usepackage{lmodern} 19 20 % modification to natbib citations 21 \setcitestyle{authoryear,round,citesep={;},aysep={,},yysep={;}} 22 23 \renewcommand{\topfraction}{0.95} % let figure take up nearly whole page 24 \renewcommand{\textfraction}{0.05} % let figure take up nearly whole page 25 26 27 %%%%%%%% Options 28 \newif\if@accepted\@acceptedfalse 29 \DeclareOption{accepted}{% 30 \@acceptedtrue 31 } 32 % declare preprint option, which creates a preprint version ready for 33 % upload to, e.g., arXiv 34 \newif\if@preprint\@preprintfalse 35 \DeclareOption{preprint}{ 36 \@preprinttrue 37 \@acceptedtrue 38 } 39 40 \DeclareOption*{\PackageWarning{tmlr}{Unknown ‘\CurrentOption’}} 41 \ProcessOptions\relax 42 43 % Specify the dimensions of each page 44 45 \setlength{\paperheight}{11in} 46 \setlength{\paperwidth}{8.5in} 47 48 49 \oddsidemargin 0in % Note \oddsidemargin = \evensidemargin 50 \evensidemargin 0in 51 \marginparwidth 0.07 true in 52 %\marginparwidth 0.75 true in 53 %\topmargin 0 true pt % Nominal distance from top of page to top of 54 %\topmargin 0.125in 55 \topmargin -0.625in 56 \addtolength{\headsep}{0.25in} 57 \textheight 9.0 true in % Height of text (including footnotes & figures) 58 \textwidth 6.5 true in % Width of text line. 59 \widowpenalty=10000 60 \clubpenalty=10000 61 62 63 % \thispagestyle{empty} \pagestyle{empty} 64 \flushbottom \sloppy 65 66 % We're never going to need a table of contents, so just flush it to 67 % save space --- suggested by drstrip@sandia-2 68 \def\addcontentsline#1#2#3{} 69 70 % Title stuff, taken from deproc. 71 \def\maketitle{\par 72 \begingroup 73 \def\thefootnote{\fnsymbol{footnote}} 74 \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} % for perfect author 75 % name centering 76 % The footnote-mark was overlapping the footnote-text, 77 % added the following to fix this problem (MK) 78 \long\def\@makefntext##1{\parindent 1em\noindent 79 \hbox to1.8em{\hss $\m@th ^{\@thefnmark}$}##1} 80 \@maketitle \@thanks 81 \endgroup 82 \setcounter{footnote}{0} 83 \let\maketitle\relax \let\@maketitle\relax 84 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax} 85 86 \newlength\aftertitskip \newlength\beforetitskip 87 \newlength\interauthorskip \newlength\aftermaketitskip 88 89 %% Changeable parameters. 90 \setlength\aftertitskip{0.3in plus 0.2in minus 0.2in} 91 \setlength\beforetitskip{0.05in plus 0.08in minus 0.08in} 92 \setlength\interauthorskip{0.08in plus 0.1in minus 0.1in} 93 \setlength\aftermaketitskip{0.3in plus 0.1in minus 0.1in} 94 95 \def\@startauthor{\noindent \normalsize\bf} 96 \def\@endauthor{} 97 98 \def\addr{\small\it}% 99 \def\email{\hfill\small\it}% 100 \def\name{\normalsize\bf}% 101 \def\name{\normalsize\bf}% 102 \def\AND{\@endauthor\rm\hss \vskip \interauthorskip \@startauthor} 103 104 % The toptitlebar has been raised to top-justify the first page 105 106 \usepackage{fancyhdr} 107 \pagestyle{fancy} 108 \fancyhead{} 109 110 \if@accepted 111 \if@preprint 112 \lhead{} 113 \else 114 \lhead{Published in Transactions on Machine Learning Research (\month/\year)} 115 \fi 116 \else 117 \lhead{Under review as submission to TMLR} 118 \fi 119 120 % Title (includes both anonymized and non-anonymized versions) 121 \def\@maketitle{\vbox{\hsize\textwidth 122 %\linewidth\hsize \vskip 0.1in \toptitlebar \centering 123 {\LARGE\bf\sffamily \@title\par}\vskip \aftertitskip 124 %\bottomtitlebar % \vskip 0.1in % minus 125 \if@accepted 126 \if@preprint 127 \@startauthor \@author \@endauthor 128 \else 129 \@startauthor \@author \\ \\ {\bf Reviewed on OpenReview:} \openreview \@endauthor 130 \fi 131 \else 132 \@startauthor Anonymous authors\\Paper under double-blind review \@endauthor 133 \fi 134 \vskip 0.3in minus 0.1in}} 135 136 \renewenvironment{abstract}{\vskip.075in\centerline{\large\bf\sffamily 137 Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex} 138 139 % sections with less space 140 \def\section{\@startsection {section}{1}{\z@}{-2.0ex plus 141 -0.5ex minus -.2ex}{1.5ex plus 0.3ex 142 minus0.2ex}{\large\bf\raggedright\sffamily}} 143 144 \def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus 145 -0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright\sffamily}} 146 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex 147 plus -0.5ex minus -.2ex}{0.5ex plus 148 .2ex}{\normalsize\bf\raggedright\sffamily}} 149 \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus 150 0.5ex minus .2ex}{-1em}{\normalsize\bf}} 151 \def\subparagraph{\@startsection{subparagraph}{5}{\z@}{1.5ex plus 152 0.5ex minus .2ex}{-1em}{\normalsize\bf}} 153 \def\subsubsubsection{\vskip 154 5pt{\noindent\normalsize\rm\raggedright\sffamily}} 155 156 157 % Footnotes 158 \footnotesep 6.65pt % 159 \skip\footins 9pt plus 4pt minus 2pt 160 \def\footnoterule{\kern-3pt \hrule width 12pc \kern 2.6pt } 161 \setcounter{footnote}{0} 162 163 % Lists and paragraphs 164 \parindent 0pt 165 \topsep 4pt plus 1pt minus 2pt 166 \partopsep 1pt plus 0.5pt minus 0.5pt 167 \itemsep 2pt plus 1pt minus 0.5pt 168 \parsep 2pt plus 1pt minus 0.5pt 169 \parskip .5pc 170 171 172 %\leftmargin2em 173 \leftmargin3pc 174 \leftmargini\leftmargin \leftmarginii 2em 175 \leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em 176 177 %\labelsep \labelsep 5pt 178 179 \def\@listi{\leftmargin\leftmargini} 180 \def\@listii{\leftmargin\leftmarginii 181 \labelwidth\leftmarginii\advance\labelwidth-\labelsep 182 \topsep 2pt plus 1pt minus 0.5pt 183 \parsep 1pt plus 0.5pt minus 0.5pt 184 \itemsep \parsep} 185 \def\@listiii{\leftmargin\leftmarginiii 186 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep 187 \topsep 1pt plus 0.5pt minus 0.5pt 188 \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt 189 \itemsep \topsep} 190 \def\@listiv{\leftmargin\leftmarginiv 191 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep} 192 \def\@listv{\leftmargin\leftmarginv 193 \labelwidth\leftmarginv\advance\labelwidth-\labelsep} 194 \def\@listvi{\leftmargin\leftmarginvi 195 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep} 196 197 \abovedisplayskip 7pt plus2pt minus5pt% 198 \belowdisplayskip \abovedisplayskip 199 \abovedisplayshortskip 0pt plus3pt% 200 \belowdisplayshortskip 4pt plus3pt minus3pt% 201 202 203 \def\toptitlebar{\hrule height4pt\vskip .25in\vskip-\parskip} 204 205 \def\bottomtitlebar{\vskip .29in\vskip-\parskip\hrule height1pt\vskip 206 .09in} %