Biblatex によるセクションごとの引用および非引用文献リスト

Biblatex によるセクションごとの引用および非引用文献リスト

3.11.3: Multiple Bibliographies私はのセクションの例を使用していますBiblatex ドキュメント. 組み合わせたいこの例セクションごとcitedおよびuncited参考文献を取得します。

動作しませんが、その理由はよく分かりません。例を示します。

\documentclass{report}
\usepackage[defernumbers=true,sorting=none]{biblatex}
\DeclareBibliographyCategory{cited}
\AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}

\addbibresource{foo.bib}
\nocite{*}

\begin{document}
\begin{refsection}
Hello, World~\cite{foo}.
\printbibliography[title={My References},heading=subbibliography,category=cited]
\printbibliography[title={Future Reading},heading=subbibliography,notcategory=cited]
\end{refsection}
\end{document}

内容foo.bib

@techreport{foo,
    Author = {Nault, R. M.},
    Institution = {The World},
    Title = {A report on things that matter.},
    Year = {2005}}

@techreport{bar,
    Author = {Bar, A. F.},
    Institution = {Moon Ltd},
    Title = {Moon-based Research On Moon Rocks},
    Year = {2005}}

これは参照を提供しますcitedが、future readingセクションは生成しません。

ここに画像の説明を入力してください

2 つの例をうまく組み合わせて、セクションごとのcited参考uncited文献リストを作成するにはどうすればよいでしょうか?

答え1

refsection問題は、コマンドが認識されない環境のスコープが原因で発生するようです\nocite。このコマンドを環境に移動するか、環境を抑制すると、うまくいきます。

関連情報