typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

Medium Online Video not working though defined in CSL #183

Open AnsgarLichter opened 1 week ago

AnsgarLichter commented 1 week ago

Discussed in https://github.com/typst/typst/discussions/4418

Originally posted by **AnsgarLichter** June 19, 2024 I am using the IEEE style and have included its CSL directly: ```typst set cite(../bibliography/ieee.csl) ``` Now I am including my .bib file as expected - including the recording of a conference talk as source: ``` @misc{ConferenceTalk, author = {{Conference}}, title = {Talk}, url = {https://google.com}, urldate = {04.06.2024}, medium = {Online Video}, } ``` According to my CSL (see full version at [ieee.csl](https://github.com/citation-style-language/styles/blob/master/ieee.csl)) this should be rendered as `[Online Video]` in the literature section: ```xml ``` The result is: `Conference, “Talk.” [Online]. Available: https://google.com/` My expected result is: `Conference, “Talk.” [Online Video]. Available: https://google.com/` If I understand the macro correctly, the variable medium should do the work, but it doesn't. An alternative is to set the type to `motion_picture`. I tried to use `@video` and `@movie` but this didn't work either. Does anyone have an idea how I can achieve this? Is there a possibility to add the relevant minutes of the conference's recording as a note? I didn't find a suitable variable in the CSL.