![提取具有特定字段值的所有 bibtex 项目](https://linux22.com/image/457536/%E6%8F%90%E5%8F%96%E5%85%B7%E6%9C%89%E7%89%B9%E5%AE%9A%E5%AD%97%E6%AE%B5%E5%80%BC%E7%9A%84%E6%89%80%E6%9C%89%20bibtex%20%E9%A1%B9%E7%9B%AE.png)
我想提取所有已选中字段值的 bibtex 项目。即从包含以下两个条目的文件中,我只想要第二个条目。字段的确切值无关紧要。
@proceedings{HPSG2021,
address = {Frankfurt/Main},
booktitle = {{Proceedings of the 28th International Conference on Head-Driven Phrase Structure Grammar, Online (Frankfurt\slash Main)}},
editor = {Müller, Stefan and Melnik, Nurit},
publisher = {University Library},
title = {{Proceedings of the 28th International Conference on Head-Driven Phrase Structure Grammar, Online (Frankfurt\slash Main)}},
year = {2021}}
@incollection{Haider2000a,
address = {Amsterdam},
author = {Hubert Haider},
booktitle = {The Derivation of {VO} and {OV}},
checked = {stmue 2021},
doi = {10.1075/la.31.03hai},
editor = {Peter Svenonius},
number = {31},
pages = {45--67},
publisher = {Benjamins},
series = {Linguistik aktuell},
title = {{OV} is More Basic than {VO}},
year = {2000}}
答案1
您可以使用比布工具过滤条目:
bibtool -r biblatex -- select{"checked"} references.bib
将仅返回其中references.bib
键匹配的条目checked
:
@InCollection{ haider2000a,
address = {Amsterdam},
author = {Hubert Haider},
booktitle = {The Derivation of {VO} and {OV}},
checked = {stmue 2021},
doi = {10.1075/la.31.03hai},
editor = {Peter Svenonius},
number = {31},
pages = {45--67},
publisher = {Benjamins},
series = {Linguistik aktuell},
title = {{OV} is More Basic than {VO}},
year = {2000}
}