My promoteur has a very unusual requirement: the bibliography needs to be sorted first by specific type of referred item, next by author and by year of publication.
I managed to get this custom sorting done by using makebst
and manually editing the .bst
, but now there is even greater problem for me: the bibliography itself must be sectioned, so it should look something like this:
Sources
Aahn, A. 2008, whatever dude
Aahn, A. 2009, whatever dude, really
Dictionaries
Encyclopeadia of everythinga, 1999
Wikipaedia, 2000-today
Articles
Aahn, B. and Boss, C., 1889 This issue is not to our concern, good man
Other Materia
Bactera, E.C., 1987, How we totally not-wiped the whole earth.
Can this be done automagically with bibtex
? Or do I have to edit the generated file manually?
Best Answer
There are several ways to have separate bibliographies by type of items cited. I'll describe here some of them, namely:
With
bibtex
splitbib
;bibtopic
; andmultibib
With
biblatex
BibTeX
There are several, more or less complicated solutions to separate bibliographies by type with
bibtex
, but that's not "automagicly" at all...Using
splitbib
You can do that with the
splitbib
package, you have to define a bibliographic category and manually add the corresponding itens to it, something like this:Here's a MWE:
Check splitbib documentation for more details.
Using
bibtopic
As with
splitbib
,bibtopic
aims at other possible usages besides separate bibliographies by type.Since it requires separate databases for each bibliography section, it is more indicated when you already them as such (i.e., separate
.bib
files for each kind of item).The usage is basically, e.g.:
Here's a MWE:
Notice that
bibtopic
requires abibtex
pass for each section, so you should compile it withCheck
bibtopic
documentation for more details.Using
multibib
As with
splitbib
, andbibtopic
,multibib
aims at other possible usages besides separate bibliographies by type.It does not require separate databases, but it creates a special citation command for each type of item you define in the preamble.
The basic usage is to create a new citation type in the preamble with:
And then cite the entries that should be considered in the new type with a
\cite<newcites-arg>
command, e.g.\citemytype
.Here's a MWE:
Notice that (as with
bibtopic
) it requires specialbibtex
passes:Check
multibib
documentation for more details.Using
biblatex
You can do this quite "automagicly" with the
biblatex
package! The usage is as simple as:or by adding a
keywords
field to your bib entry, and splitting it the bibliography withor by creating categories like with the
splitbib
package, with something likeHere's a MWE using the first mentioned option:
Check biblatex documentation for more information.
To move to biblatex, I suggest you read the following questions:
bibtex vs. biber and biblatex vs. natbib
What to do to switch to biblatex
biblatex in a nutshell
What is the difference between bibtex and biblatex?