Here is the MWE i used to list me references:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[style=alphabetic, maxnames=6, natbib=true, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=author,
match=Knuth,
final]
\step[fieldset=keywords, fieldvalue=knuth]
}
\map{
\step[fieldsource=author,
match=Sigfridsson,
final]
\step[fieldset=keywords, fieldvalue=sigfridsson]
}
}
}
\begin{document}
\nocite{sigfridsson,knuth:ct:a,companion,worman,knuth:ct:c}
\printbibliography[keyword=knuth]
\printbibliography[keyword=sigfridsson]
\printbibliography[notkeyword=knuth,notkeyword=sigfridsson]
\end{document}
I am trying to create variables before the document starts so I can substitute any author needed in the document in my bib list. In a perfect world i would want it to look like this:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[style=alphabetic, maxnames=6, natbib=true, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=author,
match= x,
final]
\step[fieldset=keywords, fieldvalue= x]
}
}
}
\begin{document}
\nocite{*}
\printbibliography[keyword=x=anyauthorspecified]
\printbibliography[notkeyword=x=anyauthorspecified]
\end{document}
I want to do this so I can repeatedly use \declaresourcemap without having to make a map for each specific author when needed. I would just use a \printbibliography and specify which author i wanted
\DeclareSourcemapin your document. If you have several, they overwrite each other. So this won't really work. – moewe Oct 24 '17 at 17:04