我通常从 bib 文件中将出版物添加到简历中(使用 biblatex)。起初,我习惯手动引用每个条目,但随着列表的增长,这变成了一件苦差事(尤其是因为我的简历更新之间有相当多的出版物,我似乎永远都记不住时间顺序)。我希望能够告诉我biblatex
扫描 bib 文件,提取所有@article
条目并在“期刊出版物”标题下引用它们,然后提取所有@inproceedings
条目并在“会议论文集”下引用它们,依此类推(即,不单独引用它们)。
我可以管理章节和标题的命名/样式,但我无法进行自动引用。我该怎么做?这是一个非常简单的示例,没有多余的操作:
.bib 文件:
@article{Doe2012a,
author = {J. Doe},
title = {Lorem Ipsum -- Part I},
journal = {J. Dolor Sit Am.},
volume = {1},
pages = {1--10},
month = {1},
year = {2012},
}
@article{Doe2012b,
author = {J. Doe},
title = {Lorem Ipsum -- Part II},
journal = {J. Dolor Sit Am.},
volume = {2},
pages = {11--20},
month = {2},
year = {2012},
}
@book{Doe,
author = {J. Doe},
title = {Lorem Ipsum -- Complete Works},
publisher = {{Dolor S. Amet and Sons}},
year = {2011},
}
.tex 文件:
\documentclass{article}
\usepackage{biblatex,lipsum}
\addbibresource{path/to/bib/file}
\begin{document}
\section{Lorem Ipsum}
\lipsum[1]
\subsection{Publications}
%Scan the bib file and print all @article entries in descending order here!
\section{Dolor sit Amet}
\lipsum[1]
\end{document}
答案1
我认为您想使用该type=<entrytype>
选项\printbibliography
(手册中的第 3.6.2 节)。例如:
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\nocite{*}
\printbibliography[title=Articles, type=article]
\printbibliography[title={Conference Proceedings}, type=inproceedings]
\end{document}
使用提供的参考书目项目:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Doe2012a,
author = {J. Doe},
title = {Lorem Ipsum -- Part I},
journal = {J. Dolor Sit Am.},
volume = {1},
pages = {1--10},
month = {1},
year = {2012},
}
@article{Doe2012b,
author = {J. Doe},
title = {Lorem Ipsum -- Part II},
journal = {J. Dolor Sit Am.},
volume = {2},
pages = {11--20},
month = {2},
year = {2012},
}
@book{Doe,
author = {J. Doe},
title = {Lorem Ipsum -- Complete Works},
publisher = {{Dolor S. Amet and Sons}},
year = {2011},
}
\end{filecontents}
\usepackage[backend=biber, sorting=nty, style=authoryear]{biblatex}
%\addbibresource{biblatex-examples.bib}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography[title=Articles, type=article]
\printbibliography[title={Conference Proceedings}, type=inproceedings]
\printbibliography[title={Books}, type=book]
\end{document}
我在“文章”下找到了两篇文章,在“书籍”下找到了一本书,而在“会议论文集”下却什么都没有打印(甚至包括章节标题)。