![打印引用信息,但不显示在参考文献中](https://linux22.com/image/454182/%E6%89%93%E5%8D%B0%E5%BC%95%E7%94%A8%E4%BF%A1%E6%81%AF%EF%BC%8C%E4%BD%86%E4%B8%8D%E6%98%BE%E7%A4%BA%E5%9C%A8%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%E4%B8%AD%20.png)
我想在正文中打印引文条目,但不想将其作为编号的参考书目条目。我尝试了该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{...} 引用
我定义\fullcitenobib
将nobib
类别添加到引用中,然后打印参考书目以排除该类别。
\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}