![Biblatex:有些书目已打印,有些则没有](https://linux22.com/image/444249/Biblatex%EF%BC%9A%E6%9C%89%E4%BA%9B%E4%B9%A6%E7%9B%AE%E5%B7%B2%E6%89%93%E5%8D%B0%EF%BC%8C%E6%9C%89%E4%BA%9B%E5%88%99%E6%B2%A1%E6%9C%89.png)
我将参考书目分为手稿和印刷资料(这部分包括研究和一般书目)。bib 文件是相同的,但我通过关键字为每个部分选择了标题:
\documentclass[12pt,oneside]{book}
\usepackage[style=authoryear,doi=false,url=false,isbn=false]{biblatex}
\addbibresource{sigla9nov21.bib}
\DeclareNameAlias{default}{last-first}
\AtEveryBibitem{\clearlist{language}}
\AtEveryBibitem{\clearlist{series}}
\AtEveryBibitem{\clearlist{number}}
\usepackage{fontspec}
\setmainfont{Source Sans Pro}
\begin{document}
\part{Introduction}
\printbibheading
\printbibliography[keyword={manuscripta},title={Manuscripts}]
\nocite{Castel-Branco1586}
\printbibliography[keyword={secundaria},title={Printed sources and studies}]
\nocite{Berggren2000}
\nocite{allen1963legend}
\nocite{Taborda1986}
\nocite{zurarabourdon1994}
\part{Some content}
\end{document}
前三项已打印,后两项未打印。bib 文件中的 bibtex 条目为:
@Manuscript{Castel-Branco1586,
author = {Castel-Branco, António de},
title = {Quaestiones alique supra Logicam Aristotelis tradite a sapientissimo Antonio de Castelo Brãquo anno Domini 1586\textsuperscript{o} biduo à calendis nouêbris},
year = {1586},
keywords = {manuscripta},
library = {Biblioteca Nacional de Portugal},
shelfmark = {5053},
}
@Book{allen1963legend,
author = {Allen, Don Cameron},
title = {The Legend of Noah: Renaissance Rationalism in Art, Science, and Letters},
year = {1963},
series = {Illini books},
number = {v. 33, nos. 3-4},
publisher = {University of Illinois Press},
isbn = {9780252725166},
url = {https://books.google.pt/books?id=D8MNAQAAIAAJ},
keywords = {Bíblia (interpretação séc. XVI), Noé, Génesis, secundaria},
}
@Book{Berggren2000,
author = {J. Lennart Berggren and Alexander Jones},
title = {Ptolemy's geography: and annotated translation of the theoretical chapters},
year = {2000},
publisher = {Princeton University Press},
address = {Princeton and Oxford},
keywords = {secundaria},
}
@Book{zurarabourdon1994,
author = {Zurara, Gomes Eanes},
title = {Chronique de Guinée (1453), traduite et annotée par Léon Bourdon},
year = {1994},
publisher = {Editions Chandeigne},
address = {Paris},
ignoresseries = {Magellane},
keywords = {historiografia (séc. XV -- descobrimentos -- secundaria},
}
@Book{Taborda1986,
author = {José Taborda},
title = {Os astrolábios planisféricos: uma maravilha da geometria},
year = {1986},
publisher = {[s.n.]},
address = {Lisboa},
keywords = {astrolábio --- secundaria},
}
答案1
在受影响的两个条目中,您使用了破折号 ( ---
) 序列来分隔不同的关键字。Bib(La)Tex 无法将这些字符识别为该字段的有效分隔符keywords
。因此,该字段的整个内容被解析为一个关键字,并且该命令\printbibliography[keyword={secundaria}]
无法获取这些条目。
使用逗号代替:
keywords = {historiografia (séc. XV, descobrimentos, secundaria}
来自 biblatex 文档的§2.2.1:
- 分隔值字段分隔的文字值列表。示例为
keywords
和options
字段。分隔符可以通过选项配置为任何 Perl 正则表达式,xsvsep
该选项默认为通常的 BibTeX 逗号,周围是可选的空格。