Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support CSL-M #5

Open
heprion opened this issue Jan 3, 2024 · 2 comments
Open

Please support CSL-M #5

heprion opened this issue Jan 3, 2024 · 2 comments

Comments

@heprion
Copy link

heprion commented Jan 3, 2024

Recently I've been using Typst to write my graduation thesis, but I encountered a problem with the style of bibliography.

I am using the "gb-7714-2015-numeric". And I got this, "等“ for english reference instead of "et al".

#set text(lang: "zh")
#bibliography("ex01.bib", style:"gb-7714-2015-numeric")

image

if #set text(lang: "en"), I would get the opposite. "et al" for chinese reference.

image

So, I tried to use custom csl from Chinese-STD-GB-T-7714-related-csl.

image

I got this error:

"failed to load CSL style (duplicate field `layout`)".

I did some search, it seems that those csl files used CSL-M extension powered by citeproc-js.

image

Is there any possibility that citationberg gonna support that. Or If there is any other way can help me to the result that "等“ for chinese references and "et al" for english references.

Thanks for any help you can offer.

@OrangeX4
Copy link

OrangeX4 commented Apr 3, 2024

I have a proof of concept for solving this problem temporarily: https://typst.app/project/rN08qR13YfLociKdV7b1Mx

However, it's currently just a basic simple mapping substitution. It still needs to supplement this mapping table, and I hope it can handle some more special cases. nju-lug/modern-nju-thesis#3

@2catycm
Copy link

2catycm commented Apr 27, 2024

Good issue,I am also encountering this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants