使用 BibLaTeX/Biber 编译 LaTeX 文件以生成主文档和参考文献作为单独的文件

使用 BibLaTeX/Biber 编译 LaTeX 文件以生成主文档和参考文献作为单独的文件

我正在使用 BibLaTeX 软件包和 Biber 后端来制作一份资助提案。但是,这个资助机构(和其他一些机构一样)要求将主要提案和参考资料放在单独的文件中。我发现这个答案,但它相当老了,而且使用了 BibTeX。我浏览了BibLaTeX 文档,但没有找到将参考书目生成为单独文件的命令。我知道我可以使用两个.tex文件,第二个文件从.bbl中间文件生成参考文献(如这个答案),但是,我希望一步到位,因为我的教授对使用 LaTeX 相当敏感。另外,这个答案提供了一个 bash 脚本来分割文件,但它在我教授的 Windows 机器上无法运行。

那么,是否有一种跨平台的方式可以使用 BibLaTeX/Biber 自动拆分文档,以便在每次使用 LuaTeX 构建时将参考文献最终放在单独的 pdf 中?


梅威瑟:

文件biblio.bib

@article{key1,
  title={Paper Title},
  author={Author, Author},
  journal={Some Journal},
  volume={27},
  number={2},
  pages={143--154},
  year={2001}
}

文件proposal.tex

\documentclass[a4j,11pt]{article}

\usepackage[style=authoryear-comp, mincitenames=1, maxcitenames=2, maxbibnames=10, uniquelist=false, backend=biber, natbib]{biblatex}
\addbibresource{biblio.bib}

\title{PROJECT DESCRIPTION}
\date{}
\author{}

\begin{document}
  \maketitle

  Some text with a reference to \citet{key1}. The bibliography should actually be output to a separate pdf file.

  % Commenting next line to prevent references from appearing in the main document
  %\printbibliography

\end{document}

相关内容