User Tools

Site Tools


blog:use_biblatex_for_printing_separate_bibliographies

This is an old revision of the document!


Use biblatex for printing separate bibliographies

Certain institutions may ask you to separate your bibliography into papers an online references. Here's how to accomplish this using LaTeX and biblatex

testbib.tex
\documentclass{article}
\usepackage[backend=bibtex]{biblatex}
\bibliography{database.bib}
\begin{document}
According to \cite{foo1999} blah blah.
According to \cite{bar1999} blah blah.
 
\defbibfilter{papers}{
  type=article or
  type=inproceedings or
  type=book
}
 
\defbibfilter{online}{
  type=online
}
 
\printbibliography[filter=papers]
\printbibliography[filter=online]
 
\end{document}
database.bib
@article{foo1999,
  title={Buchtitel},
  author={Doe, John},
  keywords={book},
  journal={International Journal of Nonsense},
  year={1999}
}
 
@online{bar1999,
  author = {Ford, Rebecca},
  keywords={internet},
  title  = {Earthquake: Twitter Users Learned of Tremors
            Seconds Before Feeling Them},
  date   = {2011-08},
  url    = {http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481}
}

For tests save the two files and compile using

latex
biber
latex

or better:

latexmk

For more information read the official docs: http://tug.ctan.org/macros/latex/exptl/biblatex/doc/biblatex.pdf

Discussion

Enter your comment. Wiki syntax is allowed:
   ____  _____ __  __   ___    ___ 
  / __/ / ___/ \ \/ /  / _ \  / _ \
 / _/  / (_ /   \  /  / , _/ / ___/
/___/  \___/    /_/  /_/|_| /_/
 
blog/use_biblatex_for_printing_separate_bibliographies.1503601461.txt.gz · Last modified: 2017-08-24 21:04 by brb