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

When #cite(form: "prose") a book with editors but no authors, it display only year #253

Open
1 task done
bact opened this issue Nov 26, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@bact
Copy link
Contributor

bact commented Nov 26, 2024

Description

If a bib info of a book contains only editor names but not author names (author names are available for book chapters in other bib entries), when form: "prose", Typst will not use editor names in place of author names and display only year.

This behaviour is different when form: "normal", where Typst will display both editor names and year.

For example, with this bib info:

@collection{bovens_real_2010,
	title = {The real world of {EU} accountability: what deficit?},
	editor = {Bovens, M. A. P. and Curtin, Deirdre and Hart, Paul 't},
	date = {2010},
}
  • #cite(<bovens_real_2010>, form: "prose") will display "(2010)".
  • #cite(<bovens_real_2010>, form: "normal") will display "(Bovens et al., 2010)".
  • #cite(<bovens_real_2010>, form: "author") will display "".
    • For this author-only one, one can argue that this should be an expected behaviour, but then again we don't have the form: "editor" option.

Expected behaviour

  • #cite(<bovens_real_2010>, form: "prose") displays "Bovens et al. (2010)".

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst
@bact bact added the bug Something isn't working label Nov 26, 2024
@laurmaedje laurmaedje transferred this issue from typst/typst Nov 26, 2024
@laurenceomfoisy
Copy link

I already opened #243 which refers to the exact same issue. Happy to know I'm not the only one affected.

@bact
Copy link
Contributor Author

bact commented Nov 28, 2024

Duplicate of #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants