I have played a little with LaTeX lately and I really like it, it makes the document look top professional and makes structuring a report easy.

I am currently using it for a big assignment with lots of references, but I can't get natbib to work as I want.

What it does now is to sort by appearance which works, but I would like to have it categorized as well. I really hope this is possible, as it is a requirement.

As requested, I will try to provide a MWE


\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc} % fonte (output)
\usepackage{lmodern} % vektor fonte  

% include abstract
% include other pages  


% include appendix

and a page could be

\section{Don't be evil}  

This is the first paragraph from a website.\footnote{\cite{pnp}}

This is a second paragraph with text from a book.\footnote{\cite[Part 3, chap. 2]{itp-2}}

In the footnote it looks like

2[2, Part 3, chap. 2]

pnp is a website and itp-2 is a book, defined as @misc and @book in my .bib file.

  Author = {Steven Levy},  
  Edition = {1},  
  Publisher = {Simon \& Schuster},  
  Title = {In The Plex},  
  Year = {2011}  

  author = {Laszlo Bock},  
  title = {{Passion, Not Perks}},  
  howpublished = "\url{http://www.thinkwithgoogle.com/quarterly/people/laszlo-bock-people-ops.html}",  
  year = {2011},  
  note = "Bes{\o}gt den 19/12/2012"  

Is it possible to sort the book first, even though the website appears first?

This is an example of how I want it to order my references.

[4] Steven Levy. In The Plex. Simon & Schuster, 1 edition, 2011.

Web Articles
[1] Mette Morsing. Corporate Branding Basics. http: //www.kommunikationsforum.dk/artikler/ corporate-branding-basics/, 2011. Besøgt den 17/12/2012.

[3] Vlad Savov. The benefits of working at Google continue af- ter death. http://www.theverge.com/2012/8/10/3232810/ google-employees-life-insurance, 2012.

[2] Ebbe Berg. Branding. http://www.berg-marketing.dk/ branding.htm, 2012.

The numbers is the order of appearance in the text, but it is sorted after books first, then web articles and at last websites. To define what is a web article and what is a website, I believe it is possible to choose an appropriate style?

I am not very good at StackExchange layout, so I hope someone can change it to look more like a real LaTeX example. Anyway, I hope this is possible and if you know how to, it would be a great help!

  • Welcome to TeX.SE! – Vivi Dec 20 '12 at 1:04
  • 1
    Are you using biblatex or bibtex? You used both tags... – Vivi Dec 20 '12 at 1:05
  • 6
    I would suggest to add a minimal working example (MWE) to show us what you have done until now. It also shows us which document class you use, biblatex or not, how you call your bibliography etc. This all helps us to help you ... – Mensch Dec 20 '12 at 1:34
  • I am not really sure whether I use BibLaTeX or just BibTeX. I am new to LaTeX so I started out with a template and did some very minor tweaks to it. – Filuren Dec 20 '12 at 11:44
  • 2
    I suggest you take a look at the discussion, in tex.ac.uk/cgi-bin/texfaq2html?label=multbib, of the multibbl, multibib, and splitbib packages. Separately, since you're using natbib, you may want to use unsrtnat rather than unsrt as your bibliography style. – Mico Dec 20 '12 at 13:13

Splitting the bibliography also possible with the standard classes. The main packages to allow such a feature are:

  • multibib
  • multibbl
  • splitbib

The UK List of TeX Frequently Asked Questions has an extra article about this topic Multiple bibliographies?

However the customizing of the methods above are limited. To become more flexible I recommend the package biblatex. You will find a lot of examples about splitting bibliographies with biblatex. Here are some:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.