typst / hayagriva

Rusty bibliography management.
Apache License 2.0
347 stars 54 forks source link

Wrong CSL styling / formatting #107

Open ludwig-austermann opened 11 months ago

ludwig-austermann commented 11 months ago

Description

I noticed, that many features in CSL do not seem to work. For instance, when loading american society for microbiology CSL, then

(I checked the identical csl file in typst as well as in zotero style preview)

Reproduction URL

No response

Operating system

Web app

Typst version

Drodt commented 11 months ago

Could you provide example .bib/.yml files where this occurs and, ideally, some images of the expected and actual output? That would make fixing it a lot easier.

Also, this issue may be moved to typst/hayagriva.

DerDrodt commented 11 months ago

I fixed the layout affixes. If you have time, provide images and I can have a look.

ludwig-austermann commented 11 months ago

Ok sure, using the mentioned csl, I obtain with

@article{lastname_test_2023,
    title = {Test Title},
    volume = {1},
    pages = {123},
    journaltitle = {{TJor}},
    author = {{LastName}, First Second Third},
    date = {2023-12-19},
}

using zotero grafik whereas typst yields grafik

I think the last point was my mistake, though. I did not know that bib(la)tex does not support short forms.

ironupiwada commented 4 months ago

As far as I am concerned,<layout suffix="."> is not globally accepted by Typst in Chicago-like CSLs. Placing the <group suffix="."> within <layout> worked for me (see the second screenshot).

image

image