This is not possible because bibliography uses grid, and you can’t override bibliography.entry: Add `bibliography.entry` element by xkevio · Pull Request #5932 · typst/typst · GitHub.
Same goes to alexandria – Typst Universe, but you can actually modify it:
#let render-bibliography(...) = {
...
for e in bib.references {
h(0.25em, weak: true)
[#metadata(none)#label(bib.prefix + e.key)]
if e.prefix != none {
hayagriva.render(e.prefix)
}
h(0.65em)
hayagriva.render(e.reference)
}
...
}
replacing
#let render-bibliography(...) = {
...
grid(
columns: 2,
// rows: (),
column-gutter: 0.65em,
// row-gutter: 13.2pt,
row-gutter: par.spacing,
// fill: none,
// align: auto,
// stroke: (:),
// inset: (:),
..for e in bib.references {
(
{
[#metadata(none)#label(bib.prefix + e.key)]
if e.prefix != none {
hayagriva.render(e.prefix)
}
},
hayagriva.render(e.reference),
)
},
)
...
}
#import "@preview/alexandria:0.2.0": *
#show: alexandria(prefix: "", read: path => read(path))
#bibliographyx("works.bib", full: true, title: "")
Cc @ensko
