使用具有作者年份样式的 biblatex,我需要一个参考书目,它不仅输出正常的参考书目条目,而且还输出类似 \cite 的简短引用形式,以冒号分隔:
上面的例子很简单,
\cite{96}:
\printbibliography[heading=none]
但当然,我无法对参考书目中的每一条条目都这样做,而且冒号后面不应该有换行符。如何使用 biblatex 实现这一点?
平均能量损失
\documentclass{scrartcl}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{3,
editor = {Ball, M.},
title = {The Celtic Languages},
publisher = {Routledge},
location = {London},
date = {1993},}
@book{5,
author = {Borooah, A.},
title = {English-Sanskrit Dictionary},
publisher = {Publication board},
location = {Assam},
date = {1971},}
\end{filecontents}
\usepackage[backend=biber,style=authoryear,useprefix=true,dashed=false]{biblatex}
\addbibresource{test.bib}
\setlength\parindent{0pt}
\begin{document}
I need the bibliography to look like this (but with the author's surname first after the colon):
\cite{3}: \fullcite{3}
\cite{5}: \fullcite{5}
\printbibliography
\end{document}
答案1
答案2
试试这个(当然,如果你有其他情况,你必须改进\ifnameundef
):
\documentclass{scrartcl}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{3,
editor = {Ball, M.},
title = {The Celtic Languages},
publisher = {Routledge},
location = {London},
date = {1993},}
@book{5,
author = {Borooah, A.},
title = {English-Sanskrit Dictionary},
publisher = {Publication board},
location = {Assam},
date = {1971},}
\end{filecontents}
\usepackage[backend=biber,style=authoryear,useprefix=true,dashed=false]{biblatex}
\addbibresource{test.bib}
\setlength\parindent{0pt}
\AtEveryBibitem{\vspace{10pt}
\ifnameundef{author}
{\printnames{editor}}
{\printnames{author}}%
\addspace \printfield{year}: \item}
\begin{document}
I need the bibliography to look like this (but with the author's surname first after the colon):
\cite{3}: \fullcite{3}
\cite{5}: \fullcite{5}
\printbibliography
\end{document}