我不确定下面例子中的 blx@hook@citekey@next 来自哪里。
脚注的输出是:
1 blx@hook@citekey@nextCarl Menger。国民经济理论的基础。布劳米勒,1982 年。
\documentclass{report}
\usepackage[backend=bibtex,citestyle=verbose-ibid,bibstyle=numeric,sorting=nyt,defernumbers=true]{biblatex}
\DeclareBibliographyCategory{websites}
\DeclareBibliographyCategory{spoken}
\DeclareBibliographyCategory{books}
\AtEveryCitekey{
\ifentrytype{book}{
\addtocategory{books}{\thefield{entrykey}}
}
}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{3,
author = {Menger, Carl},
title = {Grunds{\"a}tze der Volkswirtschaftslehre},
publisher = {Braum{\"u}ller},
year = {1982}
}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{Chapter}
Some text
\footcite{3}
\end{document}
答案1
答案很简单,如果某物然后某物别的其他。您缺少别的有条件地参与。
\documentclass{article}
\setlength{\textheight}{5cm}
\usepackage[backend=bibtex,citestyle=verbose-ibid,bibstyle=numeric,sorting=nyt,defernumbers=true]{biblatex}
\DeclareBibliographyCategory{books}
\AtEveryCitekey{
\ifentrytype{book}{
\addtocategory{books}{\thefield{entrykey}}
}{}%<---------- else, well, nothing
}
\begin{filecontents}{\jobname.bib}
@book{3,
author = {Menger, Carl},
title = {Grunds{\"a}tze der
Volkswirtschaftslehre},
publisher = {Braum{\"u}ller},
year = {1982}
}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\section{Chapter}
Some text
\footcite{3}
\end{document}