|
| 1 | +\NeedsTeXFormat{LaTeX2e} |
| 2 | + |
| 3 | +\ProcessOptions\relax |
| 4 | + |
| 5 | +% fonts |
| 6 | +\renewcommand{\rmdefault}{ptm} |
| 7 | +\renewcommand{\sfdefault}{phv} |
| 8 | + |
| 9 | +% set page geometry |
| 10 | +\usepackage[verbose=true,letterpaper]{geometry} |
| 11 | +\AtBeginDocument{ |
| 12 | + \newgeometry{ |
| 13 | + textheight=9in, |
| 14 | + textwidth=6.5in, |
| 15 | + top=1in, |
| 16 | + headheight=14pt, |
| 17 | + headsep=25pt, |
| 18 | + footskip=30pt |
| 19 | + } |
| 20 | +} |
| 21 | + |
| 22 | +\widowpenalty=10000 |
| 23 | +\clubpenalty=10000 |
| 24 | +\flushbottom |
| 25 | +\sloppy |
| 26 | + |
| 27 | +\usepackage{fancyhdr} |
| 28 | +\fancyhf{} |
| 29 | +\pagestyle{fancy} |
| 30 | +\renewcommand{\headrulewidth}{0pt} |
| 31 | +\fancyheadoffset{0pt} |
| 32 | +% \rhead{\scshape A preprint - \today} |
| 33 | +\cfoot{\thepage} |
| 34 | + |
| 35 | + |
| 36 | +%Handling Keywords |
| 37 | +\def\keywordname{{\bfseries \emph Keywords}}% |
| 38 | +\def\keywords#1{\par\addvspace\medskipamount{\rightskip=0pt plus1cm |
| 39 | +\def\and{\ifhmode\unskip\nobreak\fi\ $\cdot$ |
| 40 | +}\noindent\keywordname\enspace\ignorespaces#1\par}} |
| 41 | + |
| 42 | +% font sizes with reduced leading |
| 43 | +\renewcommand{\normalsize}{% |
| 44 | + \@setfontsize\normalsize\@xpt\@xipt |
| 45 | + \abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@ |
| 46 | + \abovedisplayshortskip \z@ \@plus 3\p@ |
| 47 | + \belowdisplayskip \abovedisplayskip |
| 48 | + \belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@ |
| 49 | +} |
| 50 | +\normalsize |
| 51 | +\renewcommand{\small}{% |
| 52 | + \@setfontsize\small\@ixpt\@xpt |
| 53 | + \abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 4\p@ |
| 54 | + \abovedisplayshortskip \z@ \@plus 2\p@ |
| 55 | + \belowdisplayskip \abovedisplayskip |
| 56 | + \belowdisplayshortskip 3\p@ \@plus 2\p@ \@minus 2\p@ |
| 57 | +} |
| 58 | +\renewcommand{\footnotesize}{\@setfontsize\footnotesize\@ixpt\@xpt} |
| 59 | +\renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} |
| 60 | +\renewcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} |
| 61 | +\renewcommand{\large}{\@setfontsize\large\@xiipt{14}} |
| 62 | +\renewcommand{\Large}{\@setfontsize\Large\@xivpt{16}} |
| 63 | +\renewcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{20}} |
| 64 | +\renewcommand{\huge}{\@setfontsize\huge\@xxpt{23}} |
| 65 | +\renewcommand{\Huge}{\@setfontsize\Huge\@xxvpt{28}} |
| 66 | + |
| 67 | +% sections with less space |
| 68 | +\providecommand{\section}{} |
| 69 | +\renewcommand{\section}{% |
| 70 | + \@startsection{section}{1}{\z@}% |
| 71 | + {-2.0ex \@plus -0.5ex \@minus -0.2ex}% |
| 72 | + { 1.5ex \@plus 0.3ex \@minus 0.2ex}% |
| 73 | + {\large\bf\raggedright}% |
| 74 | +} |
| 75 | +\providecommand{\subsection}{} |
| 76 | +\renewcommand{\subsection}{% |
| 77 | + \@startsection{subsection}{2}{\z@}% |
| 78 | + {-1.8ex \@plus -0.5ex \@minus -0.2ex}% |
| 79 | + { 0.8ex \@plus 0.2ex}% |
| 80 | + {\normalsize\bf\raggedright}% |
| 81 | +} |
| 82 | +\providecommand{\subsubsection}{} |
| 83 | +\renewcommand{\subsubsection}{% |
| 84 | + \@startsection{subsubsection}{3}{\z@}% |
| 85 | + {-1.5ex \@plus -0.5ex \@minus -0.2ex}% |
| 86 | + { 0.5ex \@plus 0.2ex}% |
| 87 | + {\normalsize\bf\raggedright}% |
| 88 | +} |
| 89 | +\providecommand{\paragraph}{} |
| 90 | +\renewcommand{\paragraph}{% |
| 91 | + \@startsection{paragraph}{4}{\z@}% |
| 92 | + {1.5ex \@plus 0.5ex \@minus 0.2ex}% |
| 93 | + {-1em}% |
| 94 | + {\normalsize\bf}% |
| 95 | +} |
| 96 | +\providecommand{\subparagraph}{} |
| 97 | +\renewcommand{\subparagraph}{% |
| 98 | + \@startsection{subparagraph}{5}{\z@}% |
| 99 | + {1.5ex \@plus 0.5ex \@minus 0.2ex}% |
| 100 | + {-1em}% |
| 101 | + {\normalsize\bf}% |
| 102 | +} |
| 103 | +\providecommand{\subsubsubsection}{} |
| 104 | +\renewcommand{\subsubsubsection}{% |
| 105 | + \vskip5pt{\noindent\normalsize\rm\raggedright}% |
| 106 | +} |
| 107 | + |
| 108 | +% float placement |
| 109 | +\renewcommand{\topfraction }{0.85} |
| 110 | +\renewcommand{\bottomfraction }{0.4} |
| 111 | +\renewcommand{\textfraction }{0.1} |
| 112 | +\renewcommand{\floatpagefraction}{0.7} |
| 113 | + |
| 114 | +\newlength{\@abovecaptionskip}\setlength{\@abovecaptionskip}{7\p@} |
| 115 | +\newlength{\@belowcaptionskip}\setlength{\@belowcaptionskip}{\z@} |
| 116 | + |
| 117 | +\setlength{\abovecaptionskip}{\@abovecaptionskip} |
| 118 | +\setlength{\belowcaptionskip}{\@belowcaptionskip} |
| 119 | + |
| 120 | +% swap above/belowcaptionskip lengths for tables |
| 121 | +\renewenvironment{table} |
| 122 | + {\setlength{\abovecaptionskip}{\@belowcaptionskip}% |
| 123 | + \setlength{\belowcaptionskip}{\@abovecaptionskip}% |
| 124 | + \@float{table}} |
| 125 | + {\end@float} |
| 126 | + |
| 127 | +% footnote formatting |
| 128 | +\setlength{\footnotesep }{6.65\p@} |
| 129 | +\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@} |
| 130 | +\renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@} |
| 131 | +\setcounter{footnote}{0} |
| 132 | + |
| 133 | +% paragraph formatting |
| 134 | +\setlength{\parindent}{\z@} |
| 135 | +\setlength{\parskip }{5.5\p@} |
| 136 | + |
| 137 | +% list formatting |
| 138 | +\setlength{\topsep }{4\p@ \@plus 1\p@ \@minus 2\p@} |
| 139 | +\setlength{\partopsep }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@} |
| 140 | +\setlength{\itemsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@} |
| 141 | +\setlength{\parsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@} |
| 142 | +\setlength{\leftmargin }{3pc} |
| 143 | +\setlength{\leftmargini }{\leftmargin} |
| 144 | +\setlength{\leftmarginii }{2em} |
| 145 | +\setlength{\leftmarginiii}{1.5em} |
| 146 | +\setlength{\leftmarginiv }{1.0em} |
| 147 | +\setlength{\leftmarginv }{0.5em} |
| 148 | +\def\@listi {\leftmargin\leftmargini} |
| 149 | +\def\@listii {\leftmargin\leftmarginii |
| 150 | + \labelwidth\leftmarginii |
| 151 | + \advance\labelwidth-\labelsep |
| 152 | + \topsep 2\p@ \@plus 1\p@ \@minus 0.5\p@ |
| 153 | + \parsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@ |
| 154 | + \itemsep \parsep} |
| 155 | +\def\@listiii{\leftmargin\leftmarginiii |
| 156 | + \labelwidth\leftmarginiii |
| 157 | + \advance\labelwidth-\labelsep |
| 158 | + \topsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@ |
| 159 | + \parsep \z@ |
| 160 | + \partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@ |
| 161 | + \itemsep \topsep} |
| 162 | +\def\@listiv {\leftmargin\leftmarginiv |
| 163 | + \labelwidth\leftmarginiv |
| 164 | + \advance\labelwidth-\labelsep} |
| 165 | +\def\@listv {\leftmargin\leftmarginv |
| 166 | + \labelwidth\leftmarginv |
| 167 | + \advance\labelwidth-\labelsep} |
| 168 | +\def\@listvi {\leftmargin\leftmarginvi |
| 169 | + \labelwidth\leftmarginvi |
| 170 | + \advance\labelwidth-\labelsep} |
| 171 | + |
| 172 | +% create title |
| 173 | +\providecommand{\maketitle}{} |
| 174 | +\renewcommand{\maketitle}{% |
| 175 | + \par |
| 176 | + \begingroup |
| 177 | + \renewcommand{\thefootnote}{\fnsymbol{footnote}} |
| 178 | + % for perfect author name centering |
| 179 | + \renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}} |
| 180 | + % The footnote-mark was overlapping the footnote-text, |
| 181 | + % added the following to fix this problem (MK) |
| 182 | + \long\def\@makefntext##1{% |
| 183 | + \parindent 1em\noindent |
| 184 | + \hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1 |
| 185 | + } |
| 186 | + \thispagestyle{empty} |
| 187 | + \@maketitle |
| 188 | + \@thanks |
| 189 | + %\@notice |
| 190 | + \endgroup |
| 191 | + \let\maketitle\relax |
| 192 | + \let\thanks\relax |
| 193 | +} |
| 194 | + |
| 195 | +% rules for title box at top of first page |
| 196 | +\newcommand{\@toptitlebar}{ |
| 197 | + \hrule height 2\p@ |
| 198 | + \vskip 0.25in |
| 199 | + \vskip -\parskip% |
| 200 | +} |
| 201 | +\newcommand{\@bottomtitlebar}{ |
| 202 | + \vskip 0.29in |
| 203 | + \vskip -\parskip |
| 204 | + \hrule height 2\p@ |
| 205 | + \vskip 0.09in% |
| 206 | +} |
| 207 | + |
| 208 | +% create title (includes both anonymized and non-anonymized versions) |
| 209 | +\providecommand{\@maketitle}{} |
| 210 | +\renewcommand{\@maketitle}{% |
| 211 | + \vbox{% |
| 212 | + \hsize\textwidth |
| 213 | + \linewidth\hsize |
| 214 | + \vskip 0.1in |
| 215 | + \@toptitlebar |
| 216 | + \centering |
| 217 | + {\LARGE \@title\par} |
| 218 | + \@bottomtitlebar |
| 219 | + % \textsc{A Preprint}\\ |
| 220 | + % \vskip 0.1in |
| 221 | + \def\And{% |
| 222 | + \end{tabular}\hfil\linebreak[0]\hfil% |
| 223 | + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces% |
| 224 | + } |
| 225 | + \def\AND{% |
| 226 | + \end{tabular}\hfil\linebreak[4]\hfil% |
| 227 | + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces% |
| 228 | + } |
| 229 | + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}% |
| 230 | +% \vskip 0.4in \@minus 0.1in \center{\today} \vskip 0.2in |
| 231 | + \vskip 0.1in |
| 232 | + } |
| 233 | +} |
| 234 | + |
| 235 | +% add conference notice to bottom of first page |
| 236 | +\newcommand{\ftype@noticebox}{8} |
| 237 | +\newcommand{\@notice}{% |
| 238 | + % give a bit of extra room back to authors on first page |
| 239 | + \enlargethispage{2\baselineskip}% |
| 240 | + \@float{noticebox}[b]% |
| 241 | + \footnotesize\@noticestring% |
| 242 | + \end@float% |
| 243 | +} |
| 244 | + |
| 245 | +% abstract styling |
| 246 | +\renewenvironment{abstract} |
| 247 | +{ |
| 248 | + \centerline |
| 249 | + { \bfseries Abstract} |
| 250 | + \begin{quote} |
| 251 | +} |
| 252 | +{ |
| 253 | + \end{quote} |
| 254 | +} |
| 255 | + |
| 256 | +\endinput |
0 commit comments