我正在使用在这里找到的 footcite hack:Biblatex,脚注引用和参考书目编号(虽然已经过时了,但是...)
具体来说,这是我所拥有的(在背面):
\usepackage[backend=bibtex,citestyle=authortitle-icomp,bibstyle=numeric,sorting=none]{biblatex}
\renewbibmacro*{cite:full}{%
\usebibmacro{cite:full:citepages}%
\printtext[bibhypertarget]{%
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}%
% \usebibmacro{shorthandintro}}% DELETED
\usebibmacro{shorthandintro}% NEW
\csxdef{cbx@\thefield{entrykey}@footnotenumber}{\the\value{footnote}}% NEW
}% NEW
footcite 部分工作正常,但是 (a) 我收到此错误:“Package biblatex 警告:宏‘cite:full’未定义。使用 \newbibmacro”,我认为这是自我纠正的。更重要的问题 (b) 是参考文献没有编号!Per:
在此先感谢您的帮助。
这是 MRE 代码:
废话.tex:
\documentclass{article}
\usepackage[backend=bibtex,citestyle=authortitle-icomp,bibstyle=numeric,sorting=none]{biblatex}
\renewbibmacro*{cite:full}{%
\usebibmacro{cite:full:citepages}%
\printtext[bibhypertarget]{%
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}%
\usebibmacro{shorthandintro}%
\csxdef{cbx@\thefield{entrykey}@footnotenumber}{\the\value{footnote}}%
}% NEW
\DeclareFieldFormat{prefixnumber}{}
\DeclareFieldFormat{labelnumber}{\csuse{cbx@\thefield{entrykey}@footnotenumber}}
\bibliography{blah.bib}
\title{blah blah}
\begin{document}
\maketitle
``blah blah blahblah blah blah''\footcite{AT50Mind}
\section{blah blah}
blah blah blah.\footcite[25-30]{C&G64}
\section{blah blah}
blahblah blah blahblah blah blahbla\footcite[12]{BBNHistory}
blah blahblah blah blahblah blah blahblah blah blahblah blah blahblah blah blah\footcite[25-30]{AT50Mind}
\printbibliography
\end{document}
blah.bib:
@misc{ADA43,
author = {Ada Augusta, Countess of Lovelace},
title = {Notes on L. F. Menabrea’s “Sketch of the Analytical Engine Invented by Charles Babbage”},
journal = {Scientific Memoirs},
month = 9,
year = {1843},
howpublished = {\url{http://imaginaryinstruments.org/lovelace-analytical-engine/}},
note = {Accessed 2022-11-04}
}
@article{ARSTech2022Alexa,
title = {Amazon Alexa is a “colossal failure,” on pace to lose \$10 billion this year},
journal = {Ars Technica},
howpublished = {\url{https://arstechnica.com/gadgets/2022/11/amazon-alexa-is-a-colossal-failure-on-pace-to-lose-10-billion-this-year/}},
note = {Accessed 2022-11-27}
}
@article{AT50Mind,
author = {Turing, A},
title = {Computing Machinery and Intelligence},
journal = {Mind},
volume = {49},
pages = {433-460},
year = {1950}
}
@book{BBNHistory,
editor = {Walden, D and Nickerson, R},
title = {A Culture of Innovation: Insider Accounts of Computing and Life at BBN},
publisher = {Waterside Publishing},
year = {201},
note = {A Sixty Year Report 18 October 1948 to 1 July 2010}
}
@article{C&G64,
author = {Colby, KM and Gilbert, JP},
title = {Programming a computer model of neurosis},
journal = {J. Math Psych},
volume = {1},
pages = {405-416},
year = {1964}
}