Today I inspect modern-nju-thesis 0.4.0 – Typst Universe, and learn that bibliography becomes a grid.
As a result, show grid.cell.where(x: 1, y: cite-number - 1): … would rewrite the entry.
// Tested against typst v0.13.1
#show bibliography: it => {
set grid(stroke: gray)
show grid.cell.where(x: 1, y: 0): set text(red, weight: "bold")
show grid.cell.where(x: 1, y: 0): "Whatever! just write what you want."
it
}
#bibliography("ref.bib")
Usually, the style of the bibliography is checked only after the main text is completed, by which time the citation numbers have already been determined. So no need to hack further.
Besides, citegeist – Typst Universe is capable of parsing *.bib into dict. The package uses the wasm compiled from GitHub - typst/biblatex: A Rust crate for parsing and writing BibTeX and BibLaTeX files. (I haven’t used it before, however.)
