hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Wrong CSL styling / formatting

Open ludwig-austermann opened this issue 1 year ago • 4 comments

Description

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

  • <layout suffix="."> seems not to be respected - the final dot is missing in the bibliography,
  • first names are not correctly joined, and
  • journal names are not abbreviated (correctly).

(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

  • [X] I am using the latest version of Typst

ludwig-austermann avatar Dec 14 '23 15:12 ludwig-austermann

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.

Drodt avatar Dec 14 '23 17:12 Drodt

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

DerDrodt avatar Dec 15 '23 15:12 DerDrodt

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.

ludwig-austermann avatar Dec 19 '23 01:12 ludwig-austermann

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

ironupiwada avatar Jul 28 '24 14:07 ironupiwada