如何更改 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.bst
note
始终在参考书目条目的末尾输出该字段。如果您使用该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}
但在这种情况下,您不能设置与 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
。