How to use custom csl for software biblatex entry?

I am trying to use a custom csl file to display the reference to a software in a specific way so I have added a section in the csl layout section for if the entry type is software. The problem I have is the type software doesn’t seem to be recognized by Typst because the format I get in the document matches not the section I added but the “else” format. When I generate the bibliography with pandoc for example I get the correct entry format for the software.

Is it possible that the software type is converted to some other csl style by Typst and if so, what is it?

Yes, it is converted to @misc, likely due to the following line in the BibLaTeX manual (https://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf, under “Database Guide” > “Entry Types” > “Regular Types”):

software Computer software. The standard styles will treat this entry type as an alias for @misc.

The relevant implementation in hayagriva (the library used by Typst to render citations and bibliography from CSL styles) can be found below, when converting from BibLaTeX to hayagriva’s format.

Indeed, it would appear that software is also not a valid hayagriva entry type in general.

Maybe the entry type repository is more appropriate in your case? Though you’d need to use hayagriva yaml to specify it (I think @dataset from biblatex also happens to be converted to repository).

1 Like