哈佛和 hyperref 互相看不顺眼

哈佛和 hyperref 互相看不顺眼

一家期刊表示,投稿可以使用哈佛书目样式。但哈佛样式似乎与 hyperref 或书签(以及可能定义 \href 的其他软件包)配合得不太好。如果\usepackage{hyperref}在下面注释掉 ( %\usepackage{hyperref}),文件编译正常,但书目(和其他地方)中的超链接不起作用。(natbib 解决了这个问题,但产生了其他问题)

% No matter how many times you compile this file, there is a warning message indicating
% that 'Label(s) have changed.  Re-run to get cross-references right
% Commenting out the hyperref package fixes the problem. But this means that links
% will not work properly (and many other widely used features will not be available)
\documentclass[AEJ]{AEA}
\usepackage[abbr]{harvard}
\usepackage{hyperref}

\begin{document}

\cite{hrsHabit}
\bibliographystyle{aea}
\bibliography{mwe}

\end{document}

以下是相应的 bib 文件 mwe.bib

@article{hrsHabit,
  author =        {Havranek, Tomas and Rusnak, Marek and Sokolova, Anna},
  journal =       {European Economic Review},
  pages =         {142--167},
  publisher =     {Elsevier},
  title =         {Habit formation in consumption: A meta-analysis},
  volume =        {95},
  year =          {2017},
  doi =           {10.1016/j.euroecorev.2017.03.009},
  url =           {https://doi.org/10.1016/j.euroecorev.2017.03.009},
}

相关内容