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.

Is there a way to include additional entries outside of the .bib file in the a bibliography for biblatex? For instance, I have a few web references (http) which I don't want to add in my general .bib file, but only within a particular document (.tex file). Is this possible? I am imagining something which might use the filecontents package like this, but not sure how this can be done with biblatex.

share|improve this question
    
Please consider reducing the length of the tile of your question. –  Marc van Dongen Dec 28 '12 at 18:08
add comment

1 Answer

up vote 5 down vote accepted

Simply provide a second .bib file (this can be done with a filecontents environment specified in your .tex file) and use \addbibresource two times.

\documentclass{article}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{general.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
\end{filecontents}

\begin{filecontents}{specific.bib}
@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\addbibresource{general.bib}
\addbibresource{specific.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}
share|improve this answer
add comment

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.