hayagriva
hayagriva copied to clipboard
Wrong alignment and spacing in bibliography when using .bib file with intentional alignment
This .bib
file:
@article{test,
author = {Max Mox and
Mix Min and
Third Person and
Fourth Person},
title = {{Long title with intentional new line and
alignment}},
}
has been intentionally aligned and newlines have been added after each author. Hayagriva does not seem to like that and keeps some of the whitespace around while seemingly removing vital information when used within Typst.
When used like this: #bibliography("report.bib", style: "apa", title: "References")
, it produces the following output:
Furthermore, when #cite
d, it only uses Fourth Person
as an author.
Plus, while hayagriva will convert this to its own format, the resulting .yml
is misformed precisely because of the newlines in the author
and title
field and fails to use the correct syntax for multiple authors.
Turns out, the multiline author thing has already been reported here https://github.com/typst/biblatex/issues/28 and is being worked on (https://github.com/typst/biblatex/pull/34). Multiline titles still remain an issue.