文档内的小型参考书目及其自己的参考书目

文档内的小型参考书目及其自己的参考书目

文档(类文章)末尾打印有参考书目(使用 biblatex)。但在文档内部,一小部分(在我的示例中称为包含部分)有自己的参考书目(不是主要参考书目的一部分),该参考书目打印在包含部分的末尾。这个小部分没有对主要参考书目的引用。

\documentclass{article}

\usepackage[defernumbers=true]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
  category = {internal}
}

@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}

@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\bibliography{\jobname}

\DeclareBibliographyCategory{internal}

\begin{document}

\nocite{*}
\addtocategory{internal}{A01}

\section{first section}

blabla~\cite{B02}


\section{included section}

blabla~\cite{A01}

\printbibliography[title={bibliography of included section},category=internal]

\section{other sections...}

blabla~\cite{C03}

\printbibliography[title={Full bibliography without internal category},notcategory=internal]

\end{document}

PDF内容如下:

PDF

主要问题是所包含的参考书目是主要参考书目的一部分:主要参考书目从 [2] 开始,因为它包含所包含部分的参考书目。我如何(逻辑上)将这两个参考书目分开?我希望小参考书目使用像 '[Babar2007]' 这样的参考文献,而主要参考书目则按“[23]”这样的顺序编号(有自己的参考计数器:主要参考书目从 1 开始)?

答案1

您可以通过添加refsection环境来做到这一点。(我用作bibtex后端。)

\documentclass{article}

\usepackage[backend=bibtex,defernumbers=true]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
  category = {internal}
}

@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}

@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\bibliography{\jobname}

\DeclareBibliographyCategory{internal}

\begin{document}

\nocite{*}
\addtocategory{internal}{A01}

\section{first section}
\begin{refsection}

blabla~\cite{B02}


\section{included section}

blabla~\cite{A01}

\printbibliography[title={bibliography of included section},category=internal]
\end{refsection}

\section{other sections...}

blabla~\cite{C03}

\printbibliography[title={Full bibliography without internal category},notcategory=internal]

\end{document}

请注意,必须bibtex在所有辅助文件上运行:

bibtex tmp1-blx.aux
bibte  tmp2-blx.aux

示例输出

相关内容