acl2020.sty 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. % This is the LaTex style file for ACL 2020, based off of ACL 2019.
  2. % Addressing bibtex issues mentioned in https://github.com/acl-org/acl-pub/issues/2
  3. % Other major modifications include
  4. % changing the color of the line numbers to a light gray; changing font size of abstract to be 10pt; changing caption font size to be 10pt.
  5. % -- M Mitchell and Stephanie Lukin
  6. % 2017: modified to support DOI links in bibliography. Now uses
  7. % natbib package rather than defining citation commands in this file.
  8. % Use with acl_natbib.bst bib style. -- Dan Gildea
  9. % This is the LaTeX style for ACL 2016. It contains Margaret Mitchell's
  10. % line number adaptations (ported by Hai Zhao and Yannick Versley).
  11. % It is nearly identical to the style files for ACL 2015,
  12. % ACL 2014, EACL 2006, ACL2005, ACL 2002, ACL 2001, ACL 2000,
  13. % EACL 95 and EACL 99.
  14. %
  15. % Changes made include: adapt layout to A4 and centimeters, widen abstract
  16. % This is the LaTeX style file for ACL 2000. It is nearly identical to the
  17. % style files for EACL 95 and EACL 99. Minor changes include editing the
  18. % instructions to reflect use of \documentclass rather than \documentstyle
  19. % and removing the white space before the title on the first page
  20. % -- John Chen, June 29, 2000
  21. % This is the LaTeX style file for EACL-95. It is identical to the
  22. % style file for ANLP '94 except that the margins are adjusted for A4
  23. % paper. -- abney 13 Dec 94
  24. % The ANLP '94 style file is a slightly modified
  25. % version of the style used for AAAI and IJCAI, using some changes
  26. % prepared by Fernando Pereira and others and some minor changes
  27. % by Paul Jacobs.
  28. % Papers prepared using the aclsub.sty file and acl.bst bibtex style
  29. % should be easily converted to final format using this style.
  30. % (1) Submission information (\wordcount, \subject, and \makeidpage)
  31. % should be removed.
  32. % (2) \summary should be removed. The summary material should come
  33. % after \maketitle and should be in the ``abstract'' environment
  34. % (between \begin{abstract} and \end{abstract}).
  35. % (3) Check all citations. This style should handle citations correctly
  36. % and also allows multiple citations separated by semicolons.
  37. % (4) Check figures and examples. Because the final format is double-
  38. % column, some adjustments may have to be made to fit text in the column
  39. % or to choose full-width (\figure*} figures.
  40. % Place this in a file called aclap.sty in the TeX search path.
  41. % (Placing it in the same directory as the paper should also work.)
  42. % Prepared by Peter F. Patel-Schneider, liberally using the ideas of
  43. % other style hackers, including Barbara Beeton.
  44. % This style is NOT guaranteed to work. It is provided in the hope
  45. % that it will make the preparation of papers easier.
  46. %
  47. % There are undoubtably bugs in this style. If you make bug fixes,
  48. % improvements, etc. please let me know. My e-mail address is:
  49. % pfps@research.att.com
  50. % Papers are to be prepared using the ``acl_natbib'' bibliography style,
  51. % as follows:
  52. % \documentclass[11pt]{article}
  53. % \usepackage{acl2000}
  54. % \title{Title}
  55. % \author{Author 1 \and Author 2 \\ Address line \\ Address line \And
  56. % Author 3 \\ Address line \\ Address line}
  57. % \begin{document}
  58. % ...
  59. % \bibliography{bibliography-file}
  60. % \bibliographystyle{acl_natbib}
  61. % \end{document}
  62. % Author information can be set in various styles:
  63. % For several authors from the same institution:
  64. % \author{Author 1 \and ... \and Author n \\
  65. % Address line \\ ... \\ Address line}
  66. % if the names do not fit well on one line use
  67. % Author 1 \\ {\bf Author 2} \\ ... \\ {\bf Author n} \\
  68. % For authors from different institutions:
  69. % \author{Author 1 \\ Address line \\ ... \\ Address line
  70. % \And ... \And
  71. % Author n \\ Address line \\ ... \\ Address line}
  72. % To start a seperate ``row'' of authors use \AND, as in
  73. % \author{Author 1 \\ Address line \\ ... \\ Address line
  74. % \AND
  75. % Author 2 \\ Address line \\ ... \\ Address line \And
  76. % Author 3 \\ Address line \\ ... \\ Address line}
  77. % If the title and author information does not fit in the area allocated,
  78. % place \setlength\titlebox{<new height>} right after
  79. % \usepackage{acl2015}
  80. % where <new height> can be something larger than 5cm
  81. % include hyperref, unless user specifies nohyperref option like this:
  82. % \usepackage[nohyperref]{naaclhlt2018}
  83. \newif\ifacl@hyperref
  84. \DeclareOption{hyperref}{\acl@hyperreftrue}
  85. \DeclareOption{nohyperref}{\acl@hyperreffalse}
  86. \ExecuteOptions{hyperref} % default is to use hyperref
  87. \ProcessOptions\relax
  88. \ifacl@hyperref
  89. \RequirePackage{hyperref}
  90. \usepackage{xcolor} % make links dark blue
  91. \definecolor{darkblue}{rgb}{0, 0, 0.5}
  92. \hypersetup{colorlinks=true,citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue}
  93. \else
  94. % This definition is used if the hyperref package is not loaded.
  95. % It provides a backup, no-op definiton of \href.
  96. % This is necessary because \href command is used in the acl_natbib.bst file.
  97. \def\href#1#2{{#2}}
  98. % We still need to load xcolor in this case because the lighter line numbers require it. (SC/KG/WL)
  99. \usepackage{xcolor}
  100. \fi
  101. \typeout{Conference Style for ACL 2019}
  102. % NOTE: Some laser printers have a serious problem printing TeX output.
  103. % These printing devices, commonly known as ``write-white'' laser
  104. % printers, tend to make characters too light. To get around this
  105. % problem, a darker set of fonts must be created for these devices.
  106. %
  107. \newcommand{\Thanks}[1]{\thanks{\ #1}}
  108. % A4 modified by Eneko; again modified by Alexander for 5cm titlebox
  109. \setlength{\paperwidth}{21cm} % A4
  110. \setlength{\paperheight}{29.7cm}% A4
  111. \setlength\topmargin{-0.5cm}
  112. \setlength\oddsidemargin{0cm}
  113. \setlength\textheight{24.7cm}
  114. \setlength\textwidth{16.0cm}
  115. \setlength\columnsep{0.6cm}
  116. \newlength\titlebox
  117. \setlength\titlebox{5cm}
  118. \setlength\headheight{5pt}
  119. \setlength\headsep{0pt}
  120. \thispagestyle{empty}
  121. \pagestyle{empty}
  122. \flushbottom \twocolumn \sloppy
  123. % We're never going to need a table of contents, so just flush it to
  124. % save space --- suggested by drstrip@sandia-2
  125. \def\addcontentsline#1#2#3{}
  126. \newif\ifaclfinal
  127. \aclfinalfalse
  128. \def\aclfinalcopy{\global\aclfinaltrue}
  129. %% ----- Set up hooks to repeat content on every page of the output doc,
  130. %% necessary for the line numbers in the submitted version. --MM
  131. %%
  132. %% Copied from CVPR 2015's cvpr_eso.sty, which appears to be largely copied from everyshi.sty.
  133. %%
  134. %% Original cvpr_eso.sty available at: http://www.pamitc.org/cvpr15/author_guidelines.php
  135. %% Original evershi.sty available at: https://www.ctan.org/pkg/everyshi
  136. %%
  137. %% Copyright (C) 2001 Martin Schr\"oder:
  138. %%
  139. %% Martin Schr"oder
  140. %% Cr"usemannallee 3
  141. %% D-28213 Bremen
  142. %% Martin.Schroeder@ACM.org
  143. %%
  144. %% This program may be redistributed and/or modified under the terms
  145. %% of the LaTeX Project Public License, either version 1.0 of this
  146. %% license, or (at your option) any later version.
  147. %% The latest version of this license is in
  148. %% CTAN:macros/latex/base/lppl.txt.
  149. %%
  150. %% Happy users are requested to send [Martin] a postcard. :-)
  151. %%
  152. \newcommand{\@EveryShipoutACL@Hook}{}
  153. \newcommand{\@EveryShipoutACL@AtNextHook}{}
  154. \newcommand*{\EveryShipoutACL}[1]
  155. {\g@addto@macro\@EveryShipoutACL@Hook{#1}}
  156. \newcommand*{\AtNextShipoutACL@}[1]
  157. {\g@addto@macro\@EveryShipoutACL@AtNextHook{#1}}
  158. \newcommand{\@EveryShipoutACL@Shipout}{%
  159. \afterassignment\@EveryShipoutACL@Test
  160. \global\setbox\@cclv= %
  161. }
  162. \newcommand{\@EveryShipoutACL@Test}{%
  163. \ifvoid\@cclv\relax
  164. \aftergroup\@EveryShipoutACL@Output
  165. \else
  166. \@EveryShipoutACL@Output
  167. \fi%
  168. }
  169. \newcommand{\@EveryShipoutACL@Output}{%
  170. \@EveryShipoutACL@Hook%
  171. \@EveryShipoutACL@AtNextHook%
  172. \gdef\@EveryShipoutACL@AtNextHook{}%
  173. \@EveryShipoutACL@Org@Shipout\box\@cclv%
  174. }
  175. \newcommand{\@EveryShipoutACL@Org@Shipout}{}
  176. \newcommand*{\@EveryShipoutACL@Init}{%
  177. \message{ABD: EveryShipout initializing macros}%
  178. \let\@EveryShipoutACL@Org@Shipout\shipout
  179. \let\shipout\@EveryShipoutACL@Shipout
  180. }
  181. \AtBeginDocument{\@EveryShipoutACL@Init}
  182. %% ----- Set up for placing additional items into the submitted version --MM
  183. %%
  184. %% Based on eso-pic.sty
  185. %%
  186. %% Original available at: https://www.ctan.org/tex-archive/macros/latex/contrib/eso-pic
  187. %% Copyright (C) 1998-2002 by Rolf Niepraschk <niepraschk@ptb.de>
  188. %%
  189. %% Which may be distributed and/or modified under the conditions of
  190. %% the LaTeX Project Public License, either version 1.2 of this license
  191. %% or (at your option) any later version. The latest version of this
  192. %% license is in:
  193. %%
  194. %% http://www.latex-project.org/lppl.txt
  195. %%
  196. %% and version 1.2 or later is part of all distributions of LaTeX version
  197. %% 1999/12/01 or later.
  198. %%
  199. %% In contrast to the original, we do not include the definitions for/using:
  200. %% gridpicture, div[2], isMEMOIR[1], gridSetup[6][], subgridstyle{dotted}, labelfactor{}, gap{}, gridunitname{}, gridunit{}, gridlines{\thinlines}, subgridlines{\thinlines}, the {keyval} package, evenside margin, nor any definitions with 'color'.
  201. %%
  202. %% These are beyond what is needed for the NAACL/ACL style.
  203. %%
  204. \newcommand\LenToUnit[1]{#1\@gobble}
  205. \newcommand\AtPageUpperLeft[1]{%
  206. \begingroup
  207. \@tempdima=0pt\relax\@tempdimb=\ESO@yoffsetI\relax
  208. \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){#1}%
  209. \endgroup
  210. }
  211. \newcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
  212. \put(0,\LenToUnit{-\paperheight}){#1}}}
  213. \newcommand\AtPageCenter[1]{\AtPageUpperLeft{%
  214. \put(\LenToUnit{.5\paperwidth},\LenToUnit{-.5\paperheight}){#1}}}
  215. \newcommand\AtPageLowerCenter[1]{\AtPageUpperLeft{%
  216. \put(\LenToUnit{.5\paperwidth},\LenToUnit{-\paperheight}){#1}}}%
  217. \newcommand\AtPageLowishCenter[1]{\AtPageUpperLeft{%
  218. \put(\LenToUnit{.5\paperwidth},\LenToUnit{-.96\paperheight}){#1}}}
  219. \newcommand\AtTextUpperLeft[1]{%
  220. \begingroup
  221. \setlength\@tempdima{1in}%
  222. \advance\@tempdima\oddsidemargin%
  223. \@tempdimb=\ESO@yoffsetI\relax\advance\@tempdimb-1in\relax%
  224. \advance\@tempdimb-\topmargin%
  225. \advance\@tempdimb-\headheight\advance\@tempdimb-\headsep%
  226. \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){#1}%
  227. \endgroup
  228. }
  229. \newcommand\AtTextLowerLeft[1]{\AtTextUpperLeft{%
  230. \put(0,\LenToUnit{-\textheight}){#1}}}
  231. \newcommand\AtTextCenter[1]{\AtTextUpperLeft{%
  232. \put(\LenToUnit{.5\textwidth},\LenToUnit{-.5\textheight}){#1}}}
  233. \newcommand{\ESO@HookI}{} \newcommand{\ESO@HookII}{}
  234. \newcommand{\ESO@HookIII}{}
  235. \newcommand{\AddToShipoutPicture}{%
  236. \@ifstar{\g@addto@macro\ESO@HookII}{\g@addto@macro\ESO@HookI}}
  237. \newcommand{\ClearShipoutPicture}{\global\let\ESO@HookI\@empty}
  238. \newcommand{\@ShipoutPicture}{%
  239. \bgroup
  240. \@tempswafalse%
  241. \ifx\ESO@HookI\@empty\else\@tempswatrue\fi%
  242. \ifx\ESO@HookII\@empty\else\@tempswatrue\fi%
  243. \ifx\ESO@HookIII\@empty\else\@tempswatrue\fi%
  244. \if@tempswa%
  245. \@tempdima=1in\@tempdimb=-\@tempdima%
  246. \advance\@tempdimb\ESO@yoffsetI%
  247. \unitlength=1pt%
  248. \global\setbox\@cclv\vbox{%
  249. \vbox{\let\protect\relax
  250. \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)%
  251. \ESO@HookIII\ESO@HookI\ESO@HookII%
  252. \global\let\ESO@HookII\@empty%
  253. \endpicture}%
  254. \nointerlineskip%
  255. \box\@cclv}%
  256. \fi
  257. \egroup
  258. }
  259. \EveryShipoutACL{\@ShipoutPicture}
  260. \newif\ifESO@dvips\ESO@dvipsfalse
  261. \newif\ifESO@grid\ESO@gridfalse
  262. \newif\ifESO@texcoord\ESO@texcoordfalse
  263. \newcommand*\ESO@griddelta{}\newcommand*\ESO@griddeltaY{}
  264. \newcommand*\ESO@gridDelta{}\newcommand*\ESO@gridDeltaY{}
  265. \newcommand*\ESO@yoffsetI{}\newcommand*\ESO@yoffsetII{}
  266. \ifESO@texcoord
  267. \def\ESO@yoffsetI{0pt}\def\ESO@yoffsetII{-\paperheight}
  268. \edef\ESO@griddeltaY{-\ESO@griddelta}\edef\ESO@gridDeltaY{-\ESO@gridDelta}
  269. \else
  270. \def\ESO@yoffsetI{\paperheight}\def\ESO@yoffsetII{0pt}
  271. \edef\ESO@griddeltaY{\ESO@griddelta}\edef\ESO@gridDeltaY{\ESO@gridDelta}
  272. \fi
  273. %% ----- Submitted version markup: Page numbers, ruler, and confidentiality. Using ideas/code from cvpr.sty 2015. --MM
  274. \font\aclhv = phvb at 8pt
  275. %% Define vruler %%
  276. %\makeatletter
  277. \newbox\aclrulerbox
  278. \newcount\aclrulercount
  279. \newdimen\aclruleroffset
  280. \newdimen\cv@lineheight
  281. \newdimen\cv@boxheight
  282. \newbox\cv@tmpbox
  283. \newcount\cv@refno
  284. \newcount\cv@tot
  285. % NUMBER with left flushed zeros \fillzeros[<WIDTH>]<NUMBER>
  286. \newcount\cv@tmpc@ \newcount\cv@tmpc
  287. \def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi
  288. \cv@tmpc=1 %
  289. \loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi
  290. \ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat
  291. \ifnum#2<0\advance\cv@tmpc1\relax-\fi
  292. \loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat
  293. \cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}%
  294. % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
  295. \def\makevruler[#1][#2][#3][#4][#5]{\begingroup\offinterlineskip
  296. \textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt%
  297. \global\setbox\aclrulerbox=\vbox to \textheight{%
  298. {\parskip=0pt\hfuzz=150em\cv@boxheight=\textheight
  299. \color{gray}
  300. \cv@lineheight=#1\global\aclrulercount=#2%
  301. \cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2%
  302. \cv@refno1\vskip-\cv@lineheight\vskip1ex%
  303. \loop\setbox\cv@tmpbox=\hbox to0cm{{\aclhv\hfil\fillzeros[#4]\aclrulercount}}%
  304. \ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break
  305. \advance\cv@refno1\global\advance\aclrulercount#3\relax
  306. \ifnum\cv@refno<\cv@tot\repeat}}\endgroup}%
  307. %\makeatother
  308. \def\aclpaperid{***}
  309. \def\confidential{\textcolor{black}{ACL 2020 Submission~\aclpaperid. Confidential Review Copy. DO NOT DISTRIBUTE.}}
  310. %% Page numbering, Vruler and Confidentiality %%
  311. % \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
  312. % SC/KG/WL - changed line numbering to gainsboro
  313. \definecolor{gainsboro}{rgb}{0.8, 0.8, 0.8}
  314. %\def\aclruler#1{\makevruler[14.17pt][#1][1][3][\textheight]\usebox{\aclrulerbox}} %% old line
  315. \def\aclruler#1{\textcolor{gainsboro}{\makevruler[14.17pt][#1][1][3][\textheight]\usebox{\aclrulerbox}}}
  316. \def\leftoffset{-2.1cm} %original: -45pt
  317. \def\rightoffset{17.5cm} %original: 500pt
  318. \ifaclfinal\else\pagenumbering{arabic}
  319. \AddToShipoutPicture{%
  320. \ifaclfinal\else
  321. \AtPageLowishCenter{\textcolor{black}{\thepage}}
  322. \aclruleroffset=\textheight
  323. \advance\aclruleroffset4pt
  324. \AtTextUpperLeft{%
  325. \put(\LenToUnit{\leftoffset},\LenToUnit{-\aclruleroffset}){%left ruler
  326. \aclruler{\aclrulercount}}
  327. \put(\LenToUnit{\rightoffset},\LenToUnit{-\aclruleroffset}){%right ruler
  328. \aclruler{\aclrulercount}}
  329. }
  330. \AtTextUpperLeft{%confidential
  331. \put(0,\LenToUnit{1cm}){\parbox{\textwidth}{\centering\aclhv\confidential}}
  332. }
  333. \fi
  334. }
  335. %%%% ----- End settings for placing additional items into the submitted version --MM ----- %%%%
  336. %%%% ----- Begin settings for both submitted and camera-ready version ----- %%%%
  337. %% Title and Authors %%
  338. \newcommand\outauthor{
  339. \begin{tabular}[t]{c}
  340. \ifaclfinal
  341. \bf\@author
  342. \else
  343. % Avoiding common accidental de-anonymization issue. --MM
  344. \bf Anonymous ACL submission
  345. \fi
  346. \end{tabular}}
  347. % Changing the expanded titlebox for submissions to 2.5 in (rather than 6.5cm)
  348. % and moving it to the style sheet, rather than within the example tex file. --MM
  349. \ifaclfinal
  350. \else
  351. \addtolength\titlebox{.25in}
  352. \fi
  353. % Mostly taken from deproc.
  354. \def\maketitle{\par
  355. \begingroup
  356. \def\thefootnote{\fnsymbol{footnote}}
  357. \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}}
  358. \twocolumn[\@maketitle] \@thanks
  359. \endgroup
  360. \setcounter{footnote}{0}
  361. \let\maketitle\relax \let\@maketitle\relax
  362. \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
  363. \def\@maketitle{\vbox to \titlebox{\hsize\textwidth
  364. \linewidth\hsize \vskip 0.125in minus 0.125in \centering
  365. {\Large\bf \@title \par} \vskip 0.2in plus 1fil minus 0.1in
  366. {\def\and{\unskip\enspace{\rm and}\enspace}%
  367. \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil
  368. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}%
  369. \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
  370. \vskip 0.25in plus 1fil minus 0.125in
  371. \hbox to \linewidth\bgroup\large \hfil\hfil
  372. \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}
  373. \hbox to \linewidth\bgroup\large \hfil\hfil
  374. \hbox to 0pt\bgroup\hss
  375. \outauthor
  376. \hss\egroup
  377. \hfil\hfil\egroup}
  378. \vskip 0.3in plus 2fil minus 0.1in
  379. }}
  380. % margins and font size for abstract
  381. \renewenvironment{abstract}%
  382. {\centerline{\large\bf Abstract}%
  383. \begin{list}{}%
  384. {\setlength{\rightmargin}{0.6cm}%
  385. \setlength{\leftmargin}{0.6cm}}%
  386. \item[]\ignorespaces%
  387. \@setsize\normalsize{12pt}\xpt\@xpt
  388. }%
  389. {\unskip\end{list}}
  390. %\renewenvironment{abstract}{\centerline{\large\bf
  391. % Abstract}\vspace{0.5ex}\begin{quote}}{\par\end{quote}\vskip 1ex}
  392. % Resizing figure and table captions - SL
  393. \newcommand{\figcapfont}{\rm}
  394. \newcommand{\tabcapfont}{\rm}
  395. \renewcommand{\fnum@figure}{\figcapfont Figure \thefigure}
  396. \renewcommand{\fnum@table}{\tabcapfont Table \thetable}
  397. \renewcommand{\figcapfont}{\@setsize\normalsize{12pt}\xpt\@xpt}
  398. \renewcommand{\tabcapfont}{\@setsize\normalsize{12pt}\xpt\@xpt}
  399. % Support for interacting with the caption, subfigure, and subcaption packages - SL
  400. \usepackage{caption}
  401. \DeclareCaptionFont{10pt}{\fontsize{10pt}{12pt}\selectfont}
  402. \captionsetup{font=10pt}
  403. \RequirePackage{natbib}
  404. % for citation commands in the .tex, authors can use:
  405. % \citep, \citet, and \citeyearpar for compatibility with natbib, or
  406. % \cite, \newcite, and \shortcite for compatibility with older ACL .sty files
  407. \renewcommand\cite{\citep} % to get "(Author Year)" with natbib
  408. \newcommand\shortcite{\citeyearpar}% to get "(Year)" with natbib
  409. \newcommand\newcite{\citet} % to get "Author (Year)" with natbib
  410. % DK/IV: Workaround for annoying hyperref pagewrap bug
  411. \RequirePackage{etoolbox}
  412. % \patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{\errmessage{\noexpand patch failed}}
  413. % bibliography
  414. \def\@up#1{\raise.2ex\hbox{#1}}
  415. % Don't put a label in the bibliography at all. Just use the unlabeled format
  416. % instead.
  417. \def\thebibliography#1{\vskip\parskip%
  418. \vskip\baselineskip%
  419. \def\baselinestretch{1}%
  420. \ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
  421. \vskip-\parskip%
  422. \vskip-\baselineskip%
  423. \section*{References\@mkboth
  424. {References}{References}}\list
  425. {}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
  426. \setlength{\itemindent}{-\parindent}}
  427. \def\newblock{\hskip .11em plus .33em minus -.07em}
  428. \sloppy\clubpenalty4000\widowpenalty4000
  429. \sfcode`\.=1000\relax}
  430. \let\endthebibliography=\endlist
  431. % Allow for a bibliography of sources of attested examples
  432. \def\thesourcebibliography#1{\vskip\parskip%
  433. \vskip\baselineskip%
  434. \def\baselinestretch{1}%
  435. \ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
  436. \vskip-\parskip%
  437. \vskip-\baselineskip%
  438. \section*{Sources of Attested Examples\@mkboth
  439. {Sources of Attested Examples}{Sources of Attested Examples}}\list
  440. {}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
  441. \setlength{\itemindent}{-\parindent}}
  442. \def\newblock{\hskip .11em plus .33em minus -.07em}
  443. \sloppy\clubpenalty4000\widowpenalty4000
  444. \sfcode`\.=1000\relax}
  445. \let\endthesourcebibliography=\endlist
  446. % sections with less space
  447. \def\section{\@startsection {section}{1}{\z@}{-2.0ex plus
  448. -0.5ex minus -.2ex}{1.5ex plus 0.3ex minus .2ex}{\large\bf\raggedright}}
  449. \def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus
  450. -0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright}}
  451. %% changed by KO to - values to get teh initial parindent right
  452. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-1.5ex plus
  453. -0.5ex minus -.2ex}{0.5ex plus .2ex}{\normalsize\bf\raggedright}}
  454. \def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus
  455. 0.5ex minus .2ex}{-1em}{\normalsize\bf}}
  456. \def\subparagraph{\@startsection{subparagraph}{5}{\parindent}{1.5ex plus
  457. 0.5ex minus .2ex}{-1em}{\normalsize\bf}}
  458. % Footnotes
  459. \footnotesep 6.65pt %
  460. \skip\footins 9pt plus 4pt minus 2pt
  461. \def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
  462. \setcounter{footnote}{0}
  463. % Lists and paragraphs
  464. \parindent 1em
  465. \topsep 4pt plus 1pt minus 2pt
  466. \partopsep 1pt plus 0.5pt minus 0.5pt
  467. \itemsep 2pt plus 1pt minus 0.5pt
  468. \parsep 2pt plus 1pt minus 0.5pt
  469. \leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
  470. \leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em \leftmarginvi .5em
  471. \labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt
  472. \def\@listi{\leftmargin\leftmargini}
  473. \def\@listii{\leftmargin\leftmarginii
  474. \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  475. \topsep 2pt plus 1pt minus 0.5pt
  476. \parsep 1pt plus 0.5pt minus 0.5pt
  477. \itemsep \parsep}
  478. \def\@listiii{\leftmargin\leftmarginiii
  479. \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  480. \topsep 1pt plus 0.5pt minus 0.5pt
  481. \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt
  482. \itemsep \topsep}
  483. \def\@listiv{\leftmargin\leftmarginiv
  484. \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  485. \def\@listv{\leftmargin\leftmarginv
  486. \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  487. \def\@listvi{\leftmargin\leftmarginvi
  488. \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  489. \abovedisplayskip 7pt plus2pt minus5pt%
  490. \belowdisplayskip \abovedisplayskip
  491. \abovedisplayshortskip 0pt plus3pt%
  492. \belowdisplayshortskip 4pt plus3pt minus3pt%
  493. % Less leading in most fonts (due to the narrow columns)
  494. % The choices were between 1-pt and 1.5-pt leading
  495. \def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}
  496. \def\small{\@setsize\small{10pt}\ixpt\@ixpt}
  497. \def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}
  498. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  499. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  500. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  501. \def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
  502. \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
  503. \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
  504. \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}