7

I'm using texclipse with MiKTeX 2.8.

For my thesis I need to split my list of references into two parts: literature and online sources. I've so far:

\usepackage{url}
\usepackage{harvard}
\citationmode{abbr} 
\bibliographystyle{agsm}    
\renewcommand{\harvardurl}{URL: \url} 
...
\bibliography{../bibtex/Literatur}
\renewcommand\bibname{Online Quellenverzeichniss}
\bibliography{../bibtex/Online}

I assume my bib file entries are correct, no errors warnings, except it will not find the citation keys for the entries in Online.bib for the citations in my article.

Though I will get the two chapters with different tiles, there are the same entries (of the first bib "Literatur") on both.

Is there a way to get this to work properly or do I have to go another way?

1
  • You may find more (and better) answers on tex.stackexchange.com. The moderators can move your question there, use the "flag" link for this (and leave a comment). Feb 26, 2011 at 11:17

3 Answers 3

5

I have no experience with the harvard package and its agsm style, so I can only make some general remarks.

In "traditional" LaTeX, producing bibliographies subdived by reference type or topic is often done using the multibib package. BibTeX (the program that is responsible for assembling the bibliographic data) must be run multiple times (each time on a different .aux file created by LaTeX) in order to produce multiple .bbl files (which serve as basis for the typeset bibliographies). This may not be possible automatically with texclipse and therefore cause the problem you observe.

If you are not obliged to use the harvard/agsm combo, I recommend to switch to the biblatex package. Its author-year-styles are similar to the agsm style (and can be tweaked to your liking), and producing subdivided bibliographies is very easy.

6
  • Thanks a lot. It works great in combination with keywords. Now I have just to adjust the style a little bit. Feb 26, 2011 at 15:30
  • @Markus: For some details about adjusting biblatex styles see this question.
    – lockstep
    Feb 26, 2011 at 15:37
  • I messed up. :-( I can't even remember what I did wrong to get the warnings "Data encoding is 'utf8'" and "Empty bibliography on line ...". And, of course no bibliography entry or title in the output. Feb 27, 2011 at 10:26
  • @Markus: There are a lot of compilable minimal examples for biblatex available at our site (example). Try one and see if it works.
    – lockstep
    Feb 27, 2011 at 12:16
  • @lockstep no, but there is a different warning "LaTeX Warning: Citation 'long' on page 1 undefined on input line 21." And no list, of course. Feb 27, 2011 at 13:51
5

You could also consider using biblatex . With biblatex you could simply use:

\printbibliography[heading=subbibliography,title={Literatuur},nottype=online]

\printbibliography[heading=subbibliography,title={Online},type=online]

In case you are interested http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex.html

2
  • 1
    In your code example, please consider changing type=book to nottype=online. This way, everything but online resources would be covered by the first bibliography.
    – lockstep
    Feb 26, 2011 at 13:34
  • You are right, thx for the comment.
    – Elmer
    Feb 26, 2011 at 13:38
2

This FAQ answer discusses a few possible approaches, using 4 different packages: bibtopic, multibbl, multibib and splitbib.

multibbl and multibib require you to use a different type of citation command for your literature vs online sources, which doesn't seem to be how you have things set up. splitbib requires you to explicitly list which bibliography you want each reference in.

bibtopic divides the bibliographies based on the .bib files, as you requested, so that is probably the correct choice for you. However, bibtopic is incompatible with harvard, so you will need to switch to natbib (which can do everything harvard can, and more).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .