arxiv.sty 7.3 KB

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