![Biblatex 电子资源](https://linux22.com/image/353674/Biblatex%20%E7%94%B5%E5%AD%90%E8%B5%84%E6%BA%90.png)
此电子源
\documentclass{article}
\usepackage[backend = biber, style=authoryear, uniquename=false]{biblatex}
\addbibresource{ref.bib}
\usepackage{filecontents}
\begin{filecontents}{ref.bib}
@Electronic{Friston2,
author = {K. J. Friston},
year = {2011}
url = {http://www.fil.ion.ucl.ac.uk/spm/course/video/},
timestamp = {2017.04.24}
}
\end{filecontents}
\begin{document}
\textcite{Friston2}
\printbibliography
\end{document}
在参考书目中是这样出现的:KJ Friston (2011). Introduction to SPM. http://... 但应该是这样的:Friston, KJ (2011). Introduction to SPM. http://...
当我引用文本时,它是这样的:KJ Friston,(2011)而不是:Friston(2011)
我究竟做错了什么?
答案1
文件中名称的正确格式.bib
为:
LastName, FirstName and LastName, I. I.
对于单个名字来说,你可以这样做,FirstName LastName
但最好不要这样做。
这是您的示例(我在文件的年份后添加了一个逗号.bib
。)
\documentclass{article}
\usepackage[style=authoryear, uniquename=false]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Electronic{Friston2,
author = {Friston, K. J. },
year = {2011},
url = {http://www.fil.ion.ucl.ac.uk/spm/course/video/},
timestamp = {2017.04.24}
}
\end{filecontents}
\begin{document}
\textcite{Friston2}
\printbibliography
\end{document}