我尝试使用以下结构引用我的参考文献
作者 a/作者 b/作者 c,年份
使用斜线,作者之间没有空格,采用作者年份格式。您可以在下面找到 MWE。作为预防措施,我已包含与我的参考书目相关的所有命令,以防已经存在的更改可能出现一些并发症。
\documentclass[article, bibtotocnumbered,liststotoc,12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[paper=a4paper,left=50mm,right=20mm,top=20mm,bottom=20mm]{geometry} %define margins..
\geometry{a4paper}
\usepackage{lmodern}
\usepackage{filecontents}
%Bibliotheken
\usepackage
[style=ext-authoryear,labelnumber, useprefix=true,
sorting=nyt,maxbibnames=9,maxcitenames=3,uniquelist=false, backend=biber,
doi=false,isbn=false,url=false,
uniquename=false,bibencoding=utf8, date=year, giveninits=true, terseinits=false, dashed=false]
{biblatex}
%Remove Dot after volume
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
% \setunit*{\adddot}% DELETED
% \setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
% Number of articles in parentheses
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
%Dot after journal title
\DeclareFieldFormat{journaltitle}{{#1}\isdot}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addcomma\space}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addspace}}%
\usebibmacro{volume+number+eid}%
\setunit{\addspace}%
\usebibmacro{issue+date}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit}
%Dort und Sorting Last-First
\DeclareNameAlias{sortname}{first-last-bold}
\DeclareNameFormat{first-last-bold}{\mkbibbold{%
\ifgiveninits
{\usebibmacro{name:last-first}{\namepartfamily}{\namepartgiveni}{\namepartprefix}{\namepartsuffix}}
{\usebibmacro{name:last-first}{\namepartfamily}{\namepartgiven}{\namepartprefix}{\namepartsuffix}}%
\usebibmacro{name:andothers}}}
\begin{filecontents}{\jobname2.bib}
@Article{Hansen2011,
author = {Hansen, Peter R. and Lunde, Asger and Nason, James M.},
title = {The Model Confidence Set},
journal = {Econometrica},
year = {2011},
volume = {79},
number = {2},
pages = {453-497},
url = {https://EconPapers.repec.org/RePEc:ecm:emetrp:v:79:y:2011:i:2:p:453-497},
}
\end{filecontents}
\addbibresource{\jobname2.bib}
\begin{document}
\textcite{Hansen2011}
\printbibliography
\end{document}
答案1
和
\DeclareDelimFormat{multinamedelim}{\addslash}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
在所有情况下,您都可以将分隔符转换为斜线。使用
\DeclareDelimFormat[bib,biblist]{multinamedelim}{\addcomma\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibstring{and}\space}
您会在参考书目中看到逗号和“and”。
这是 MWE 的现代化版本,它利用biblatex-ext
功能(\volnumdelim
和\jourvoldelim
)以及biblatex
3.12 中的新功能(\DeclareNameWrapperFormat
)来更优雅地实现相同的输出。
\documentclass[12pt, bibliography=totocnumbered, listof=totoc]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% UTF-8 is the usual encoding in modern editors,
% it's even the default for modern LaTeX versions
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=ext-authoryear,
maxbibnames=9, maxcitenames=3, uniquelist=false, uniquename=false,
useprefix=true, giveninits=true, dashed=false
doi=false,isbn=false,url=false,
date=year]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameWrapperFormat{sortname}{\mkbibbold{#1}}
\DeclareDelimFormat{multinamedelim}{\addslash}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
\DeclareDelimFormat[bib,biblist]{multinamedelim}{\addcomma\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\bibstring{and}\space}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\renewcommand*{\volnumdelim}{}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
\renewcommand*{\jourvoldelim}{\addcomma\space}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Hansen2011,
author = {Hansen, Peter R. and Lunde, Asger and Nason, James M.},
title = {The Model Confidence Set},
journal = {Econometrica},
year = {2011},
volume = {79},
number = {2},
pages = {453-497},
url = {https://EconPapers.repec.org/RePEc:ecm:emetrp:v:79:y:2011:i:2:p:453-497},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\textcite{Hansen2011}
\printbibliography
\end{document}