Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\documentclass[12pt,a4paper,danish,oneside,openany]{memoir}  

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

\begin{document}
% include abstract
\tableofcontents*
% include other pages  

\bibliography{./biblio/ipr}
\bibliographystyle{unsrt}

% include appendix
\end{document}

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

1[1]
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.

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

@misc{pnp,  
  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.

Books
[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.

Websites
[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!

share|improve this question
    
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 ... –  Kurt 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

1 Answer 1

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:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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