In my bibliography, I have entries that span multiple lines, which is fine. However, these entries sometimes wrap at the end of the page. The last two lines are then on the next page, for example. This does not look very nice.
So how can I prevent a page break within a bibliography entry?
Hi there,
there is no show rule for bibliography entry. See other posts and issues on this matter such as How to print bibliography without line breaks between references - #2 by Andrew and Add `bibliography.entry` element by xkevio · Pull Request #5932 · typst/typst · GitHub.
However, since bibliography materializes as a grid, you can use:
#show bibliography: set grid.cell(breakable: false)
to prevent the entry to wrap at the end of the page. Other solutions could make use of the costs parameter of text.
2 Likes
Thank you very much! That’s exactly what I was looking for.