def inline_bbl(root_tex, bbl_tex):
    """Inline a compiled bibliography (.bbl) in place of a bibliography
    environment.

    Parameters
    ----------
    root_tex : unicode
        Text to process.
    bbl_tex : unicode
        Text of bibliography file.

    Returns
    -------
    txt : unicode
        Text with bibliography included.
    """
    bbl_tex = bbl_tex.replace(u'\\', u'\\\\')
    result = bib_pattern.sub(bbl_tex, root_tex)
    return result