You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am really excited to get to use typst, it looks great so far!
However, for larger documents it would be really helpful to have multiple bibliographies, e.g. to categorize publications into books, journals, etc. or to separate own prior publications from other peoples' works. This would be something like the bibunit or chapterbib packages in LaTeX. Unfortunately I cannot assign labels, but the [proposed Label] would be feature request
Reacted by Jack Noutch, ⑆ Neved4 ⑈, Sébastien d'Herbais de Thun, Kevin Bonham, camattelaer, DrGo, Jakob, Andrew Voynov, Akshay Raj Gollahalli, isaacew and 80 more
Reacted by AYOUB EL MHAMDI, Kevin Bonham, Gabgobie, Raimund, Bastien Voirin, Stephan Krusche and Basanta Khakurel
Reacted by camattelaer, Akshay Raj Gollahalli, explosion-mental, Junhua Gu, Radimir Sorokin, Y. Xu, Bastien Voirin, Orjan Ameye, Paul Adam, Iagoba Apellaniz and 16 more
I too have discovered that there can be only one #bibliography, but its path argument can be an array, so you can include multiple bibliographies. However, there can't be any duplicate keys (if there are duplicate keys, I think it would probably make sense for later definitions to override earlier ones; then you could list the "most definitive" bibliographies last).
Reacted by AYOUB EL MHAMDI, Kevin Bonham, Justin Kunimune, Dmitry Avtonomov and SuperCowProducts
Reacted by AYOUB EL MHAMDI, Kevin Bonham, Valentin Trophime, Raimund, Timon Engelke, Guillaume Derval, Argentina Ortega, Orjan Ameye, Martin Hagmüller, Gabgobie and 8 more
Reacted by Kevin Bonham, Robert Thalheim, Raimund, Martin Hagmüller, Gabgobie, Ajinkya Kokandakar and Arne Küderle
One more vote for this! I got 80% of the way through rebuilding my CV in typst, which is a dream compared to LaTeX, but this might kill the effort :-/. I'm looking into manually building building bibliographies from the yaml, but I am not quite confident enough in the syntax to have high hopes there.
An interim solution (though I'm not sure if it's actually easier to implement) would be to enable the style of a #cite call to be the full reference. In other words, instead of
== Some header
@label1
@label2
== Other header
@label3
#bibliography[...]
Giving
Maybe one could do something like
== Some header
#cite("label1", "label2", style: "full")
== Other Header
#cite("label3", style: "full")
[3] L. Tso, K. S. Bonham, A. Fishbein, S. Rowland, and V. Klepac-Ceraj, “Targeted high-resolution
taxonomic identification of Bifidobacterium longum subsp. infantis using human milk
oligosaccharide metabolizing genes,” Nutrients, vol. 13, no. 8, p. 2833, Aug. 2021, doi: 10.3390/
nu13082833. [Online]. Available: https://doi.org/10.3390/nu13082833
Reacted by Joris Vankerschaver, Piyush Amitabh and Gonzalo Dario Molina
Is there a way to call hayagriva within typst? Something like my workaround is already possible with the hayagriva CLI:
❯ hayagriva testcite.yaml reference
Joe Schmoe, and Jane Doe. 2042. “This Is a Really Fascinating Title.” FEBS Journal. https://doi.org/10.1111/j.1742-4658.2010.07623.x.
Me Myself, and And Eye. 2001. “Boring Title,” https://doi.org/10.2222/j.x.
❯ hayagriva testcite.yaml reference --select "!misc"
Joe Schmoe, and Jane Doe. 2042. “This Is a Really Fascinating Title.” FEBS Journal. https://doi.org/10.1111/j.1742-4658.2010.07623.x.
❯ hayagriva testcite.yaml reference --select "!misc" --style ieee
Joe Schmoe, and Jane Doe, “This is a really fascinating title,” FEBS J., 2042, doi: 10.1111/j.1742-4658.2010.07623.x. [Online]. Available: https://doi.org/10.1111/j.1742-4658.2010.07623.x
OK, last one - this allows you to pass an array of citation keys, and pass a tag to include:
#let refs(file, entries: (), tag: none) = {
if entries.len() == 0 {
entries = yaml(file).keys()
}
for (entry, fields) in yaml(file) {
if entry not in entries {
continue
}
if not tag == none {
if "tags" not in fields or tag not in fields.tags {
continue
}
}
if "tags" in fields and "cofirst" in fields.tags {
[\* ]
}
if "tags" in fields and "corresponding" in fields.tags {
[#sym.dagger ]
}
let auth_n = fields.author.len()
let auths = ()
if auth_n > 4 {
auths = fields.author.slice(0, count:4)
[#auths.join(", ") _et. al._]
} else {
auths = fields.author
auths.join(", ", last: " and ")
}
[, "#eval("[" + fields.title.value + "]")"]
[. #emph(fields.parent.at(0).title)]
[. (#fields.date)]
[ doi: #link(fields.url, fields.doi)]
linebreak()
}
}
So you can do eg #refs("citations.yaml", tag: "preprint") or #refs("citations.yaml", entries: ("entry1", "entry2")) (or a combination.
It also has some logic to add a star at the beginning if you have the tag "cofirst", or a dagger if you have the tag "corresponding"
I am trying to reproduce my PhD thesis LaTex template in typst, but it was a necessity to have bibliographies for each chapter and numbering of references needed to start from 1 again.
Would be really nice feature to have.
Reacted by AYOUB EL MHAMDI, Radimir Sorokin, Y. Xu, Orjan Ameye, Paul Adam, Gabgobie, Max Jacinto and Julien Voisin
Reacted by AYOUB EL MHAMDI, Orjan Ameye and Gabgobie
I currently do this using the lua filters for multiple bibliographies in Quarto v1.3.
I haven't tested them in Typst/Quarto v1.4 yet, but I hope they'll work here, too.
I wanted to add a page just with personal publications using the full: true and adding a multiple bib files as an array will list out everything that is not part of my publications.
@thuiop Thanks for wanting to contribute, but please first discuss your approach in an issue or on Discord, as otherwise it's likely a setup for disappointment as it might not match what we had in mind. There is existing discussion in the Bibliography forge on Discord.
Ah, thanks, I will check it out. I have mostly been prototyping for now, I did not really expect to stumble on the perfect way to do it on the first try anyway.
Just to throw another (small) additional idea in here: In addition to having multiple bibliographies, it would also be nice to be able to modify the citation keys. For example, all journal publications could be numbered J01, J02, J03 etc while conference publications could be numbered C01, C02, C03 etc
Not sure whether this is possible already with Alexandria or Pergamon.
Not sure whether this is possible already with Alexandria or Pergamon.
Pergamon can currently split the bibliography by entry type, but not generate the bibliography-specific labels you mention. I think it would be relatively easy to implement. Feel free to create a Pergamon issue and let's continue the conversation there.
Update: This was indeed pretty easy and will be in the next Pergamon release.
Just adding my name to the list of people who enthusiastically request this feature! It would also be very useful for the definition of separate bibliographies for main and supplementary in academic papers.
Thanks for the recommendation. I‘ll have to check it out. I don‘t agree with never looking back though.
The promise of Typst is in part to be batteries included, which it achieves in large parts. An over reliance on packages providing features the language itself lacks could lead us down the same road as TeX.
That‘s why I actively avoid using packages for features and only use them for templates. The only reasonable exception to this rule I encountered so far has been graphing for which I use CeTZ or a specialised CeTZ wrapper.
I won't respond to the general point since it's a bit off topic for this issue. As far as it applies specifically to multiple bibliographies though, I agree. Bibliographies have a lot of moving parts regarding styles, referencing, etc. so implementing them in "user space" is relatively expensive (and I've run into the 5 layout iteration limitation, too).
I know that work has been happening on this issue, though; the link to the PR is a few messages up.
Thanks for the recommendation. I‘ll have to check it out. I don‘t agree with never looking back though.
What I wanted to say with this is that this package is not only feature-rich but also very well maintained. It offers everything that that one needs I think - including multiple bibliographies and lots of options for rendering references. I do think it's the best package for this at the moment.
I am building a layout where all the references are simultaneously presented in two places: in the text body and in a toggleable sidebar for quick access.
Calling bibliography() in the main div and sidebar div results in multiple bibliographies are not yet supported. Bummer.
In general, I would highly recommend to split the reading of input bibliographic data from the output of bibliographies.
This was a mistake in the bibtex approach and is correctly handled by biblatex (addbibresource vs. printbibliography)
I think for my use case, this would suffice. I had a feeling it could already be viable via states, but could not get it to work. Cheers
Activity
ayoubelmhamdi commentedon Jun 10, 2023
we need it for PhD too
wlupton commentedon Jul 3, 2023
I too have discovered that there can be only one
#bibliography, but its path argument can be an array, so you can include multiple bibliographies. However, there can't be any duplicate keys (if there are duplicate keys, I think it would probably make sense for later definitions to override earlier ones; then you could list the "most definitive" bibliographies last).HROMANO commentedon Jul 12, 2023
Something like that (in latex) would be nice indeed:
kescobo commentedon Jul 15, 2023
One more vote for this! I got 80% of the way through rebuilding my CV in typst, which is a dream compared to LaTeX, but this might kill the effort :-/. I'm looking into manually building building bibliographies from the yaml, but I am not quite confident enough in the syntax to have high hopes there.
An interim solution (though I'm not sure if it's actually easier to implement) would be to enable the
styleof a#citecall to be the full reference. In other words, instead ofGiving

Maybe one could do something like
To get
Some header
[1] M. C. Woodruff, K. S. Bonham, et al., “Chronic inflammation, neutrophil activity, and
autoreactivity splits long Covid,” Nature Commun., vol. 14, no. 1, Jul. 2023, doi: 10.1038/
s41467-023-40012-7. [Online]. Available: https://doi.org/10.1038/s41467-023-40012-7
[2] A. A. Schoenborn, S. M. Yannarell, et al., “Microclimate is a strong predictor of the native and
invasive plant-associated soil microbiome on san cristóbal island, galápagos archipelago,”
Environmental Microbiology, Mar. 2023, doi: 10.1111/1462-2920.16361. [Online]. Available:
https://doi.org/10.1111/1462-2920.16361
Other Header
[3] L. Tso, K. S. Bonham, A. Fishbein, S. Rowland, and V. Klepac-Ceraj, “Targeted high-resolution
taxonomic identification of Bifidobacterium longum subsp. infantis using human milk
oligosaccharide metabolizing genes,” Nutrients, vol. 13, no. 8, p. 2833, Aug. 2021, doi: 10.3390/
nu13082833. [Online]. Available: https://doi.org/10.3390/nu13082833
kescobo commentedon Jul 15, 2023
Is there a way to call hayagriva within typst? Something like my workaround is already possible with the hayagriva CLI:
kescobo commentedon Jul 16, 2023
I just hacked this together using the
#yamlfunction:gives
kescobo commentedon Jul 16, 2023
OK, last one - this allows you to pass an array of citation keys, and pass a tag to include:
So you can do eg
#refs("citations.yaml", tag: "preprint")or#refs("citations.yaml", entries: ("entry1", "entry2"))(or a combination.It also has some logic to add a star at the beginning if you have the tag "cofirst", or a dagger if you have the tag "corresponding"
camattelaer commentedon Jul 25, 2023
Just wanted to confirm.
I am trying to reproduce my PhD thesis LaTex template in typst, but it was a necessity to have bibliographies for each chapter and numbering of references needed to start from 1 again.
Would be really nice feature to have.
ayoubelmhamdi commentedon Jul 27, 2023
Multiple bibliographies could meaning:
so what's means
Multiple bibliographies?kescobo commentedon Jul 28, 2023
@ayoubelmhamdi I think you can already use multiple bibliography files by passing an array to
#bibliography.jadebarclay commentedon Aug 6, 2023
I currently do this using the lua filters for multiple bibliographies in Quarto v1.3.
I haven't tested them in Typst/Quarto v1.4 yet, but I hope they'll work here, too.
akshaybabloo commentedon Dec 4, 2023
I wanted to add a page just with personal publications using the
full: trueand adding a multiple bib files as an array will list out everything that is not part of my publications.bcdavasconcelos commentedon Dec 23, 2023
Is this being considered by the development team? Multiple bibliographies are a basic feature of any academic work.
43 remaining items
laurmaedje commentedon Oct 14, 2025
@thuiop Thanks for wanting to contribute, but please first discuss your approach in an issue or on Discord, as otherwise it's likely a setup for disappointment as it might not match what we had in mind. There is existing discussion in the Bibliography forge on Discord.
thuiop commentedon Oct 14, 2025
Ah, thanks, I will check it out. I have mostly been prototyping for now, I did not really expect to stumble on the perfect way to do it on the first try anyway.
maxnoe commentedon Nov 10, 2025
To give another example usecase, in our technical documentation, we need to differentiate applicable from reference documents.
This is the biblatex-based solution we use:
maxnoe commentedon Nov 10, 2025
In general, I would highly recommend to split the reading of input bibliographic data from the output of bibliographies.
This was a mistake in the bibtex approach and is correctly handled by biblatex (addbibresource vs. printbibliography)
andreas-bulling commentedon Dec 24, 2025
Just to throw another (small) additional idea in here: In addition to having multiple bibliographies, it would also be nice to be able to modify the citation keys. For example, all journal publications could be numbered J01, J02, J03 etc while conference publications could be numbered C01, C02, C03 etc
Not sure whether this is possible already with Alexandria or Pergamon.
ensko commentedon Dec 24, 2025
There is a related feature request for Alexandria, ensko/typst-alexandria#3, but I haven't worked on it.
alexanderkoller commentedon Dec 25, 2025
Pergamon can currently split the bibliography by entry type, but not generate the bibliography-specific labels you mention. I think it would be relatively easy to implement. Feel free to create a Pergamon issue and let's continue the conversation there.
Update: This was indeed pretty easy and will be in the next Pergamon release.
johannahaffner commentedon Jan 3, 2026
Just adding my name to the list of people who enthusiastically request this feature! It would also be very useful for the definition of separate bibliographies for main and supplementary in academic papers.
andreas-bulling commentedon Jan 4, 2026
@johannahaffner Use pergamon and never look back
Gabgobie commentedon Jan 4, 2026
Thanks for the recommendation. I‘ll have to check it out. I don‘t agree with never looking back though.
The promise of Typst is in part to be batteries included, which it achieves in large parts. An over reliance on packages providing features the language itself lacks could lead us down the same road as TeX.
That‘s why I actively avoid using packages for features and only use them for templates. The only reasonable exception to this rule I encountered so far has been graphing for which I use CeTZ or a specialised CeTZ wrapper.
ensko commentedon Jan 4, 2026
I won't respond to the general point since it's a bit off topic for this issue. As far as it applies specifically to multiple bibliographies though, I agree. Bibliographies have a lot of moving parts regarding styles, referencing, etc. so implementing them in "user space" is relatively expensive (and I've run into the 5 layout iteration limitation, too).
I know that work has been happening on this issue, though; the link to the PR is a few messages up.
andreas-bulling commentedon Jan 4, 2026
What I wanted to say with this is that this package is not only feature-rich but also very well maintained. It offers everything that that one needs I think - including multiple bibliographies and lots of options for rendering references. I do think it's the best package for this at the moment.
xosxos commentedon Feb 20, 2026
FYI: I ran into this when exporting to HTML.
I am building a layout where all the references are simultaneously presented in two places: in the text body and in a toggleable sidebar for quick access.
Calling
bibliography()in the main div and sidebar div results inmultiple bibliographies are not yet supported. Bummer.I think for my use case, this would suffice. I had a feeling it could already be viable via states, but could not get it to work. Cheers
dibbel26 commentedon Jun 29, 2026
amazing work!