更改 apacite 引用中的字段顺序

更改 apacite 引用中的字段顺序

如何更改 apacite 样式参考书目中的字段顺序。我需要注释字段作为最后一个字段出现。我的参考资料显示如下:

Stacey, K., & MacGregor, M.  (1999).  Learning the algebraic method of solving problems.TheJournal of Mathematical Behavior,18(2), 149 - 167.   [GS Search]   doi: 10.1016/S0732-3123(99)00026-7

我需要这样的:

    Stacey, K., & MacGregor, M.  (1999).  Learning the algebraic method of solving problems.TheJournal of Mathematical Behavior,18(2), 149 - 167. doi: 10.1016/S0732-3123(99)00026-7 [GS Search]

GS 搜索是一个\href链接,我已将其放入note字段中。

这是围兜

@article{stacey1999,
TITLE = "Learning the Algebraic Method of Solving Problems",
JOURNAL = "The Journal of Mathematical Behavior",
VOLUME = "18",
NUMBER = "2",
PAGES = "149 - 167",
YEAR = "1999",
ISSN = "0732-3123",
DOI = "10.1016/S0732-3123(99)00026-7",
AUTHOR = "Kaye Stacey and Mollie MacGregor",
NOTE = "\href{https://scholar.google.com.br/scholar?q='Learning+the+Algebraic+Method+of+Solving+Problems'&btnG=Search}{GS Search}",
}

梅威瑟:

\documentclass[a4paper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{url}
\usepackage{apacite} 
\usepackage{hyperref}

\AtBeginDocument{\urlstyle{APACsame}}

\title{Here is the title.}
\author{ John S. Doe }


\begin{document}

\nocite{*}  % to test more entries, not cited in document
\bibliographystyle{apacite} 
\bibliography{references}
\end{document}

答案1

apacite.bstnote始终在参考书目条目的末尾输出该字段。如果您使用该url字段添加 URL,doi则会在 URL 后打印:

\begin{filecontents}{\jobname.bib}
@article{stacey1999,
TITLE = "Learning the Algebraic Method of Solving Problems",
JOURNAL = "The Journal of Mathematical Behavior",
VOLUME = "18",
NUMBER = "2",
PAGES = "149 - 167",
YEAR = "1999",
ISSN = "0732-3123",
DOI = "10.1016/S0732-3123(99)00026-7",
AUTHOR = "Kaye Stacey and Mollie MacGregor",
URL = "https://scholar.google.com.br/scholar?q='Learning+the+Algebraic+Method+of+Solving+Problems'&btnG=Search"
}
\end{filecontents}
\documentclass[a4paper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{url}
\usepackage{apacite} 
\usepackage{hyperref}

\AtBeginDocument{\urlstyle{APACsame}}

\title{Here is the title.}
\author{ John S. Doe }


\begin{document}

\nocite{*}  % to test more entries, not cited in document
\bibliographystyle{apacite} 
\bibliography{\jobname}
\end{document}

doi 之前的 URL

但在这种情况下,您不能设置与 URL 本身不同的 URL 文本。然而,至少在印刷文档中,原始 URL 应该是参考书目的一部分,而不仅仅是替换文本。所以我认为这将是一个很好的解决方案。

note如果你坚持要改变和的顺序doi,你必须

  • 将 复制apacite.bst到您的文档目录中并重命名,例如notebeforedoiapacite.bst
  • 转到FUNCTION {periodical}(这是第 4034-4107 行),
  • 将行format.orig.note(lineno 4105) 移至行url empty$(lineno 4092) 之前,
  • 保存新文件notebeforedoiapacite.bst
  • 在您的文档中,如问题所示,更改\bibliographystyle{apacite}\bibliography{notebeforedoiapacite.bst}
  • 再运行一次 LaTeX,
  • 再运行一次 BibTeX,
  • 再运行一次 LaTeX。

你会得到:

在此处输入图片描述

要查看其他更改(例如将(…)注释更改为)[…],请参见\APACrefnote手册apacite

请注意:使用biblatex+biber代替apacite+bibtex可以使用 LaTeX 更改输出,而不是破解文件bst。因此,如果可能的话,我建议切换到biblatex+ biber

相关内容