我的问题是关于实际的引用风格以及如何使用它\printbibliography
。
在我的文章中我想引用如下:
(作者 X & 作者 Y 年份)
但在我的参考书目中我希望它显示为:
作者姓氏 X,作者名字 X(仅首字母 X.),作者姓氏 Y,作者名字 Y(仅首字母 Y.)........
我尝试过几件事,但都没有成功,例如:
\begin{filecontents}{\jobname.bib}
@article{wombat2016,
author = {Walther Wombat and Klaus Koala},
title = {The true meaning of 42},
journal = {Journal of modern skepticism},
date = {2016},
keywords = {trusted},
}
@book{lion2010,
author = {Laura Lion and Gabrielle Giraffe and Carl Capybara},
title = {The dangers of asking the wrong question},
publisher = {publishing house},
date = {2010},
keywords = {trusted},
}
\end{filecontents}
\documentclass{article}
\usepackage[backend=bibtex,style=authoryear,citetracker=true,mincitenames=2,giveninits=true,maxbibnames=99,dashed=false,isbn=false,url=false,urldate=comp,natbib=true]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala have discovered some interesting things~\parencite{wombat2016}.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[9]{lion2010}.
\printbibliography
\end{document}
答案1
\DeclareNameAlias{sortname}{family-given}
将参考书目中的名称顺序更改为“姓,名”。同时giveninits=true
您得到“姓,F”。
\DeclareDelimFormat{finalnamedelim}{\addspace\&\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{\addcomma\space}
在引用中给出‘&’,在参考书目中给出‘,’。
如果要将姓氏小写,请使用
\renewcommand*{\mkbibnamefamily}{\textsc}
平均能量损失
\documentclass{article}
\usepackage[style=authoryear, mincitenames=2, giveninits=true, maxbibnames=99, dashed=false, uniquename=init]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareNameAlias{sortname}{family-given}
\DeclareDelimFormat{finalnamedelim}{\addspace\&\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{\addcomma\space}
\renewcommand*{\mkbibnamefamily}{\textsc}
\begin{document}
\cite[123]{sigfridsson}
\cite[9]{companion}
\printbibliography
\end{document}