typst / hayagriva

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

Alphanumerical citation style ignores supplement #48

Open lynn opened 1 year ago

lynn commented 1 year ago

From https://github.com/typst/typst/issues/1330.

CitationStyle::citation for Alphanumeric doesn't inspect atomic.supplement inside the for atomic in parts loop.

Maybe it simply needs something like:

+           if let Some(supplement) = atomic.supplement {
+              res += ", ";
+              res += supplement;
+           }
            items.push(res);

…but maybe it's more complicated than that.

laurmaedje commented 6 months ago

The alphanumeric CSL style doesn't have a citation-locator, which regressed this.

IEncinas10 commented 2 months ago

Hello! I'm writing my thesis with typst and I would like to have this working.

I dont know how hard is to fix this issue because I'm unfamiliar with the codebase, but if is not too complicated I would appreciate a few pointers and give it a try.

Thanks!