将未引用的软件打印在单独的参考书目中

将未引用的软件打印在单独的参考书目中

不幸的是,我找不到很好的解决方案,因此写了这篇文章。我需要为文章中使用的软件打印一个单独的“参考”部分。这个软件显然没有在文中任何地方引用。我正在使用纺织品商店比伯作为连接到的后端佐特罗better-bibtex. 该软件(例如RStudio) 可以放在我的 Zotero 库中,也可以放在单独的 bib 文件中。在第一个参考书目中,只应打印软件(例如使用category={software});在第二个参考书目中,应打印文中引用的任何作品。我还没有完全做到这一点,所以我很高兴能得到一些帮助。谢谢!

来自我的序言的文字,表明我正在做什么:

\usepackage[
    style=chicago-authordate,
    backref=false,
    hyperref=true,
    backend=biber
    ]
    {biblatex}
    \renewcommand{\postnotedelim}{\addcolon\space} 
%replace the comma with a colon
    \usepackage{bibentry}
    \addbibresource[location=remote]{http://localhost:23119/better-bibtex/library?/1/library.biblatex} 
%Dynamic pull request with zotero; this is the link to the whole library

    \usepackage{filecontents}
    \begin{filecontents}{files/software.biblatex}
        @Manual{,
            title = {RStudio: Integrated Development Environment for R, v1.1.463},
            author = {{RStudio Team}},
            organization = {RStudio, Inc.},
            address = {Boston, MA},
            year = {2016},
            url = {http://www.rstudio.com/},
            keywords = {software},
            category = {software},
      }
    \end{filecontents}
    \addbibresource{files/software.biblatex}

然后,我应该打印两个参考书目:

\addcontentsline{toc}{section}{Data Sources}\label{DataSources}
\printbibliography[category=software]
\addcontentsline{toc}{section}{References}
\printbibliography

编辑:我尝试剥离所有不需要的内容以获得最小工作示例,使用两个来源,其中一个应列在参考部分,另一个应列在数据源部分。

%----------------------------------------------------------------------------------------
% INSTRUCTIONS FOR ARARA
% arara: lualatex
% arara: biber
% arara: lualatex
%----------------------------------------------------------------------------------------

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{MWE}

%----------------------------------------------------------------------------------------
%   OPTIONS FOR BIBER
\usepackage[
    style=chicago-authordate,
    backref=false,
    hyperref=true,
    backend=biber
    ]
    {biblatex}    

\usepackage{filecontents}
\begin{filecontents}{sources.bib}
@software{rstudio,
    title = {RStudio: Integrated Development Environment for R},
    author = {{RStudio Team}},  
    organization = {RStudio, Inc.},
    address = {Boston, MA},
    year = {2016},
    url = {http://www.rstudio.com/},
    version = {1.1.463},
    keyword = {software},
    }

@article{ullmann2010bit,
  title={Bit-vector algorithms for binary constraint satisfaction and subgraph isomorphism},
  author={Ullmann, Julian R},
  journal={Journal of Experimental Algorithmics (JEA)},
  volume={15},
  pages={1--6},
  year={2010},
  publisher={ACM},
}
\end{filecontents}

\usepackage{bibentry}
\addbibresource{sources.bib}

\begin{document}
This is a reference that should show up in the Reference section: \parencite[5]{ullmann2010bit}\\
I used RStudio; details can be found in the Data Sources section.

\addcontentsline{toc}{section}{Data Sources}
\printbibliography[keyword={software},title={Data Sources}]

\addcontentsline{toc}{section}{References}
\printbibliography[notkeyword={software}]

\end{document}

EDIT2:我还可以尝试通过在 Zotero 中生成所需格式的参考书目来解决问题(输出为重复格式或者HTML),然后将 HTML 或 RTF 文件嵌入到所需部分,我的软件应该会显示在该部分(数据源数量很少,因此从 Zotero 手动导出是可行的)。我使用的是LuaLaTex引擎,如果这有帮助(由于'fontspec')。

答案1

这是一种可能的做法。我们采用通常的做法\nocite{*},将 bib 文件中存在的所有条目添加到参考书目中,然后,我们将所有实际引用的条目添加到类别中cited。这应该足以与一起keywords={software}正确筛选您的每个参考书目。

请注意,我删除了您加载的几个软件包,并附上了注释,说明删除的原因。我还回退到misc您的软件条目的条目类型,因为biblatex-chicago它向我抛出了错误(“我找不到条目类型‘软件’的驱动程序,也没有后备驱动程序。”)。

\documentclass{article}

% you shouldn’t need this with lualatex...
% \usepackage[utf8]{inputenc}

\title{MWE}

\usepackage[
    style=chicago-authordate,
    backref=false,
    hyperref=true,
    backend=biber
    ]
    {biblatex}

\usepackage{filecontents}
\begin{filecontents}{sources.bib}
@misc{rstudio,
  title = {RStudio: Integrated Development Environment for R},
  author = {{RStudio Team}},
  organization = {RStudio, Inc.},
  address = {Boston, MA},
  year = {2016},
  url = {http://www.rstudio.com/},
  version = {1.1.463},
  keywords = {software},
}

@article{ullmann2010bit,
  title={Bit-vector algorithms for binary constraint satisfaction and subgraph isomorphism},
  author={Ullmann, Julian R},
  journal={Journal of Experimental Algorithmics (JEA)},
  volume={15},
  pages={1--6},
  year={2010},
  publisher={ACM},
}
\end{filecontents}

% no need with biblatex, and possibly incompatible with it, use \fullcite instead
% \usepackage{bibentry}

\addbibresource{sources.bib}

\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

\begin{document}
This is a reference that should show up in the Reference section: \parencite[5]{ullmann2010bit}\\
I used RStudio; details can be found in the Data Sources section.

\nocite{*}

% \addcontentsline{toc}{section}{Data Sources} % better use printbibliography’s options for that
\printbibliography[heading=subbibintoc,keyword={software},title={Data Sources}]

% \addcontentsline{toc}{section}{References}
\printbibliography[heading=subbibintoc,category=cited,notkeyword={software}]

\end{document}

在此处输入图片描述

相关内容