这个问题实际上是一个问题,答案来自这里,但由于我的声誉太低,我别无选择,只能这样问。该链接中的问题是这样的:
我有一个混合了所有参考类型(主要是书籍和文章)的参考书目。现在,我希望能够将文章与其他内容分开,并将它们显示在单独的参考书目子标题下,例如“文章”。这有什么可能吗?
一个叫 Zun 的人回答了这个问题,说使用 biblatex 是可能的,一个可行的示例如下:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{bib.bib}
@article{death-star,
author = {Bevel Lemelisk and Wilhuff Tarkin and Darth Vader and Darth Sidious},
title = {Death Star},
howpublished = {Alderaan and Yavin 4},
year = {0 BBY}
}
@misc{death-star-2,
author = {Bevel Lemelisk and Wilhuff Tarkin and Darth Vader and Darth Sidious},
title = {Death Star II},
howpublished = {Endor},
year = {4 ABY}
}
@article{abc,
author = {Abc, D.},
title = {The Letter Fantasies},
year = 1492,
keywords = {one}
}
@Book{efg,
author = {Efg, H.},
title = {Alphabet Soup},
year = 1942,
keywords = {two}
}
\end{filecontents}
\usepackage[backend=biber,
% style=authoryear, % uncomment to display author-year
]{biblatex}
\defbibfilter{other}{
not type=article
}
%
\addbibresource{bib.bib}
\begin{document}
They first built \emph{Death Star}~\autocite{death-star}.
The design flaw was found in \autocite[Lemelisk et al., Chapter 3, p. 123][]{death-star}.
To address the flaw, they designed \emph{Death Star 2}~\autocite{death-star-2}
that featured many smaller diameter heat exhaust vents.
Read the letter fantasies \cite{abc} or stories from the a-soup \cite{efg}.
\nocite{*}
\printbibheading
\printbibliography[heading=subbibliography,title={Articles},type=article]
\printbibliography[heading=subbibliography,title={Other Sources},filter=other]
\end{document}
并且一切运行完美。只要入口类型是用小写字母写的。但是,我使用 JabRef,它将我的参考文献格式化为大写字母,例如 @Online、@Book 等。在上面的 Zuns 工作示例中,条目 @Book 是大写字母。尝试用 @Book 替换 @article。突然出现错误:
./untitled.tex:48: LaTeX Warning: Empty bibliography on input line 48.
由于我的所有条目都是大写字母,所以这很不幸。有什么办法可以解决这个问题吗?谢谢您抽出时间。