我在用着
\documentclass[final,3p,twocolumn,number, sort&compress]{elsarticle}
\bibliographystyle{elsarticle-harv}
\begin{document}
Text citing an article \cite{Andersen20132}.
\bibliography{references}
\end{document}
我的 bibtex 文件参考文献.bib包含此条目:
@Article{Andersen20132,
Title = {Long term forecasting of hourly electricity consumption in local areas in Denmark },
Author = {F.M. Andersen and H.V. Larsen and R.B. Gaardestrup},
Journal = {Applied Energy },
Year = {2013},
Number = {0},
Pages = {147 - 162},
Volume = {110},
Doi = {http://dx.doi.org/10.1016/j.apenergy.2013.04.046},
ISSN = {0306-2619},
Keywords = {Long term electricity consumption},
Owner = {aki},
Timestamp = {2014.05.07},
Url = {http://www.sciencedirect.com/science/article/pii/S0306261913003413}
}
Elsevier 建议在参考书目条目中使用 DOI。但是,打印的是 URL 而不是 DOI。
我该如何改变这种情况?
答案1
该elsarticle-harv.bst
样式文件不提供任何对 DOI 的支持。
你可以做的是使用字段url
来设置 DOI
Url = {http://dx.doi.org/10.1016/j.apenergy.2013.04.046}
并在序言中加上这一行:
\def\urlprefix{DOI }
平均能量损失
\begin{filecontents*}{references.bib}
@Article{Andersen20132,
Title = {Long term forecasting of hourly electricity consumption in local areas in Denmark },
Author = {F.M. Andersen and H.V. Larsen and R.B. Gaardestrup},
Journal = {Applied Energy },
Year = {2013},
Number = {0},
Pages = {147 - 162},
Volume = {110},
ISSN = {0306-2619},
Keywords = {Long term electricity consumption},
Owner = {aki},
Timestamp = {2014.05.07},
Url = {http://dx.doi.org/10.1016/j.apenergy.2013.04.046}
}
\end{filecontents*}
\documentclass[final,3p,twocolumn,number, sort&compress]{elsarticle}
\usepackage{url} % just for breaking urls
\def\urlprefix{DOI }
\begin{document}
Text citing an article \cite{Andersen20132}.
\bibliographystyle{elsarticle-harv}
\raggedright
\bibliography{references}
\end{document}
输出
答案2
有一个更新版本,elsarticle-harv.bst
支持打印 DOI。
http://support.river-valley.com/wiki/index.php?title=Model-wise_bibliographic_style_files
不幸的是他们没有把这个推送到 CTAN :(