# Three different bibliographies biblatex

I have three different .bib files for three different bibliographies that should have three different styles.

MWE:

\documentclass{report}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[autostyle,italian=guillemets]{csquotes}

\begin{filecontents}{biblio.bib}
@book{raty:spectroscopy,
author = {Raty, Juka and Peiponen, Kai-Erik and Asakura, Toshimitsu},
title = {UV-Visible Reflection Spectroscopy of Liquids},
publisher = {Berlino, Heidelberg: Springer-Verlag},
series = {Springer Series in Optical Sciences},
date = {2004}
}
\end{filecontents}
\begin{filecontents}{quotes.bib}
@patent{bayer:array,
title = {Color imaging array},
author = {Bayer, Bryce Edward},
date = {1976-07-20},
note={Eastman Kodak Company},
number={US3971065 A},
options = {skipbib=true}
}
\end{filecontents}
\begin{filecontents}{images.bib}
@inreference{wiki:specscheme,
booktitle = {Wikimedia Commons},
title = {Single beam spectrophotometer},
url = {commons.wikimedia.org},
publisher = {Wikimedia Foundation},
date = {2008-01-16},
urldate = {2017-04-04}
}

@manual{thorlabs:filter,
author = {ThorLabs},
title = {FGB39 datasheet},
url = {www.thorlabs.com},
date = {2012},
urldate = {2017-04-14}
}
\end{filecontents}

\usepackage[backend=biber,dateabbrev=true,language=italian,style=numeric,sorting=none]{biblatex}
\DeclareBibliographyCategory{Bibliografia}
\DeclareBibliographyCategory{Citazioni}
\DeclareBibliographyCategory{Referenze}

\begin{document}

This is just an example\footfullcite{bayer:array}.

Image 1 \cite{wiki:specscheme} and 2 \cite{thorlabs:filter}.

\nocite{raty:spectroscopy}

\end{document}


First: how can I add automatically every entry in the three files in the corresponding cateory, without calling addbibresource for each entry?

Second more important: as you see I have three different types of quotations. The first one as footnote should not be included in the bibliography and it must not count for the next numerical bibliography. The second one are images references which should be sorted numerical. The last one are not cited directly in the text and they should use the authortitle style, and not counted for the previous type.

Actually they all use the same style and every entry is counted for the numerical style.

• Welcome to TeX.SX! You can make your MWE more accessible by including a few example .bib entries of your three files (MWEB). If the class toptesi is not essential to your question, you might want to switch to article or report for MWE purposes. – moewe May 6 '17 at 13:45
• Don't use \footref use \footfullcite. – moewe May 6 '17 at 13:49
• For your first question: Use keywords and not categories and biblatex: multiple bibliographies categorised by different .bib files – moewe May 6 '17 at 13:51
• For whom edit my post. I know, that is just my current code since I don't know how to do what I would like. And I had changed the code according to moewe suggestions – Frank May 7 '17 at 8:52

I've been able to solve the problem thanks to several similar but not same questions. Not perfectly clean, not so aestetically beautiful but as long as it can't be done in a clean way here it is:

\documentclass{report}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[autostyle,italian=guillemets]{csquotes}

\begin{filecontents}{biblio.bib}
@book{raty:spectroscopy,
author = {Raty, Juka and Peiponen, Kai-Erik and Asakura, Toshimitsu},
title = {UV-Visible Reflection Spectroscopy of Liquids},
publisher = {Berlino, Heidelberg: Springer-Verlag},
series = {Springer Series in Optical Sciences},
date = {2004}
}
\end{filecontents}
\begin{filecontents}{quotes.bib}
@patent{bayer:array,
title = {Color imaging array},
author = {Bayer, Bryce Edward},
date = {1976-07-20},
note={Eastman Kodak Company},
number={US3971065 A},
options = {skipbib=true}
}
\end{filecontents}
\begin{filecontents}{images.bib}
@inreference{wiki:specscheme,
booktitle = {Wikimedia Commons},
title = {Single beam spectrophotometer},
url = {commons.wikimedia.org},
publisher = {Wikimedia Foundation},
date = {2008-01-16},
urldate = {2017-04-04}
}

@manual{thorlabs:filter,
author = {ThorLabs},
title = {FGB39 datasheet},
url = {www.thorlabs.com},
date = {2012},
urldate = {2017-04-14}
}
\end{filecontents}

\usepackage[style=alphabetic,labelnumber,defernumbers=true, backend=biber]{biblatex}

\DeclareSourcemap
{
\maps[datatype=bibtex, overwrite]
{
\map
{
\perdatasource{biblio.bib}
\step[fieldset=KEYWORDS, fieldvalue=primary, append]
}
\map
{
\perdatasource{quotes.bib}
\step[fieldset=KEYWORDS, fieldvalue=secondary, append]
}
\map
{
\perdatasource{images.bib}
\step[fieldset=KEYWORDS, fieldvalue=tertiary, append]
}
}
}

\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printfield{labelprefix}%
\ifkeyword{tertiary}
{\printfield{labelnumber}}
{\printfield{labelalpha}%
\printfield{extraalpha}}}}

\defbibenvironment{bibliographyNUM}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}

\assignrefcontextkeyws[sorting=none]{tertiary}

\begin{document}

This is just an example\footfullcite{bayer:array}.

Image 1 \cite{wiki:specscheme} and 2 \cite{thorlabs:filter}.

\nocite{raty:spectroscopy}
\printbibliography[title=Biblio, keyword=primary]

\newrefcontext[sorting=none]
\printbibliography[env=bibliographyNUM,title=Images, keyword=tertiary, resetnumbers]

\end{document}


Compiling: pdflatex -> biber -> pdflatex -> pdflatex

If you note that images indexes are all zero, probably you just have to rerun pdflatex