![\printbibliography[keyword=key1] が期待どおりに動作しないのはなぜですか?](https://rvso.com/image/472283/%5Cprintbibliography%5Bkeyword%3Dkey1%5D%20%E3%81%8C%E6%9C%9F%E5%BE%85%E3%81%A9%E3%81%8A%E3%82%8A%E3%81%AB%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%AA%E3%81%84%E3%81%AE%E3%81%AF%E3%81%AA%E3%81%9C%E3%81%A7%E3%81%99%E3%81%8B%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 は何も出力せず、2 番目は両方を出力します。何が間違っているのでしょうか?
答え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}