删除 biblatex ieee 样式的在线条目字段

删除 biblatex ieee 样式的在线条目字段

我正在用 biblatex 编写站点摄影,得到了以下结果:

在此处输入图片描述

我想删除空白()[Online]字段。我使用的是 ieee 样式。

答案1

在...的帮助下https://tex.stackexchange.com/a/151264/190902可以调整在线条目的参考书目驱动程序:

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@online{test,
  author       = {Smith, S.},
  title        = {Title},
    url                  = {www.google.com}
}
\end{filecontents*}

\usepackage[style=ieee]{biblatex}
\addbibresource{\jobname.bib}

\DefineBibliographyStrings{english}{
  url         = \adddot\addspace Available ,
}


\DeclareBibliographyDriver{online}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\adddot\addspace}%
    \iffieldundef{year}
        {}
        {\printtext[parens]{\usebibmacro{date}}}
  \setunit{\adddot\addspace}%
  \usebibmacro{title}%
  \setunit{\adddot\addspace}%
  \printlist{language}%
  \setunit{\adddot\addspace}%
  \usebibmacro{byauthor}%
  \setunit{\adddot\addspace}%
  \usebibmacro{byeditor+others}%
  \setunit{\adddot\addspace}%
  \printfield{version}%
  \setunit{\adddot\addspace}%
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \setunit{\adddot\addspace}%
  \iftoggle{bbx:eprint}
    {\usebibmacro{eprint}}
    {}%
  \newunit\newblock
  \usebibmacro{url+urldate}%
  \setunit{\adddot\addspace}%
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \newunit\newblock
  \usebibmacro{related}%
  \usebibmacro{finentry}%
}

\begin{document}

\cite{test}

\printbibliography

\end{document}

相关内容