|
28 | 28 |
|
29 | 29 | \usepackage{xcolor}
|
30 | 30 |
|
31 |
| -\ifacl@hyperref |
32 |
| - \PassOptionsToPackage{breaklinks}{hyperref} |
33 |
| - \RequirePackage{hyperref} |
34 |
| - % make links dark blue |
35 |
| - \definecolor{darkblue}{rgb}{0, 0, 0.5} |
36 |
| - \hypersetup{colorlinks=true, citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue} |
37 |
| -\else |
38 |
| - % This definition is used if the hyperref package is not loaded. |
39 |
| - % It provides a backup, no-op definiton of \href. |
40 |
| - % This is necessary because \href command is used in the acl_natbib.bst file. |
41 |
| - \def\href#1#2{{#2}} |
42 |
| - \usepackage{url} |
43 |
| -\fi |
44 |
| - |
45 | 31 | \ifacl@finalcopy
|
46 | 32 | % Hack to ignore these commands, which review mode puts into the .aux file.
|
47 | 33 | \newcommand{\@LN@col}[1]{}
|
|
207 | 193 | % \cite, \newcite, and \shortcite for compatibility with older ACL .sty files
|
208 | 194 | \renewcommand\cite{\citep} % to get "(Author Year)" with natbib
|
209 | 195 | \newcommand\shortcite{\citeyearpar}% to get "(Year)" with natbib
|
210 |
| -\newcommand\newcite{\citet} % to get "Author (Year)" with natbib |
| 196 | +\newcommand\newcite{\citet} % to get "Author (Year)" with natbib |
| 197 | + |
| 198 | +\bibliographystyle{acl_natbib} |
211 | 199 |
|
212 | 200 | % Bibliography
|
213 | 201 |
|
|
310 | 298 | \def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
|
311 | 299 | \def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
|
312 | 300 | \def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}
|
| 301 | + |
| 302 | +% The hyperref manual (section 9) says hyperref should be loaded after natbib |
| 303 | +\ifacl@hyperref |
| 304 | + \PassOptionsToPackage{breaklinks}{hyperref} |
| 305 | + \RequirePackage{hyperref} |
| 306 | + % make links dark blue |
| 307 | + \definecolor{darkblue}{rgb}{0, 0, 0.5} |
| 308 | + \hypersetup{colorlinks=true, citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue} |
| 309 | +\else |
| 310 | + % This definition is used if the hyperref package is not loaded. |
| 311 | + % It provides a backup, no-op definiton of \href. |
| 312 | + % This is necessary because \href command is used in the acl_natbib.bst file. |
| 313 | + \def\href#1#2{{#2}} |
| 314 | + \usepackage{url} |
| 315 | +\fi |
0 commit comments