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

Customized "et-al-min" attribute in citation style csl-file leads to "layout did not converge within 5 attempts" warning #4185

Open
1 task done
k4zuy opened this issue May 18, 2024 · 1 comment
Labels
bibliography Anything about citations and bibliographies. bug Something isn't working

Comments

@k4zuy
Copy link

k4zuy commented May 18, 2024

Description

When customizing the "et-al-min" attribute in the ieee.csl file the document does compile with the "layout did not converge within 5 attempts" warning will raise. I use this customization to have the amount of authors, when cite inline with form "prose" or "author", cut after three names and replaced with "et. al" instead after seven names which is the defined standard number in ieee.

I tested different numbers and every number lower than six won't work but everything above is fine. I also found out that if the warning will raise or not depends on the "et-al-use-first" attribute (list of authors will be truncated after this amount of authors). When using the following combination: et-al-min="3" et-al-use-first="2" no warnig will raise but when using et-al-min="3" et-al-use-first="1" the issue is back.

Customized part in my_ieee.csl

<name and="text" et-al-min="3" et-al-use-first="1" initialize-with=". "/>

Code in typst

#set cite(style: "../literature/my_ieee.csl"))

or

#bibliography("../literature/literature.bib", title: none, style: "../literature/my_ieee.csl")

See also CSL Specification

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst
@k4zuy k4zuy added the bug Something isn't working label May 18, 2024
@k4zuy
Copy link
Author

k4zuy commented May 18, 2024

I just figured out that it works with et-al-min="3" et-al-use-first="1"
when writing explicitly the locale part in the customized csl-file for et-al and using "et al" instead of "u. a." in german.

<locale xml:lang="de">
    <terms>
      <term name="et-al">et al.</term>
    </terms>
  </locale>

It also works when using "u a." but not when explicitly writing "u. a." So maybe the period after "u" is the problem.

@Enivex Enivex added the bibliography Anything about citations and bibliographies. label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bibliography Anything about citations and bibliographies. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants