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

"et al." not applied after the first use of citation #512

Closed
miles-1 opened this issue Jun 27, 2024 · 4 comments
Closed

"et al." not applied after the first use of citation #512

miles-1 opened this issue Jun 27, 2024 · 4 comments

Comments

@miles-1
Copy link

miles-1 commented Jun 27, 2024

  • Component:
    • VSCode Extension
  • Extension version: 0.13.0
  • OS version and name: macOS 14.5
  • I am on the latest stable version of the extension/LSP.
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

If using a style like "apa" in bibliography, the first instance of a citation correctly truncates the number of authors with "et al.", but any additional instances of that citation include all author names.

Thanks very much for your work to maintain this repo! It is much appreciated.

@yochem
Copy link

yochem commented Jul 8, 2024

This should probably be transferred to typst/typst, typst/hayagriva or citation-style/styles. Could you provide a MWE?

@miles-1
Copy link
Author

miles-1 commented Jul 8, 2024

No, this is not an issue for typst (or tinymist, which I have since switched to because of this issue), just for the typst-lsp vscode extension.

MWE is just as I said, use a citation twice with "apa" for bibliography. For a file citations.yml containing the following:

Roche_2012a:
    type: Article
    title: "Linking community and disease ecology: the impact of biodiversity on pathogen transmission"
    author: ['Roche, Benjamin', 'Dobson, Andrew P.', 'Guégan, Jean-François', 'Rohani, Pejman']
    date: 2012-10
    page-range: 2807-2813
    parent:
        title:
            value: "{Phil. Trans. R. Soc. B}"
        volume: 367

... an a typst file containing the following:

@Roche_2012a

@Roche_2012a

#bibliography(
  "citations.yml",
  style: "apa"
)

... typst online and tinymist both render the two citations as (Roche et al., 2012), but typst-lsp adds all authors but just to the second (and any subsequent) citation.

@Enivex
Copy link

Enivex commented Jul 24, 2024

No, this is not an issue for typst (or tinymist, which I have since switched to because of this issue), just for the typst-lsp vscode extension.

This is a typst issue. It's just that typst-LSP is still on 0.11.0, where that bug hadn't been fixed yet.

@miles-1
Copy link
Author

miles-1 commented Jul 24, 2024

I see, I appreciate the info. Will close this issue.

@miles-1 miles-1 closed this as completed Jul 24, 2024
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