
Я использую пример в 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
раздел:
cited
Как успешно объединить два примера, чтобы создать список литературы по разделам uncited
?
решение1
Проблема, похоже, возникает из-за области действия refsection
среды, которая не видит вашу \nocite
команду. Перемещение указанной команды в среду или подавление среды работает для меня.