![如何在 LaTeX3 中将参考书目打包到自己的包中](https://linux22.com/image/372883/%E5%A6%82%E4%BD%95%E5%9C%A8%20LaTeX3%20%E4%B8%AD%E5%B0%86%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E6%89%93%E5%8C%85%E5%88%B0%E8%87%AA%E5%B7%B1%E7%9A%84%E5%8C%85%E4%B8%AD.png)
我想将我的参考资料放入一个包中,以便在各个文档中使用。现在我有一个.bib
包含列表的文件,并将其.cls
作为导入到文件中\bibliography{./my/local/bibliography}
。
我只想这样做:
\usepackage{mybibliography}
...
\bibliography{mybibliography}
或者简单地说:
\bibliography{mybibliography}
(无需\usepackage
)。不确定这是否可能或必要。
如何实现这一点。不确定需要发布或编译成包的内容,因为它.bib
本质上只是一个文件。到目前为止,我所拥有的只有:
%
% Set latex version.
%
\NeedsTeXFormat{LaTeX2e}[2018/03/16 MyBibliography]
%
% Import packages.
%
% I would like to do this in a separate document class rather than here.
%
\RequirePackage[numbers]{natbib}
%
% Style bibliography.
%
% I would like to do this in a separate document class rather than here.
%
\bibliographystyle{amsplain}
%
% ...where to include the .bib file / what to do with that.
%