Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple Bibliographies with nocite{*}

1,193 views
Skip to first unread message

greenux

unread,
Dec 2, 2011, 11:55:13 AM12/2/11
to
Hi,
I trying to get three bibliographies from one file using biblatex and
filtering by keywords, all entries from one file. One bibliography
should show only entries with are cited, as usual and the other two
bibliographies should display all entries as if using nocite{*}. As
nocite{*} affects all bibliographies I couldn't find a solution for
that. Does anybody know how to solve the problem? Thanks in advance!

greenux

Here's the code I have:

\usepackage[ansinew]{inputenc}
\usepackage[backend=biber,style=numeric-
comp,sorting=nyt,bibencoding=utf8,defernumbers=true]{biblatex}

\bibliography{mybiblio}

\begin{document}
\cite{entry1}

\printbibliography[notkeyword=kw1,notkeyword=kw2,heading=bibliography]
%Show only entry1

\begin{refsegment}
\nocite{*}
\printbibliography[keyword=kw1,heading=subbibliography, title={First}]
%Show all entries with keyword=kw1
\end{refsegment}

\begin{refsegment}
\nocite{*}
\printbibliography[keyword=kw2,heading=subbibliography,title={Second}]
%Show all entries with keyword=kw2
\end{refsegment}
\end{document}

jon

unread,
Dec 2, 2011, 1:21:25 PM12/2/11
to
the easiest solution would be to give entry1 a unique keyword (e.g.,
'unique'), and then \printbibliography[keyword=unique].
(easier said than done if you have many entries for the first
bibliography and they don't all [yet] have the keyword 'unique'.)

cheers,
jon.

greenux

unread,
Dec 2, 2011, 1:34:25 PM12/2/11
to
> the easiest solution would be to give entry1 a unique keyword (e.g.,
> 'unique'), and then \printbibliography[keyword=unique].
> (easier said than done if you have many entries for the first
> bibliography and they don't all [yet] have the keyword 'unique'.)

I have a lot of entries and don't know which one I really want to cite
or not. that makes it pretty hard that way. Thanks anyway!

I found this: http://tex.stackexchange.com/questions/36028/multiple-bibliographies-cited-references-list-of-publications
It is kind of a solution, but a quick-and-dirty one as it is the way
round, defining a refsegment for the cited entries and using it.

Does someone knows a clean/better solution?

jon

unread,
Dec 2, 2011, 2:28:22 PM12/2/11
to
On Dec 2, 1:34 pm, greenux <gree...@gmx.de> wrote:
> > the easiest solution would be to give entry1 a unique keyword (e.g.,
> > 'unique'), and then \printbibliography[keyword=unique].
> > (easier said than done if you have many entries for the first
> > bibliography and they don't all [yet] have the keyword 'unique'.)
>
> I have a lot of entries and don't know which one I really want to cite
> or not. that makes it pretty hard that way. Thanks anyway!

that is what 'bibtool' is for (seach ctan): it extracts all entries
cited from the .aux file and creates a new file; something like
bibtool -o newbibfile.bib -x masterfile.aux

hard to get easier than that.

> I found this:http://tex.stackexchange.com/questions/36028/multiple-bibliographies-...
> It is kind of a solution, but a quick-and-dirty one as it is the way
> round, defining a refsegment for the cited entries and using it.
>
> Does someone knows a clean/better solution?

look at the biblatex solution posted there; combined with my
suggestion, i think a solution will not be hard.

cheers,
jon.

greenux

unread,
Dec 4, 2011, 7:22:14 AM12/4/11
to
That is how I ended up:

\usepackage[ansinew]{inputenc}
\usepackage[backend=biber,style=numeric-
comp,sorting=nyt,bibencoding=utf8,defernumbers=true]{biblatex}

\bibliography{mybiblio}

\begin{document}
\cite{entry1}\cite{entry2}\cite{entry3}...

\printbibliography[segment=0,notkeyword=kw1,notkeyword=kw2,heading=bibliography]
%Use segment=0 here to separate from following entries
%Show only entry1, entry2, ...

\newrefsegment
\nocite{*}
\printbibliography[keyword=kw1,heading=subbibliography, title={First}]
%Show all entries with keyword=kw1
\printbibliography[keyword=kw2,heading=subbibliography,title={Second}]
%Show all entries with keyword=kw2
\end{document}
0 new messages