-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Inconsistent styling with bibliography.full: true
#3986
Comments
Able to replicate this in the webapp (url: https://typst.app/project/rNnLsTjkhkCnV5I0HqrvQb) #set cite(style: "alphanumeric")
#bibliography(full: true, "bib.yaml")
// cite some key always to enforce the style
#cite(<harry>)
// comment this out to observe the difference
#for (key,value) in yaml("bib.yaml") {
cite(label(key))
} bib.yaml (example taken from https://github.com/typst/hayagriva/blob/main/docs/file-format.md) harry:
type: Book
title: Harry Potter and the Order of the Phoenix
author: Rowling, J. K.
volume: 5
page-total: 768
date: 2003-06-21
electronic:
type: Web
title: Ishkur's Guide to Electronic Music
serial-number: v2.5
author: Ishkur
url: http://www.techno.org/electronic-music-guide/ Before commenting out iteration over keys: After commenting out the iteration: Looks like un-intended/buggy behaviour to me. |
My bad, I wrote it from memory and forgot about that. |
It seems to come down to the fact that we cannot specify the reference back link style on the bibliography, if the CLS style is unsuitable for it. It is inferred from the cite element that's used, if there is no cite element it isn't inferred correctly. But I think the reference back link style could fall back to the Using more than style also causes interesting results depending on whether a cite group can be created or not: #set cite(style: "alphanumeric")
#bibliography("assets/bib.yaml", full: true)
@electronic
// <-- remove this blank line to create a cite group
#cite(<harry>, style: "chicago-author-date") |
Description
When using
bilbiography(full: true, ...)
to show all references, the styling seems to be inconsistent when a cite style likealphanumeric
is used. The markers fall back to thebiliography
style (ieee
in my case).full: true
without explicitcite
full: true
with explicitcite
I assume this is because
alphanumeric
is a style oncite
only, so the lack of cite elements means the styling isn't applied.At face value, I can see that this "works as intended", but I never understood (or asked) why
alphanumeric
is only a style oncite
in the first place. I suppose that's related to CSL.I did not attempt minimizing this, but this should suffice:
Tested using
typst 0.11.0 (1e645b39)
.Reproduction URL
No response
Operating system
Linux
Typst version
The text was updated successfully, but these errors were encountered: