hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Wrong alignment and spacing in bibliography when using .bib file with intentional alignment

Open xkevio opened this issue 1 year ago • 1 comments

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: image

Furthermore, when #cited, 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.

xkevio avatar May 23 '23 22:05 xkevio

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.

xkevio avatar May 24 '23 00:05 xkevio