如何在参考书目中包含“影响因子”及其参考文献

如何在参考书目中包含“影响因子”及其参考文献

在我的论文中,我必须打印出版物列表以及期刊的相应影响因子。在使用包authoryear样式时biblatex,我们如何自定义它以打印影响因子?

我们应该定义一个新的领域吗?或者有没有什么可行的解决方案来实现它?我正在分享我已经在文件序言中修改的内容 -

\usepackage[bibstyle=authoryear,
citestyle=phys,
backend=biber,
defernumbers=true,
natbib=true,
%biblabel=brackets,
isbn=false,
maxbibnames=10,
minbibnames=5,
giveninits=true,
hyperref=true,
%urldate=false,
sorting=none
]{biblatex}

\DeclareFieldFormat[article]{volume}{\textbf{#1}\addcomma\space} % Bolds volume of citation and adds comma after volume
\DeclareFieldFormat{pages}{#1} % No prefix for the "pages" field in the bibliography
\DeclareFieldFormat[article]{title}{#1}  % Remove quotes from journal title

%Suppress 'number' preceeding the vol. in bibliography;
\AtEveryBibitem{%
    \clearfield{number}}
%
%Suppress 'month' followed by year in bibliography;
\AtEveryBibitem{%
    \clearfield{month}}

\DeclareNameAlias{sortname}{last-first} % Lists all authors with last name first
\renewcommand{\labelnamepunct}{\addcomma\addspace} % Removes period after year in bibliography
\renewcommand*{\revsdnamepunct}{\addspace}% want a comma between last name and initials
\renewcommand*{\multinamedelim}{\addcomma\addspace}% want a space but no comma between names
\renewcommand*{\finalnamedelim}{\addcomma\addspace\bibstring{and}\space}% want a space but no comma between penultimate name and 'and' followed by final name
\DeclareSourcemap{% Ignores urldates
  \maps[datatype=bibtex]{
    \map{
      \step[fieldset=urldate, null]
    }
  }
}

\usepackage{xpatch}

\xpatchbibmacro{name:andothers}{% maked the ``et al'' italicized in the bibliography
\bibstring{andothers}%
}{%
\bibstring[\emph]{andothers}%
}{}{}

\renewbibmacro{in:}{% Removes "In" from bibliography entries
\ifentrytype{article}{}{%
\printtext{\bibstring{in}\intitlepunct}}}

\DeclareFieldFormat{labelnumberwidth}{#1.}% from karlkoeller's answer

\defbibenvironment{bibliography}
  {\list
    {\printfield[labelnumberwidth]{labelnumber}}
    {\setlength{\labelwidth}{\labelnumberwidth}%
      \setlength{\leftmargin}{0pt}%
      \setlength{\labelsep}{\biblabelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\itemindent}{\labelwidth}%
      \addtolength{\itemindent}{\labelsep}%
      \setlength{\parsep}{\bibparsep}}%
    \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}

一个可能的解决方案是手动写入影响因子我将 my-ref.bib 文件中的每本期刊的链接放在最后打印。但是这会中断hyperref参考书目中所需的链接,并且链接已损坏。

我尝试定义一个新领域biblatex如下-

\DeclareFieldFormat{impactfactor}{\mkbibparens{IF: #1}} % New format for impact factor
% Define a new bibmacro to print impact factor
\newbibmacro*{impactfactor}{%
  \printfield{impactfactor}%
}

但那也没有用。

相关内容