When citing a reference with bold or italicised text in the title, how should this be encoded within the .bib
or .yml
references file? All of the variants I have tried (adding the bold/italics to the title using any of latex/html/typst syntax) are displayed as raw text when they appear in the bibliography.
Unfortunately, there’s no standardized syntax for it. You can use show-text or show-regex rules to achieve that.
#show bibliography: body => {
show "*Bold*": [*Bold*]
body
}
#bibliography(
bytes(
```bib
@article{key,
title = {AB *Bold*},
}
```.text,
),
full: true,
)
Thanks! Indeed, it’s not a long-term solution, but it works.
P.S. for anyone reading this in the future trying to get this to work, note that the show rule is applied to the title after capitalisation rules have been applied, so the show rule needs to follow the capitalisation of how the title appears in the generated bibliography which may not match that in the .bib
or .yml
file
1 Like
Eventually the feature request #1975 will hopefully get implemented.
1 Like