抑制 biblatex footcite 中的某些字段

抑制 biblatex footcite 中的某些字段

我在 beamer 演示文稿中使用 biblatex,并希望在脚注中显示紧凑的参考文献。我使用的是\footfullcite,但问题是它会打印参考书目部分中通常需要的所有字段。

因为这只是一个演示文稿,所以我不想在页码、期刊卷或期刊和其他一些字段上浪费空间。

我成功地\ExecuteBibliographyOptions抑制了 isbn、doi 和 url,但它无法处理其他字段,比如我提到的那些。我在这里找到了一些类似的问题,比如,但那里建议的方法对我来说也不起作用。

编辑:

以下是 MWE:

\documentclass{beamer}
\usepackage[backend=biber]{biblatex}

\begin{filecontents*}{references.bib}
    @article{TurneyPantel2010,
     author               = {Peter D. Turney and Patrick Pantel},
     journal              = {Journal of Artificial Intelligence Research},
     pages                = {141--188},
     title                = {From Frequency to Meaning: Vector Space Models of Semantics},
     volume               = {37},
     year                 = {2010},
     }
\end{filecontents*}

\addbibresource{references.bib}

\ExecuteBibliographyOptions{firstinits=true, isbn=false, url=false, doi=false, uniquename=init}

\begin{document}
  \begin{frame}
    This is a citation\footfullcite{TurneyPantel2010}.
  \end{frame}

\end{document}

这将生成一个脚注,内容如下:

PD Turney 和 P. Pantel。“从频率到含义:语义的向量空间模型”。《人工智能研究杂志》第 37 期(2010 年),第 141-188 页。

我想要以下格式:

[作者姓名] [标题] 出处:[会议或期刊] [年份]

答案1

您提到的答案使用\AtEveryBibitem,它用于将代码附加到在参考书目中每个项目开头执行的内部挂钩。

相反,您需要的是\AtEveryCitekey,它用于将代码附加到内部挂钩,该挂钩对传递给引用命令的每个输入键执行一次。

因此,

\AtEveryCitekey{%
\ifentrytype{article}{
    \clearfield{pages}%
    \clearfield{volume}%
}{}
}

允许您在每次引用时清除字段pages和。volumearticle

如果您需要它用于所有类型的条目,只需使用

\AtEveryCitekey{%
    \clearfield{pages}%
    \clearfield{volume}%
}

梅威瑟:

\documentclass{beamer}
\usepackage[backend=biber]{biblatex}

\begin{filecontents*}{references.bib}
    @article{TurneyPantel2010,
     author               = {Peter D. Turney and Patrick Pantel},
     journal              = {Journal of Artificial Intelligence Research},
     pages                = {141--188},
     title                = {From Frequency to Meaning: Vector Space Models of Semantics},
     volume               = {37},
     year                 = {2010},
     }
\end{filecontents*}

\addbibresource{references.bib}

\ExecuteBibliographyOptions{firstinits=true, isbn=false, url=false, doi=false, uniquename=init}

\AtEveryCitekey{%
\ifentrytype{article}{
    \clearfield{pages}%
    \clearfield{volume}%
}{}
}

\begin{document}
  \begin{frame}
    This is a citation\footfullcite{TurneyPantel2010}.
  \end{frame}
\end{document} 

输出:

在此处输入图片描述

相关内容