# multiple citation categories in latex

Edit: I have abandoned trying to fix it myself. My university didn't needed to have it explicitly split up, so I go with it how it is now...
Still thanks everyone, who tried to fix it.

I'm using TeXstudio and I'm writing a small document. I did some references I cite with the package 'cite', but it is outdated and should no longer be used . I now try to use biblatex, but struggle to find the right command for the following example. Does anyone know, how I can implement multiple reference titles?
(example)
List of literature
-Books
-Articles
-URLs
Has anyone came across a package or command that does the trick? Update: This is how the main document looks like (left out unimportant parts).

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{ngerman}

\usepackage{biblatex}%[backend=bibtex]

\begin{document}
\setcounter{tocdepth}{2}
\include{kapitel/Deckblatt}
\clearpage
\thispagestyle{empty}
\tableofcontents
\thispagestyle{empty}
\include{kapitel/start}
%THEORIE
\include{kapitel/Theorie/Theorie}
%PRAXIS
\include{kapitel/Praxis/Praxis}
%ANHANG
\part{Literaturverzeichnis}
\printbibliography[keyword=book,title={books}]
\printbibliography[keyword=url,title={urls}]
\printbibliography[keyword=article,title={articles}]
\listoffigures
\listoftables
\end{document}


bib-file:
Every item looks like this(articles have the @article, etc.):

@BOOK {mooreh.l.1967,
author    = "Moore, H. L.",
title     = "Laws of wages: an essay in statistical economies",
publisher = "New York: A.M. Kelley",
year      = "1967",
note      = "Original 1911 veröffentlicht",
keywords={book}}

• Package cite is kind of out of date. The modern package biblatex can do easily what you want. But you need to chnge a few things in your document. – Johannes_B Oct 23 '16 at 19:13
• Well then I will edit my question, because I wasn't aware that cite seems to be some kind of relic of the past. Do you have a good reference for biblatex where I could do these kind of multiple references? – Garamaru Oct 23 '16 at 19:43
• The biblatex manual itself explains how to do this. The basic thing is that you call \printbibliography[<options>] several times, and filter your citations so that each call to to \printbibliography only prints a certain class of entries (e.g., using the options type and nottype, or keyword and notkeyword, category and notcategory, or a filter). – jon Oct 23 '16 at 19:54
• having answered this, it looks a lot like: tex.stackexchange.com/questions/307517/… – cmhughes Oct 23 '16 at 20:21
• By the way, package ngerman is also on the list of obsolete package for quite some time. A decade? Two? – Johannes_B Oct 24 '16 at 9:58

Here's a complete MWE using biblatex, note the use of keyword.

You'll either need to run it with arara, or else run the following:

pdflatex myfile
bibtex myfile
pdflatex myfile
pdflatex myfile


Here are the files:

## myfile.tex

% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
\documentclass{article}
\usepackage[backend=bibtex]{biblatex}

\begin{document}

\nocite{*}
\printbibliography[keyword=book,title={books}]
\printbibliography[keyword=url,title={urls}]
\printbibliography[keyword=article,title={articles}]
\end{document}


## mybib.bib

@online{myfirstref,
title="my first title goes here",
url="first url goes here",
keywords={book}}
@online{mysecondref,
title="my second title goes here",
url="second url goes here",
keywords={article}}
@online{mythirdref,
title="my third title goes here",
url="third url goes here",
keywords={url}}

• While this is a perfectly fine answer, it seems odd to me to sort @online entries into 'books', 'articles', and so on. And the need to add keywords makes the task seem more onerous. Given the OP -- which names, books, articles, and 'URLs' -- I'd rather suggest using the type/nottype filter. At the very least, it saves the chore of adding keywords to all entries (whether by hand or via \DeclareSourcemap). – jon Oct 23 '16 at 20:44
• @jon It's just an example, which will also help a broader audience I guess, but I'm rather confused how to run these commands. It doesn't seem to be accepted inside of the *.tex-file, but I guess I have to read more into it... – Garamaru Oct 23 '16 at 20:56
• Well I tried to include these commands, but it doesn't work. Even if I change the keywords from 'book' to BOOK, because in my generated file I use @BOOK and thought that was why TeXstudio couldn't find any sources, but didn't worked out either. – Garamaru Oct 23 '16 at 21:29
• @Garamaru -- The example works. Part about changing to BOOK is irrelevant because \printbibliography[keyword=article,...] means biblatex is looking for entries that have the line keywords={article} in the .bib file. My point about type is how to filter based on @<entrytype (e.g., @BOOK). If 'it' can't find any sources, you are doing something different from the example ... but it is impossible to guess what that might be: more information is needed. – jon Oct 23 '16 at 23:42
• @jon feel free to post an example, I'll happily delete this – cmhughes Oct 24 '16 at 6:59