typst / biblatex

A Rust crate for parsing and writing BibTeX and BibLaTeX files.
Apache License 2.0
120 stars 15 forks source link

Ordered writes #17

Closed ariroffe closed 2 years ago

ariroffe commented 2 years ago

Something that was also bothering me was that each time you called to_bibtex_string or to_biblatex_string it generated a different output, because the fields of each entry were being iterated on in random order. So, I made two extra methods that take a vec of &str's specifying the ordering of the fields. For example, if the vec is vec!["title", "author"] the functions will place the title and author fields first, and order the rest alphabetically.