I was making a template for an academic paper, and needed to make the citations (@book) be formatted to the right style. I found on the Parameter reference that i could use a custom .csl file that would configure the citations for me. I then wrote this on my template:
#bibliography("./bibliografia.bib", style: "./res/abnt.csl")
I have a file called abnt.csl in the folder res that on got on this github repo, but when i tried to compile, this error appeared.
[20:40:05] compiled with errors
error: failed to load CSL style (data did not match any variant of untagged enum StyleCategory)
โโ res/abnt.csl:1:0
โ
1 โ โญ ๏ปฟ<?xml version="1.0" encoding="utf-8"?>
2 โ โ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
3 โ โ <!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
4 โ โ <info>
ยท โ
725 โ โ </style>
726 โ โ
โ โฐ^
help: error occurred in this call of function `bibliography`
โโ tcc.typ:259:3
โ
259 โ #bibliography("./bibliografia.bib", style: "./res/abnt.csl")
โ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I am honestly not sure what is going wrong and trying to ask AI for help did not work (as with most things with Typst and AI).
I cannot test if the file works, as i did not even know what a csl file was before today. could someone help?