使用上方条目的粗体作者年份更改参考文献的外观

使用上方条目的粗体作者年份更改参考文献的外观

我正在写论文,必须更改条目的外观。目前它看起来像这样:

我的 bibentry 的当前外观

但我需要它看起来像这样:

参考条目所需的外观

我知道如何去掉条目中的粗体,但我需要在条目上方用粗体显示作者年份。到目前为止,我基本上不知道该怎么做。

我的代码摘录:

%% Bibliography using Biblatex
\usepackage[autolang=hyphen,style=authoryear-ibid,giveninits=true,uniquename=init,isbn=false,doi=false,dashed=false,backend=biber,maxnames=3,minnames=1,maxbibnames=99]{biblatex}

% statt des in ngerman üblichen u.a. wird ein et al. gesetzt
\DefineBibliographyStrings{ngerman}{ 
    andothers = {{et\,al\adddot}},             
} 

% Semikolon trennt Autoren
\renewcommand*{\multinamedelim}{\addsemicolon\space}%
\renewcommand*{\finalnamedelim}{\addsemicolon\space}%


\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}

% Increase spacing between two bib items
\setlength{\bibitemsep}{0.5\baselineskip}

\addbibresource{projektarbeit.bib} % Bibtex file 

% Make bold labels in bibliography!
% From:  http://tex.stackexchange.com/questions/91570/bibliography-with-biblatex-how-to-achieve-bold-labels-using-the-authoryear-styl
\usepackage{xpatch}
%\xpretobibmacro{author}{\mkbibbold\bgroup}{}{}
%\xapptobibmacro{author}{\egroup}{}{}
\xpretobibmacro{bbx:editor}{\mkbibbold\bgroup}{}{}
\xapptobibmacro{bbx:editor}{\egroup}{}{}
\renewcommand*{\labelnamepunct}{\mkbibbold{\addcolon\space}}

\usepackage{settings/bibspacing}
% Spacing between references. This package requires the file bibspacing.sty
\setlength{\bibspacing}{\baselineskip}

\documentclass[12pt,a4paper,oneside,headsepline,captions=tableheading,toc=bibliography,openany,chapterprefix]{scrbook}

\begin{document}

some text \footcite{Buergel2011}
\end{document}

答案1

对于这样的事情我的风格biblatex-ext捆绑有introcite选项。

虽然您的引用样式是authoryear,但我们选择(ext-)authortitle参考书目样式,因为该样式将年份放在末尾而不是开头authoryear(参见。Biblatex [作者.姓氏, 年份]我如何通过 biblatex/biber 重新创建特定的 citestyle参考书目条目开头的文本引用(BibLaTeX))。然后我们必须sorting=nyt 明确设置才能获得正确的排序。

使用 ,introcite=plain,我们在参考书目条目的开头获得了引用标签。\renewcommand*{\introcitepunct}{\\}在标签后立即开始一个新行,以便标签看起来更像标题。\DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}使标签加粗。

\documentclass[12pt, a4paper,
  oneside, openany,
  headsepline, chapterprefix,
  captions=tableheading, toc=bibliography,
  ngerman,
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber,
  citestyle=authoryear-ibid,
  bibstyle=ext-authortitle,
  sorting=nyt,
  minnames=1, maxcitenames=3, maxbibnames=99,
  giveninits=true, uniquename=init,
  introcite=plain,
  isbn=false, doi=false,
  dashed=false,
  autolang=hyphen,
]{biblatex}


\DefineBibliographyStrings{german}{
  andothers = {et\,al\adddot},
}

\renewcommand*{\introcitepunct}{\\}
\DeclareFieldFormat{bbx@introcite}{\mkbibbold{#1}}

\DeclareNameAlias{sortname}{family-given}

\DeclareDelimFormat[bib]{multinamedelim}{\addsemicolon\space}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}

\renewcommand*{\mkbibnamefamily}{\textsc}

\DeclareDelimFormat[bib]{nametitledelim}{\addcolon\space}

\setcounter{biburlnumpenalty}{100}
\setcounter{biburlucpenalty}{100}
\setcounter{biburllcpenalty}{100}

\setlength{\bibitemsep}{0.5\baselineskip}

\addbibresource{biblatex-examples.bib}

\begin{document}
  some text \footcite{sigfridsson}
  \printbibliography
\end{document}

Sigfridsson, Ryde 1998//Sigfridsson, E.;Ryde, U.:“从电势和电矩推导原子电荷的方法比较”。《计算化学杂志》19.4(1998),第 377-395 页。

相关内容