User Tools

Site Tools


Action disabled: source
blog:use_biblatex_for_printing_separate_bibliographies

Use biblatex for printing separate bibliographies

Certain institutions may ask you to separate your bibliography into papers and 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.txt · Last modified: 2017-08-24 21:11 by brb