在我的论文中,我正在加载hyperref
包。thesis
包本身会加载harvard
包。以下是我主文件中相关包的片段thesis.tex
:
% dissertation style file
% loads the harvard package by default
\usepackage{unithesis}
\usepackage{hyperref}
\usepackage{cite}
% Use the first here for colored links in the PDF output file
% use the second for printed output (black text only)
% Note also that the setpagesize=false is necessary to stop
% hyperref resetting the page size back to Letter
\hypersetup{setpagesize=false, a4paper=true, colorlinks=true,linkcolor=blue, urlcolor=blue,citecolor=black}
我在 .bib 文件中遵循以下符号。例如,要引用期刊文章,我使用:
@article {REF1,
author = {Gassmann, Oliver and Zeschky, Marco},
title = {{Opening up the Solution Space: The Role of Analogical Thinking for Breakthrough Product Innovation}},
journal = {Creativity and Innovation Management},
volume = {17},
number = {2},
publisher = {Blackwell Publishing Ltd},
issn = {1467-8691},
doi = {10.1111/j.1467-8691.2008.00475.x},
pages = {97--106},
year = {2008},
}
我希望从正文中引用参考书目。例如,如果我\cite{REF1}
在正文中使用,我应该在我的参考书目中获得指向上述参考资料的超链接。现在没有发生这种情况。我在 Google 上搜索答案,也尝试查找以前的帖子,但找不到任何可以解决我的问题的内容。例如,以下链接讨论了相同的问题,但我无法从答案中找出如何解决问题:
有人能帮我解决这个问题吗?无需加载任何会与样式表中已加载的包冲突的其他包?我提到这一点是因为在与该问题相关的另一个链接中,建议加载 natbib 包:
但是如果加载 natbib 包,它会弄乱我的样式表,并且我会收到以下错误:
! LaTeX Error: Command \harvardurl already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
谢谢您的建议。
维诺德