忽略参考文献中的一些引用,但保持连续编号

忽略参考文献中的一些引用,但保持连续编号

我正在编写一份文档,希望将引用分为两类:一类是“项目内部”类别,该类别按\printbibliography常规编号并打印在末尾;另一类是“外部”类别,该类别应仅放在脚注中,而不包含在全局参考编号中。可以这样做吗(使用 biblatex 和 biber)?

类似这个例子

\documentclass{article}
\usepackage[]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\usepackage[paperheight=7cm]{geometry}

\begin{filecontents}{\jobname.bib}
  @book{projectpaper1,
    author = {Aauthor, A.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
    keywords = {internal},
  }
  @book{projectpaper2,
    author = {Zauthor, Z.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
    keywords = {internal},
  }
  @book{externalpaper1,
    author = {Bauthor, B.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
  }
\end{filecontents}

\begin{document}

Our paper \cite{projectpaper1} extends on the old and boring state
of the art\footnote{\fullcite{externalpaper1}} as also demonstrated in 
\textcite{projectpaper2}. 

\printbibliography[keyword={internal}]

\end{document}

然后应该在最后产生一个引用,其中包含两个连续编号参考文献。然而,在我所有的尝试中,我都没能得到比下面的例子更好的东西。 在此处输入图片描述

答案1

您正在寻找该defernumbers选项。如果启用该选项,则仅在打印参考书目时分配数字标签。这通常可确保参考书目中的编号按预期连续。

\documentclass{article}
\usepackage[defernumbers=true]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\usepackage[paperheight=7cm]{geometry}

\begin{filecontents}{\jobname.bib}
  @book{projectpaper1,
    author = {Aauthor, A.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
    keywords = {internal},
  }
  @book{projectpaper2,
    author = {Zauthor, Z.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
    keywords = {internal},
  }
  @book{externalpaper1,
    author = {Bauthor, B.},
    year = {2001},
    title = {Title},
    publisher = {Publisher},
  }
\end{filecontents}

\begin{document}
Our paper \cite{projectpaper1} extends on the old and boring state
of the art\footfullcite{externalpaper1} as also demonstrated in 
\textcite{projectpaper2}. 

\printbibliography[keyword={internal}]
\end{document}

在此处输入图片描述

相关内容