![特定の著者の引用リストを自動生成する](https://rvso.com/image/328474/%E7%89%B9%E5%AE%9A%E3%81%AE%E8%91%97%E8%80%85%E3%81%AE%E5%BC%95%E7%94%A8%E3%83%AA%E3%82%B9%E3%83%88%E3%82%92%E8%87%AA%E5%8B%95%E7%94%9F%E6%88%90%E3%81%99%E3%82%8B.png)
現在、履歴書を作成中で、そのプロセスを自動化する方法を探しています。500 件以上のエントリを保存している中央 bibtex データベースがあり、フィールドに自分の名前があるエントリのみを自動的にインポートして参考文献を作成したいと考えています。biber を使用する場合、エントリの種類に基づいてフィルター処理するためのオプション入力をauthor
使用するオプションがあることは知っています。\printbibliography
\printbibliography[type=article]
\printbibliography[type=article]
フィールドを検索できる同様の手順はありますかauthor
? または、次のようなプロセスはありますか?
\printbibliography[author=John Doe]
答え1
ご協力ありがとうございました。推奨された回答と追加の閲覧に基づいて、必要な機能を正確に実行する MWE を組み立てました。
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,style=numeric,refsection=section,sorting=ydnt,
defernumbers=true,maxnames=99,doi=false,isbn=false,url=false{biblatex}
\addbibresource{biblatex-examples.bib}
%----------------Sourcemap to create keyword based on author-------------------%
%Search and replace "Knuth" and "NOTKnuth" with the desired author name
\DeclareSourcemap{
\maps[datatype=bibtex,overwrite=true]{
\map{
\step[fieldsource=author,
match=Knuth,
final]
\step[fieldset=keywords, fieldvalue=Knuth]
}
\map{
\step[fieldsource=author,
notmatch=Knuth,
final]
\step[fieldset=keywords, fieldvalue=NOTKnuth]
}
}
}
%------------------Create bib sections for numbering --------------------------%
\defbibnote{books}{}
\defbibnote{other}{}
\defbibnote{DifAuthors}{}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{% label format from numeric.bbx
\printfield{prefixnumber}%
\printfield{labelnumber}}}
\sloppy\clubpenalty4000\widowpenalty4000}
{\endlist}
{\item}
%---------------------------Begin Document-------------------------------------%
\begin{document}
\nocite{*}
\printbibliography[title={Knuth Books},prenote=books,type=book,keyword=Knuth,resetnumbers=true]
\printbibliography[title=Other,prenote=other,nottype=book,nottype=article,nottype=patent,keyword=Knuth,resetnumbers=true]
%Other authors: Just to make sure it is properly sorting the files
\printbibliography[title={DifferentAuthors},prenote=DifAuthors,type=article,keyword=NOTKnuth,resetnumbers=true]
\end{document}
さまざまなファイル タイプで非常にうまく機能し、500 を超える参照ライブラリを処理できたので、アドバイスをありがとうございました。