如何更改脚注样式的“\autocite{x}”以将参考书目与作者年份标签链接起来?

如何更改脚注样式的“\autocite{x}”以将参考书目与作者年份标签链接起来?

我使用推荐阅读清单\nocite{*}和参考书目样式制作文档奥斯科拉

OSCOLA 通常只使用脚注,但仍然可以打印参考书目。

我现在想使用作者年份标签添加一些推荐阅读列表中某些项目的参考资料。我如何配置 biblatex 来生成这样的标签并将其链接到参考书目?我使用 pandoc 来起草内容,因此命令\autocite{x}是强制的。

平均能量损失

\documentclass[a4paper]{scrartcl}

\usepackage{hyperref}

\usepackage[backend=biber,style=oscola,autocite=plain]{biblatex} 
\addbibresource{test.bib}


\begin{filecontents*}{test.bib}
@online{simon2018,
  url = {https://www.euractiv.com/section/energy/news/smart-meter-woes-hold-back-digitalisation-of-eu-power-sector/},
  date = {2019-01-29},
  author = {Frédéric Simon},
  title = {Smart meter woes hold back digitalisation of EU power sector},
  journaltitle = {EURACTIV},
}
\end{filecontents*}

\title{Recommended Readings}

\begin{document}

\maketitle

\section{Context}

This has been noted previously \autocite{simon2018}.

% References
\nocite{*} % include all elements from the bibliography
\printbibliography[title={Recommended Reading}]

\end{document}

在此处输入图片描述

目标输出

之前已经指出过这一点(Frédéric Simon,2018)。

当我使用 配置 biblatex 时citestyle=authoryear,出现错误:

包 etoolbox 错误:切换“cbx@postnoteprinted”未定义。

答案1

oxnotes风格以(非法律)人文友好的方式实现 BL-OSCOLA:

牛蒡笔记

平均能量损失

\begin{filecontents*}[overwrite]{\jobname.bib}
@misc{UNGA_Res2222, 
  institution  = {UNGA},
  title        = {Treaty on Principles Governing the Activities of States in the Exploration and Use of Outer Space, including the Moon and Other Celestial Bodies}, 
  instrument_no= {RES 2222 (XXI)}, 
  date         = {1966-12-19},
  entrysubtype = {undoc},
  tabulate = {unres},
  }
@online{simon2018,
  url = {https://www.euractiv.com/section/energy/news/smart-meter-woes-hold-back-digitalisation-of-eu-power-sector/},
  date = {2019-01-29},
  author = {Frédéric Simon},
  title = {Smart meter woes hold back digitalisation of EU power sector},
  journaltitle = {EURACTIV},
}
@jurisdiction{antaios85,
title = {Antaios Compania Naviera S.A. v.
Salen Rederierna A.B. (The Nema)},
shorttitle = {The Nema},
date = {1985},
reporter = {A.C.},
pages = {191},
court = {H.L.},
additionalreports = {[1984] 3 WLR 592 and (1984) 128 SJ 564
and [1984] 3 All ER 229 and
[1984] 2 Lloyd’s Rep 235},
keywords = {gb},
}
@jurisdiction{corr08,
title = {Corr v. I.B.C. Vehicles Ltd.},
keywords = {gb},
date = {2008},
number = {[2008] UKHL 13},
journaltitle = {A.C.},
volume = {1},
pages = {884},
options = {year-essential=true},
institution = {HL},
shorttitle = {Corr},
pagination = {[]},
}
@jurisdiction{page96,
title = {Page v Smith},
usera = {gb},
date = {1996},
journaltitle = {AC},
pages = {155},
institution = {HL},
}
@inbook{pila10,
author = {Pila, Justine},
editor = {Dutton, William H. and Jeffreys, Paul W.},
booktitle= {World Wide Research: Reshaping the
Sciences and Humanities in the
Century of Information},
publisher= {MIT Press},
date = {2010},
title = {The Value of Authorship in the
Digital Environment},
pages = {210--231},
}
@book{leviathan,
author = {Hobbes, Thomas},
title = {Leviathan},
publisher = {Penguin},
date = {1985},
origdate = {1651},
location = {Harmondsworth},
}
@article{craig05,
author = {Craig, Paul},
title = {Theory {`Pure Theory'}
and Values in Public Law},
date = {2005},
journaltitle = {P.L.},
pages = {440},
}

\end{filecontents*}  
  
\documentclass{article}

\usepackage{fontspec}
\setmainfont{Noto Serif}
\usepackage[style=oxnotes,%oscola,
                        citestyle=authoryear,
        indexing=cite,
        backend=biber,
        ecli=yes,
        babel=hyphen,
%        autocite=footnote,
        ]{biblatex}
        
\addbibresource{\jobname.bib}



\begin{document}

text \autocite{UNGA_Res2222}

This has been noted previously \autocite{simon2018}.

...like in \cite{antaios85}, and two other cases in the House of Lords, \cite{corr08} and \cite{page96}.

Article \autocite{craig05}, book \autocite{pila10} and old book \autocite{leviathan}.


\printbibliography
\end{document}

相关内容