I think you want to use the type=<entrytype>
option to \printbibliography
(§ 3.6.2 in the manual). E.g.:
\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}
Using the supplied bibliography items:
\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}
I get the two articles under 'Articles' and the one book under 'Books', while the nothing is printed under 'Conference Proceedings' (including even the section title).
I solved my issues of compatibility between the BibTex file exported from Zotero and BibLatex. I recap the solution here.
Apparently BibLatex is much more sensible than BibTex when it comes to reading a BibTex file...
To export correctly the bibliography from Zotero and then into a Tex document via BibLatex I used this BibTeX Export Translator (modified by Robin Wilson) with two important tweaks:
1) On line 11 of the translator script you need to set "exportNotes": true,
to "exportNotes": false,
(of course just in case you have added notes to your Zotero items, e.g. you extract annotations from PDFs). This will avoid BibLatex crashing on too long fields.
2) On line 2256 you need to tell the translator to avoid adding a comma after each bibliography item (the comma will result in BibLatex giving a warning on the first line of each entry excluding the first...) changing this line: Zotero.write((first ? "" : ",\n\n") + "@"+type+"{"+citekey);
with this line: Zotero.write((first ? "" : "\n\n") + "@"+type+"{"+citekey);
Another possible source of problems of the BibTeX Export Translator could be the character encoding. In my translator I kept as in source file "exportCharset": "ISO-8859-1",
on line 10. I tried to change it to UTF-8 but it created another class of issues, not with BibLatex (it run without errors) but with Latex,
[1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./bib/price2012.tex [2]
! Undefined control sequence.
<to be read again> \edef \blx@tempa {193\x
{FFFD}\x {FFFD}\x {FFFD}219}
l.8 \printbibliography[heading=subbibliography]
for each refsection. It also messed with the "pages" field of some items, outputting:
Andrea B. Hollingshead. “Information suppression and status persistence in group decision making the effects of communication media”. In: Human Communication Research 23.2 (1996), 193fffdfffdfffd219.
I then switched back to "exportCharset": "ISO-8859-1",
and both BibLatex and Latex run without warnings or errors. The PDF output was correct:
Andrea B. Hollingshead. “Information suppression and status persistence in group decision making the effects of communication media”. In: Human Communication Research 23.2 (1996), 193–219.
and I also get correct output with the umlaut of Habermas:
EDIT: The problem with the page field was probably due by a odd "-" character that you sometimes get to separate the 2 page numbers when you download the citation from the Internet.
Best Answer
biblatex
's sourcemap feature has the\perdatasource
restriction, so we can restrict certain mapping action to a particular.bib
file.Let's say we have to files
\jobname-one.bib
and\jobname-two.bib
; we want to be able to cite from all files, but only citations from the first file (\jobname-one.bib
) are to appear in the bibliography.We simply let Biber add the keyword
nobib
to all the entries in\jobname-two.bib
viaIf the entry already has a keyword,
nobib
will be appended to the list. This will lead to entries with nokeyword
s having the keywords{,nobib}
(that is, one emptykeyword
), this is not very elegant, but I have yet to see any problems arise from that fact.Making sure only the first bibliography is printed is as easy as
The complete code
One could of course add a keyword
inbib
for those entries to appear in the bibliographyand print only those