acl2016.sty 23 KB

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