-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Only first key in multiple key if-clause is parsed #258
Comments
The problem seems to me that the else-if has the This seems wrong to me, but the spec is unclear. I'll check how citeproc does it. |
As a quick work-around: Just add |
Hayagriva's behavior seems right. You should add the match=any part. Maybe raise an issue in the CSL styles repository so it can be fixed over there as well. |
Okay I think there is some confusion with the specs, but I agree with you and I will raise the issue. I used the visual editor https://editor.citationstyles.org/codeEditor/ and there, this works: <else-if type="figure interview manuscript pamphlet personal_communication post post-weblog speech webpage" match="all"> This works (since URL is present) <else-if type="figure interview manuscript pamphlet personal_communication post post-weblog speech webpage" match="all" variable="URL"> This does not work (since collection-title is not present) <else-if type="figure interview manuscript pamphlet personal_communication post post-weblog speech webpage" match="all" variable="URL collection-title"> I'm wondering if match always only matches one of the types (since at least for BibTeX you can only have one type anyways). But I couldn't find that in the specs. However in either case, the american-physics-society.csl is incosistent because it has match="any" on all other else-ifs. Thanks for your help, I'll post the issue here https://github.com/citation-style-language/styles |
Description
I am using the
american-physics-society
bibliography style and I noticed that webpages aren't formatted correctly. So I downloaded the csl file and it has the following else-if clause:However, in the bibtex file
@online
or@webpage
does not descend into this block and is instead caught in theelse
at the very end. If I modify the else-if to the following:then the entry is parsed correctly; the typst pdf now renders the url as well.
The text was updated successfully, but these errors were encountered: