我正在使用 Tufte 图书类别编写一本书。
这是 MWE:
\documentclass[nobib]{tufte-book}%
\usepackage{lipsum}%
\usepackage{amsmath}
\usepackage{hyphenat}%
\usepackage[style=oscola, autocite=footnote, backend=biber]{biblatex}%
\addbibresource{oscola.bib}%
\usepackage[T1]{fontenc}%
\usepackage[utf8]{inputenc}
\usepackage{ragged2e}
%
\begin{document}
\justifying
This,\autocite{alcatel} should be a side note and this\autocite{verkehrsorgani} should too.
\lipsum[1-2]
This is \textbackslash{textcite\{alcatel\}}: \textcite{alcatel}
\lipsum[3-4]
\textbackslash{textcite\{alcatel\}}: \textcite{alcatel}
\lipsum[5-6]
\textbackslash{textcite\{verkehrsorgani\}}: \cite{verkehrsorgani}
\lipsum[7-8]
This is \textbackslash{textcite[See][10]\{alcatel\}}: \cite[See][10]{alcatel}
\lipsum[9-10]
This is \textbackslash footnote\{This is a footnote\}: \footnote{This is a footnote}
\printbibliography
\end{document}
oscola.bib 内容:
@jurisdiction{verkehrsorgani,
keywords = {eu},
title = {Georg Verkehrsorgani v Ferrovie
dello Stato},
userb = {Case COMP\slash 37.685},
number = {2004\slash 33\slash EC},
institution = {Commission},
year = {2004},
journaltitle = {OJ},
series = {L},
issue = {11},
pages = {17},
}
@jurisdiction{alcatel,
keywords = {eu},
title = {Alcatel/Telettra},
userb = {IV/M.042},
number = {91\slash 251\slash EEC},
institution = {Commission},
date = {1991},
journaltitle = {OJ},
series = {L},
volume = {122},
pages = {48},
}
我需要符合 Oscola 引文格式的所有脚注、旁注和引文的内容(https://ctan.org/pkg/oscola?lang=en)。我觉得结果并不像我希望的那样接近,所以我想知道是否可以修改 .cls 或 .def 文件来实现这一点。提前谢谢。
答案1
你不需要修改任何东西。只需使用选项调用 tufte booknobib
并oscola
使用 biblatex 加载样式:
\documentclass[nobib]{tufte-book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[style=oscola]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@article{abc,
author = {John Doe},
year = {1970},
title = {Article Title},
journaltitle = {Journal Name},
volume = {1},
number = {2},
pages = {13--17},
}
\end{filecontents}
\addbibresource{test.bib}
\begin{document}
Test!\footcite{abc}
\printbibliography
\end{document}
编辑:
如果你希望你的文档看起来更像OSCOLA 手册您需要更改字体并将文本设置为对齐:
\documentclass[nobib,nofonts,twoside,justified]{tufte-book}%
\usepackage[style=british]{csquotes}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[style=oscola,
autocite=footnote,
indexing=cite,
backend=biber,
ecli=yes,
babel=hyphen]{biblatex}
\addbibresource{oscola.bib}
\usepackage[splitindex,
nonewpage]{imakeidx}
\usepackage[mono=false]{libertine}
\usepackage[scaled=0.8]{beramono}
\usepackage{microtype}
\usepackage{kantlipsum}
\begin{document}
\section{Not Kant}
This \autocite{alcatel} should be a side note and this \autocite{verkehrsorgani} should too.
This is \verb|\textcite{alcatel}|: \textcite{alcatel}
\verb|\textcite{alcatel}|: \textcite{alcatel}
\verb|\cite{verkehrsorgani}|: \cite{verkehrsorgani}
This is \verb|\cite[See][10]{alcatel}|: \cite[See][10]{alcatel}
This is \verb|\footnote{This is a footnote}|: \footnote{This is a footnote}
\section{Kant}
\kant[1-2]
\printbibliography
\end{document}