A very nice feature of (classic) bibtex
is that once the bbl file has been produced, you can neatly insert it into the .tex
file (this comes handy, e.g., for publishing papers, were sending .bib
files is a bit clunky).
On the other hand, biblatex-biber
is superior to bibtex
in many respects which I don't need to mention here. I found it however not easy to replicate the bbl file embedding that is so easy with bibtex
.
To be sure, the bbl file is readable, but it has many macros that are not recognized, so it seems as if I'm missing some style file somewhere.
Here is a MWE: starting with the source file biblatex-biber-sample.tex
:
\documentclass{article}
%%\usepackage{lstinput}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-biber-sample.bib}
\title{Bib\LaTeX sample file}
\author{Oskar Limka}
\begin{document}
\maketitle
To cite a reference, like \cite{Lehman:11:manual:The-biblatex},
just do it normally as with Bib\TeX.
But you must use \texttt{${\backslash}$addbibresource} and
\texttt{${\backslash}$printbibliography}.
\printbibliography
\end{document}
The following is the bib file I used
%% Saved with string encoding Unicode (UTF-8)
@manual{WilliamsKelley:10:manual:gnuplot,
Address = {[email protected]},
Author = {Williams, Thomas and Kelley, Colin},
Booktitle = {gnuplot 4.4},
Date-Added = {2017-01-12 14:59:06 +0000},
Date-Modified = {2017-01-12 14:59:06 +0000},
Month = {March},
Title = {gnuplot 4.4 An Interactive Plotting Program},
Url = {http://sourceforge.net/projects/gnuplot},
Year = {2010}}
@manual{Lehman:11:manual:The-biblatex,
Address = {[email protected]},
Author = {Lehman, Philipp},
Booktitle = {The biblatex package: programmable bibliographies and citations},
Date-Added = {2017-01-12 14:59:06 +0000},
Date-Modified = {2017-01-12 14:59:06 +0000},
Day = {29},
Edition = {Version 1.6},
Keywords = {latex, bibtex, biblatex, bibliography, reference, typesetting},
Month = {July},
Title = {The biblatex package: programmable bibliographies and citations},
Year = {2011}}
the sequence is pdflatex, biber, pdflatex and then I inserted the bbl file to produce the following monolith
\documentclass{article}
%%\usepackage{lstinput}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-biber-sample.bib}
\title{Bib\LaTeX sample file}
\author{Oskar Limka}
َ\begin{document}
\maketitle
To cite a reference, like \cite{Lehman:11:manual:The-biblatex}, just do it normally as with Bib\TeX.
But you must use \texttt{${\backslash}$addbibresource} and \texttt{${\backslash}$printbibliography}.
%%\printbibliography
% $ biblatex auxiliary file $
% $ biblatex bbl format version 2.7 $
% Do not modify the above lines!
%
% This is an auxiliary file used by the 'biblatex' package.
% This file may safely be deleted. It will be recreated by
% biber as required.
%
\begingroup
\makeatletter
\@ifundefined{[email protected]}
{\@latex@error
{Missing 'biblatex' package}
{The bibliography requires the 'biblatex' package.}
\aftergroup\endinput}
{}
\endgroup
\refsection{0}
\sortlist[entry]{nty/global/}
\entry{Lehman:11:manual:The-biblatex}{manual}{}
\name{author}{1}{}{%
{{hash=97afecc8539f253db93a1c737d62212c}{%
family={Lehman},
family_i={L\bibinitperiod},
given={Philipp},
given_i={P\bibinitperiod}}}%
}
\list{location}{1}{%
{[email protected]}%
}
\strng{namehash}{97afecc8539f253db93a1c737d62212c}
\strng{fullhash}{97afecc8539f253db93a1c737d62212c}
\field{sortinit}{L}
\field{sortinithash}{872351f18d0f736066eda0bf18bfa4f7}
\field{labelnamesource}{author}
\field{labeltitlesource}{title}
\field{booktitle}{The biblatex package: programmable bibliographies and citations}
\field{edition}{Version 1.6}
\field{month}{07}
\field{title}{The biblatex package: programmable bibliographies and citations}
\field{year}{2011}
\keyw{latex,bibtex,biblatex,bibliography,reference,typesetting}
\endentry
\endsortlist
\endrefsection
\endinput
\end{document}
.bbl
in the right place (though also note that this is not 'supported' in the sense it's not a design aim ofbiblatex
).