4

I'm currently putting together a CV and I am looking for a way to automate the process. I have a central bibtex database that stores 500+ entries, and I want to automatically import and create a bibliography for only the entries that have my name in the author field. When using biber, I am aware of the option to use \printbibliography with optional inputs to filter based on the type of the entry:

\printbibliography[type=article]
\printbibliography[type=article]

Is there any similar procedure that allows you to search the author fields? Or a process that amounts to:

\printbibliography[author=John Doe]
Mico
  • 506,678

1 Answers1

0

Thanks for all the help. Based on the recomended answers, and some extra browsing, I've pieced together a MWE that does exactly what I need.

\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}

enter image description here

It works really well for different file types, and handled my 500+ reference library, so thanks again for the pointers!