![Почему \printbibliography[keyword=key1] не работает должным образом?](https://rvso.com/image/472283/%D0%9F%D0%BE%D1%87%D0%B5%D0%BC%D1%83%20%5Cprintbibliography%5Bkeyword%3Dkey1%5D%20%D0%BD%D0%B5%20%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%D0%B5%D1%82%20%D0%B4%D0%BE%D0%BB%D0%B6%D0%BD%D1%8B%D0%BC%20%D0%BE%D0%B1%D1%80%D0%B0%D0%B7%D0%BE%D0%BC%3F.png)
\documentclass{article}
\usepackage[backend=biber,style=ieee,sorting=ynt,defernumbers=true]{biblatex}
\addbibresource{references.bib}
\begin{document}
\section{Introduction}
\nocite{*}
\subsection*{Conference Articles}
\printbibliography[heading=none, resetnumbers,keyword={key1}]
\subsection*{Conference Abstracts}
\printbibliography[heading=none, resetnumbers,notkeyword={key1}]
\end{document}
с цитатами
@inproceedings{citation1,
author = "last1 , First1",
title = "title1",
booktitle = "book1",
pages = "0333",
year = "2022",
keyword="key1"
}
@inproceedings{citation2,
author = "Last2, First2",
title = "title2",
booktitle = "book2",
pages = "0045",
year = "2022"
}
Не имеет ожидаемого вывода. Ключевое слово вообще не распознается. Таким образом, первый \printbibliography ничего не печатает, а второй печатает и то, и другое. Что я делаю не так?
решение1
Ключ в файле .bib должен быть keywords
, а не keyword
. Здесь можно указать несколько ключевых слов, отсюда и название.
\documentclass{article}
\begin{filecontents}{references.bib}
@inproceedings{citation1,
author = "last1 , First1",
title = "title1",
booktitle = "book1",
pages = "0333",
year = "2022",
keywords = "key1"
}
@inproceedings{citation2,
author = "Last2, First2",
title = "title2",
booktitle = "book2",
pages = "0045",
year = "2022"
}
\end{filecontents}
\usepackage[
backend=biber,
style=ieee,
sorting=ynt,
defernumbers=true
]{biblatex}
\addbibresource{references.bib}
\begin{document}
\section{Introduction}
\nocite{*}
\subsection*{Conference Articles}
\printbibliography[
heading=none,
resetnumbers,
keyword={key1}
]
\subsection*{Conference Abstracts}
\printbibliography[
heading=none,
resetnumbers,
notkeyword={key1}
]
\end{document}