使用 bibstyle=numeric 但在参考书目中显示作者、年份而不带括号

使用 bibstyle=numeric 但在参考书目中显示作者、年份而不带括号

我正在尝试更改参考书目中年份的位置。这是 MWE

%%%%% Dokumentenklasse mit verschiedenen Attributen
\documentclass[a4paper,12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{csquotes}
\usepackage
[citestyle=authoryear-icomp,
bibstyle=numeric, sorting=nyt ,maxbibnames=9,maxcitenames=2,uniquelist=false, backend=biber,
doi=false,isbn=false,url=false,
uniquename=false, date=year, giveninits=true]
{biblatex}
\usepackage{filecontents}

\DeclareNameAlias{sortname}{last-first}
\DeclareNameAlias{default}{last-first}

\DefineBibliographyStrings{ngerman}{andothers={et\addabbrvspace al\adddot}} 

%Remove Dot and Add Space
\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}}

\renewbibmacro{in:}{}



\begin{filecontents}{\jobname.bib}
@article{cgood1980,
    Author = {Charles Goodwin},
    Journal = {Sociological Inquiry},
    Number = {3-4},
    Pages = {272-302},
    Title = {Restarts, pauses, and the achievement of a state of mutual gaze at turn-beginning},
    Volume = 50,
    Year = 1980,
}
@article{mgood1980,
    Author = {Marjorie Harness Goodwin},
    Journal = {Sociological Inquiry},
    Pages = {303-317},
    Title = {Processes of mutual monitoring implicated in the production of description sequences},
    Volume = 50,
    Year = 1980,
}
\end{filecontents}
\addbibresource{\jobname.bib} 

\begin{document}
\parencite{cgood1980,mgood1980}
\printbibliography
\end{document}

当前年份在标题后面,但应该列在作者后面,不带括号。我尝试了以前 oost 的几种方法,但没有成功。

答案1

事实证明,您似乎想要获得完整的authoryear体验,只是想对参考书目中的条目进行额外的编号。

在这种情况下,参考书目中的数字与文档中的任何有用内容都不对应,因此可以使用简单的动态创建它们enumerate

\defbibenvironment{bibliography}
  {\setlength{\leftmargin}{\bibhang}%
   \setlength{\itemindent}{-\leftmargin}%
   \setlength{\labelsep}{\biblabelsep}%
   \setlength{\itemsep}{\bibitemsep}%
   \setlength{\parsep}{\bibparsep}%
   \begin{enumerate}}
  {\end{enumerate}}
  {\item}

总共

\documentclass[a4paper,12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{csquotes}
\usepackage[backend=biber,
  style=authoryear-icomp,
  maxbibnames=9, maxcitenames=2,
  uniquelist=false, uniquename=false,
  giveninits=true,
  date=year,
  doi=false,isbn=false,url=false,
]{biblatex}


\defbibenvironment{bibliography}
  {\setlength{\leftmargin}{\bibhang}%
   \setlength{\itemindent}{-\leftmargin}%
   \setlength{\labelsep}{\biblabelsep}%
   \setlength{\itemsep}{\bibitemsep}%
   \setlength{\parsep}{\bibparsep}%
   \begin{enumerate}}
  {\end{enumerate}}

\DeclareNameAlias{default}{family-given}
\DeclareNameAlias{sortname}{default}

\DefineBibliographyStrings{ngerman}{andothers={et\addabbrvspace al\adddot}} 

%Remove Dot and Add Space
\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}}

\renewbibmacro{in:}{}

\begin{filecontents}{\jobname.bib}
@article{cgood1980,
    Author  = {Charles Goodwin},
    Journal = {Sociological Inquiry},
    Number  = {3-4},
    Pages   = {272-302},
    Title   = {Restarts, pauses, and the achievement of a state of mutual gaze at turn-beginning},
    Volume  = 50,
    Year    = 1980,
}
@article{mgood1980,
    Author  = {Marjorie Harness Goodwin},
    Journal = {Sociological Inquiry},
    Pages   = {303-317},
    Title   = {Processes of mutual monitoring implicated in the production of description sequences},
    Volume  = 50,
    Year    = 1980,
}
\end{filecontents}
\addbibresource{\jobname.bib} 

\begin{document}
\parencite{cgood1980,mgood1980}
\printbibliography
\end{document}

两个参考书目条目采用标准作者年份格式,只是添加了数字。

如果你真的想使用数字引用,我建议我的回答在 BibLaTeX 中将数字样式与作者年份样式相结合相反,我们将其加载authoryear为参考书目样式然后\input{numeric.bbx}(请注意,由于标准参考书目样式的模块化结构,它不需要适用于任意样式组合)。

相关内容