如何使用 biblatex 获得带有嵌套目录的嵌套参考书目?

如何使用 biblatex 获得带有嵌套目录的嵌套参考书目?

Biblatex 真的很酷,它允许根据不同的过滤器将参考书目细分为不同的部分:例如,如果我只想打印参考书目中的文章,我可以这样写:

\printbibliography[type=article, title={Articles}]

现在,如果我想让该参考书目出现在目录中,我可以添加“标题”参数:

\printbibliography[heading=bibintoc, type=article, title={Articles}]

现在我的文章参考书目已列在我的目录中。

问题是,我想要一个嵌套的参考书目:目录看起来像这样:

带有嵌套参考书目的目录

我通过以下方式轻松实现:

\printbibliography[
    heading=bibintoc,
    title={Bibliography}
]
\printbibliography[
    heading=subbibintoc,
    type=article,
    title={Articles}
]
\printbibliography[
    heading=subbibintoc,
    type=book,
    title={Manuals}
]

但是上面的代码只能得到我想要的目录,而不是我想要的参考书目。我不需要三个参考书目。我想要一个“类似章节”的标题,上面写着“参考书目”(但没有编号,因为参考书目不应该有编号的标题),然后是两个子参考书目,而当我编写上面的代码时,我有一个完整的参考书目,然后是两个子参考书目:

在此处输入图片描述

仅限书写:

\printbibliography[
    heading=subbibintoc,
    type=article,
    title={Articles}
]
\printbibliography[
    heading=subbibintoc,
    type=book,
    title={Manuals}
]

也没有让我得到我想要的东西:

  • 目录将两个子目录的条目与上一节的条目合并

  • 子目录上印有“子章节式”标题,但没有“章节式”标题“参考书目”。

写作 :

\section{Bibliography}
\printbibliography[
    heading=subbibintoc,
    type=article,
    title={Articles}
]
\printbibliography[
    heading=subbibintoc,
    type=book,
    title={Manuals}
]

几乎让我得到了我想要的东西,除了参考书目标题编号的部分,理想情况下它不会编号。

在我的序言中,我已经:

\usepackage[
    backend=biber,
    defernumbers=true,
    style=numeric,
    backref=true
]{biblatex}
\addbibresource{bibliography.bib}

我的 .bib 文件如下所示:

@article{ARUCO,
author          = "S. Garrido-Jurado and R. Muñoz-Salinas and F.J. Madrid-Cuevas and M.J. Marín-Jiménez",
journal         = "Pattern Recognition",
%month          = "",
%note           = "",
number          = "6",
pages           = "2280 - 2292",
title           = "Automatic generation and detection of highly reliable fiducial markers under occlusion",
volume          = "47",
year            = "2014",
%issn           = "",
doi             = "http://dx.doi.org/10.1016/j.patcog.2014.01.005",
url             = "http://www.sciencedirect.com/science/article/pii/S0031320314000235"
}

@article{GenerationFiducialMarkers,
author          = "S. Garrido-Jurado and R. Muñoz-Salinas and F.J. Madrid-Cuevas and R. Medina-Carnicer",
journal         = "Pattern Recognition",
month           = "October",
%note           = "",
%number         = "",
pages           = "481 - 491",
title           = "Generation of fiducial marker dictionaries using mixed integer linear programming",
volume          = "51",
year            = "2015",
%isnn           = "",
doi             = "http://dx.doi.org/10.1016/j.patcog.2015.09.023",
url             = "http://www.sciencedirect.com/science/article/pii/S0031320315003544"
}

@article{GFDs,
author          = "Dengsheng Zhang and Guojun Lu",
journal         = "Multimedia and Expo",
%month          = "",
%note           = "",
%number         = "",
%pages          = "",
title           = "Generic Fourier descriptor for shape-based image retrieval",
%volume         = "",
year            = "2002",
%issn           = "",
%doi            = "",
%url            = ""
}

@book{DigitalImgProc,
author          = "Rafael C. Gonzalez and Richard E. Woods",
title           = "Digital Image Processing (3rd Edition)",
publisher       = "Prentice-Hall, Inc.",
%volume         = "",
%number         = "",
%series         = "",
%address        = "",
%edition        = "",
year            = "2006",
%month          = "",
%note           = "",
}

如果有人知道并解释如何做到这一点,我将非常感激,我现在​​已经有点困惑了。

答案1

这是你想要的吗?(这bibliography.bib是你发布的)。

\documentclass{book}
\usepackage[
    backend=biber,
    defernumbers=true,
    style=numeric,
    backref=true
]{biblatex}
\addbibresource{bibliography.bib}

\begin{document}
\tableofcontents
\nocite{*}

\chapter*{Bibliography}     
\addcontentsline{toc}{chapter}{Bibliography}
\markboth{Bibliography}{Bibliography}

\printbibliography[ heading=subbibintoc, type=article, title={Articles} ] 
\printbibliography[ heading=subbibintoc, type=book, title={Manuals} ]

\end{document}

在此处输入图片描述

在此处输入图片描述

相关内容