我已经和 Biblatex 纠结了好几天了。我似乎已经掌握了大部分内容,但对于一些细节我还是感到困惑和困惑。
这是我的标题:
%Bibliography
\usepackage[sorting=none]{biblatex} %Imports biblatex package not APA style
%\usepackage[sorting=none,style=apa]{biblatex} %APA style
\bibliography{sample} %Import the bibliography file
这是我的sample.bib的前三个参考文献:
@misc{Lindt1,
author = {Ad Hoc},
title = {Chocoladefabriken Lindt \& Sprüngli AG : Half Year Results},
year = {2021},
%howpublished = "Available on \url{https://www.dgap.de/dgap/News/adhoc/lindt-spruengli-with-doubledigit-sales-growth-and-market-share-gains/?newsID=1466704,}",
url ={https://www.dgap.de/dgap/News/adhoc/lindt-spruengli-with-doubledigit-sales-growth-and-market-share-gains/?newsID=1466704},
note = {[Last visited: 17-12-2021]},
}
@misc{SOPP,
author = {Europages},
title = {SOPP INDUSTRIE GMBH - pack with love},
year = {2021},
note = {[Last visited: 18-12-2021]},
% howpublished = "Available on \url{https://www.europages.co.uk/SOPP-INDUSTRIE-GMBH/00000005341101-001.html}",
url ={https://www.europages.co.uk/SOPP-INDUSTRIE-GMBH/00000005341101-001.html}
}
@misc{STIR_In,
author = {ST Integration \& Robotics},
title = {Official company's Website},
year = {2015},
note = {[Last visited: 18-12-2021]},
%howpublished = "Available on \url{https://www.st-ir.com/}",
url ={https://www.st-ir.com/}
}
我正在使用标题中的第一行,我认为 howpublished 对我来说看起来更好,所以我添加了它。
第一行看起来是这样的。又名:
\usepackage[sorting=none]{biblatex}
显然,事物的顺序被搞乱了,因为我想要的是 APA 样式:作者、年份、标题、出版物或链接。
当我使用标题的第二行并注释第一行时,它看起来是这样的。含义:
%Bibliography
%\usepackage[sorting=none]{biblatex} %Imports biblatex package not APA style
\usepackage[sorting=none,style=apa]{biblatex} %APA style
\bibliography{sample} %Import the bibliography file
这是我想要的风格,但是有几件事很乱:
- 需要将 [上次访问时间] 作为每行的最后一项,但无法做到
- 作者姓名混乱。例如,“ST Integration & Robotics”变成了图中所示的内容。“Ad Hoc”也是一样
- 整个文档中的参考文献不再被提及为1,2... 现在是该引用的年份( 2015,2021 ...),并且不再像每个引用之前的前一个那样显示在参考书目页面中。
我正在尝试修复这些错误并使其正常工作,但我的知识相当少,我真的希望能得到正确方向的推动。
非常感谢
答案1
正如其他人已经评论过的,您被迫采用的风格与 APA 风格完全无关。
如果您有机会使用 natbib/bibtex 而不是 biblatex/biber,我建议您这样做,主要是因为unsrtnat
bib 样式基本上可以满足您的所有需要和想要,包括将字段的内容note
(“[上次访问于 ...]”)放在最后。
\documentclass{article}
\begin{filecontents}[overwrite]{sample.bib}
@misc{Lindt1,
author = {{Ad Hoc}},
title = {{Chocoladefabriken Lindt \& Sprüngli AG}: Half Year Results},
year = {2021},
url ={https://www.dgap.de/dgap/News/adhoc/lindt-spruengli-with-doubledigit-sales-growth-and-market-share-gains/?newsID=1466704},
note = {[Last visited: 17-12-2021]},
}
@misc{SOPP,
author = {Europages},
title = {{SOPP INDUSTRIE GMBH} --- pack with love},
year = {2021},
note = {[Last visited: 18-12-2021]},
url ={https://www.europages.co.uk/SOPP-INDUSTRIE-GMBH/00000005341101-001.html}
}
@misc{STIR_In,
author = {{ST Integration \& Robotics}},
title = {Official company's Website},
year = {2015},
note = {[Last visited: 18-12-2021]},
url ={https://www.st-ir.com/}
}
\end{filecontents}
\usepackage[numbers,sort&compress]{natbib}
\bibliographystyle{unsrtnat}
%\usepackage[sorting=none]{biblatex}
%\addbibresource{sample.bib} % <-- use \addbibresource, not \bibliography
\usepackage{xurl} % allow arbitrary line breaks in URL strings
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
\cite{Lindt1,STIR_In,SOPP}
\bibliography{sample}
%\printbibliography
\end{document}