![\footcite 遺失參考部分編號](https://rvso.com/image/475752/%5Cfootcite%20%E9%81%BA%E5%A4%B1%E5%8F%83%E8%80%83%E9%83%A8%E5%88%86%E7%B7%A8%E8%99%9F.png)
我正在使用我在這裡找到的 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)是參考文獻沒有編號!每:
在此先感謝您的幫忙。
這是 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}
廢話.圍脖:
@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}
}