Alexandria -- multiple bibliographies in the same document!

It’s been a week, and I have basically added these future plans, plus some more (though the limitations I listed remain). Version 0.1.1 is out, and it

  • adds functions load-bibliography that stores bib data for later retrieval, get-bibliography that retrieves the data, and render-bibliography that renders the bib data. Together they do the job of bibliographyx, but now you can also use them separately

  • also loads structured data from the bibliography, e.g. you can call

    get-bibliography("x-").references
      .filter(x => x.details.type == "book")
      .map(x => x.details.title)
    

    to get the titles of all books in your bibliography (only the ones appearing in your document, i.e. the ones that were cited unless your bibliography uses full: true).

    The main use case for this is loading a bibliography once, then rendering parts of it separately – see the example below.

  • adds support for custom CSL styles loaded from files. just specify bibliographyx(style: "my-custom-style.csl") and it will be used instead of one of the built-in styles.

  • fix a deprecation warning that would appear in 0.13

The new APIs are well-documented in the manual, here’s the page demonstrating a “split” bibliography:

image

3 Likes