如何编辑 agsm.bst 文件来更改参考书目中 URL 的输出方式?

如何编辑 agsm.bst 文件来更改参考书目中 URL 的输出方式?

从 agsm.bst 文件中,参考书目中产生的输出将如下所示:

在此处输入图片描述

对于以下文件:

@article{Shaffer2004,
author = {Shaffer, David Williamson and Squire, Kurt R and Gee, James P},
journal = {Phi Delta Kappan},
pages = {104--111},
number = {2},
title = {{Video games and the future of learning}},
url = {http://website.education.wisc.edu/kdsquire/tenure-files/23-pdk-VideoGamesAndFutureOfLearning.pdf},
volume = {87},
year = {2004}
}

我猜测这与 agsm.bst 文件中的以下几行有关:

FUNCTION {write.url}
{ URL empty$
    { skip$ }
    { "\newline\harvardurl{" URL * "}" * write$ newline$ }

然而,网址:在 URL 出现之前,我想将其更改为“可从以下网址获得:http://.....”

有任何想法吗?

答案1

biblatex与以下包一起使用更有意义biber

\RequirePackage{filecontents}
\documentclass{book}
\begin{filecontents*}{\jobname.bib}
@article{Shaffer2004,
  author = {Shaffer, David Williamson and Squire, Kurt R and Gee, James P},
  journal = {Phi Delta Kappan},
  pages = {104--111},
  number = {2},
  title = {{Video games and the future of learning}},
  url =  {http://website.education.wisc.edu/kdsquire/tenure-files/23-pdk-VideoGamesAndFutureOfLearning.pdf},
  volume = {87},
  year = {2004}
}
\end{filecontents*}

%\usepackage{harvard}
\usepackage[style=authoryear]{biblatex}
\DeclareFieldFormat{url}{Available from\addcolon\space\url{#1}}
\usepackage{xurl}
\addbibresource{\jobname.bib}
\begin{document}

foo~\nocite{*}
\printbibliography
\end{document}

使用pdflatex-> biber->运行pdflatex

在此处输入图片描述

相关内容