How to insert bibliography entries as code to avoid importing .bib file

The bibliography function also accepts raw bytes as the source.

For example:

Cite them as usual: @key

#let bib = ```bib
@misc{key,
  title = {Title},
}
```.text
#bibliography(bytes(bib), style: "…")
1 Like