Hey guys I am using typst for writing all of my reports in my daily life and I am very happy with it.
Something that I have been wondering for quite some time, when using it for scientific papers and reports, is the following. When I use for example online references using e.g. a references.bib
file that stores my references in the bibtex format. Then I usually have to update the urlDate property of these references manually. Meaning that whenever I make changes to my document I should also update the access date (urlDate
property) of these references to conform with the citation requirements.
This means that my question is whether it is possible to somehow manipulate / change this property when showing the bibliography in the document. I am thinking about something like this:
#show bibliography.entry: it => {
if (type(it) == "Online") {
it.urlDate = new Date()
}
it
}
However, I was yet unable to achieve something similar because it seems like there is no entry
property for the bibliography command. Also, I guess it would not be possible to mutate the urlDate
property of an entry. However, it may be possible to achieve the desired behavior without having to mutate the it
element, somehow.
Have you guys, by any chance, thought of something similar before or perhaps even done so in the past? Looking forward to reading your thoughts on this.