打印引用信息,但不显示在参考文献中

打印引用信息,但不显示在参考文献中

我想在正文中打印引文条目,但不想将其作为编号的参考书目条目。我尝试了该bibentry软件包,但没有成功

编辑我希望解决方案不需要操作 bib 条目本身。

平均能量损失

\documentclass{article}
\begin{filecontents}{ref.bib}
  @Book{IncludeInRefs,
    author    = {J. Doe},
    title     = {Book of something}
  }
  @Standard{DontInclude,
  author    = {IEEE},
  title     = {An electrical standard}
  }
\end{filecontents}

\usepackage{bibentry}
\usepackage[backend=biber]{biblatex}
\addbibresource{ref.bib}

\begin{document}

We are conformting to the following standards:
\fullcite{DontInclude}

Here's a good book: \citetitle{IncludeInRefs}~\cite{IncludeInRefs}

\printbibliography

\end{document}

在此处输入图片描述

答案1

有几种方法可以做到这一点。以下方法在您不想出现在参考文献中的所有 bib 条目中使用关键字。注意,我将您的@standard类型替换为@misc默认@standard数据模型中的类型:

\documentclass{article}
\begin{filecontents}[force]{\jobname.bib}
  @Book{IncludeInRefs,
    author    = {J. Doe},
    title     = {Book of something}
  }
  @Misc{DontInclude,
    author    = {IEEE},
    title     = {An electrical standard},
    keywords  = {nobib}
  }
\end{filecontents}

\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}

We are conforming to the following standards:
\fullcite{DontInclude}

Here's a good book: \citetitle{IncludeInRefs}~\cite{IncludeInRefs}

\printbibliography[notkeyword=nobib]

\end{document}

在此处输入图片描述

如果你不想编辑.bib,你可以排除未修改的部分中的信息.bib,例如精确的引用关键字:

\documentclass{article}
\begin{filecontents}[force]{\jobname.bib}
  @Book{IncludeInRefs,
    author    = {J. Doe},
    title     = {Book of something}
  }
  @Misc{DontInclude,
    author    = {IEEE},
    title     = {An electrical standard}
  }
\end{filecontents}

\usepackage{bibentry}
\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}

\defbibcheck{nobib}{%
  \iffieldequalstr{entrykey}{DontInclude}{\skipentry}{}}

\begin{document}

We are conforming to the following standards:
\fullcite{DontInclude}

Here's a good book: \citetitle{IncludeInRefs}~\cite{IncludeInRefs}

\printbibliography[check=nobib]

\end{document}

您可以在 bibcheck 中放置任何代码 - 根据条目类型、其他字段等进行过滤。

答案2

我接受了@PLK的回答,但是我的实现有点不同,灵感来自于:从参考书目中排除 \fullcite{...} 引用

我定义\fullcitenobibnobib类别添加到引用中,然后打印参考书目以排除该类别。

\documentclass{article}
\begin{filecontents}{ref.bib}
  @Book{IncludeInRefs,
    author    = {J. Doe},
    title     = {Book of something}
  }
  @Standard{DontInclude,
  author    = {IEEE},
  title     = {An electrical standard}
  }
\end{filecontents}

\usepackage{bibentry}
\usepackage[backend=biber]{biblatex}
\addbibresource{ref.bib}


\DeclareBibliographyCategory{nobib}
\NewDocumentCommand{\fullcitenobib}{m}{\addtocategory{nobib}{#1}\fullcite{#1}}

\begin{document}

We are conformting to the following standards:
\fullcitenobib{DontInclude}

Here's a good book: \citetitle{IncludeInRefs}~\cite{IncludeInRefs}

\printbibliography[notcategory=nobib]

\end{document}

相关内容