有没有办法使用 style=authoryear 并获取数字引用?我有,
\documentclass{book}
\usepackage[
b5paper, % h=250mm, w=176mm
inner=20mm, % Inner margin
outer=40mm, % Outer margin
top=25mm, % Top margin
bottom=25mm, % Bottom margin
marginparsep=5mm, % Margin par separator
marginparwidth=40mm, % Width of the margin paragraph
twoside, % Use different margins for odd and even pages
bindingoffset=10mm % Space for binding
]{geometry}
\usepackage{sidenotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\addbibresource{bibliography.bib}
\newcommand{\margincite}[1]{
\marginnote{\textbf{\citeauthor{#1} (\citeyear{#1})}}
}
\begin{document}
..has neither length, breadth, nor thickness\margincite{Euclid}...`; it is simply a precise location in space
\printbibliography
\end{document}
我的 .bib 有
@book{Euclid,
author = "John Casey",
title = "The First Six Books of the Elements of Euclid",
year = "1885",
publisher = "Dublin: Hodges, Figgis, and Co.; London: Longmans, Green, and Co.",
address = "Dublin"
}