是否可以在线托管参考书目文件并将 LaTex 指向它?这个想法是在线托管组引用文件,这样每个人都不必拥有自己的本地副本,而只需使用在线副本即可。这是受到 matplotlib 样式表的启发。
答案1
这是一个似乎可行的简单示例。
% LaTeX file: `myfile.tex`
\documentclass{article}
\parindent 0pt % just for this example
\usepackage[T1]{fontenc}
\usepackage[backend=biber, style=authoryear]{biblatex}
\addbibresource[location=remote]{https://pastebin.com/raw/cH9cesuJ}
\begin{document}
This is a remote citation \cite{raz1983}.
\printbibliography
\end{document}
下面是一个单条目.bib
文件,可在粘贴箱:
% BibTeX file as found at https://pastebin.com/cH9cesuJ
% but use the 'raw' version: https://pastebin.com/raw/cH9cesuJ
@Book{raz1983,
date = 1983,
author = {Raz, Joseph},
title = {The Authority of Law},
shorttitle = {Authority of Law},
publisher = {Oxford University Press},
location = {Oxford},
}
然后是正常的命令序列:
latex myfile.tex # note: extensions not strictly needed
biber myfile.bcf
latex myfile.tex
结果: