I am writing a report in which I cite several webpages. I would like to supply the dates on which these websites were last revised. Is there a field called last modified
(or something similar) for the online
entry or any other entry type for that matter? A quick search of the Biblatex documentation turned nothing up but perhaps I was searching for the wrong terms.
[Tex/LaTex] field for ‘last modified’ in Biblatex
biblatexonline
Best Answer
I would argue that a "last modified" field for websites is not really necessary. The
date
field will contain this information. If you cite a book you always use the year of your print version for theyear
field, not the year of some other edition (be it the first or just one you like, if you insist on giving information like this there isorigdate
).You can add information like "last modified" in the
note
oraddendum
fields, which are designed to hold miscellaneous information.There is also the
urldate
for last visited (which is not exactly what you seem to want, but deserves a mention anyway).But who am I to deny you the joy of having a
lastmodifieddate
field. It won't come for free though. We will follow the more complex example in How can I create entirely new data types with BibLaTeX/Biber?.We will need a new data model for this. Save the following in a file called
lastmod.dbx
(in the MWE below this file is automatically created viafilecontents
).Note that we will later load
biblatex
with the optiondatamodel=lastmod
.Now Biber knows
lastmodifieddate
.We can even have localisation features (save this in
english-lastmod.lbx
)Finally, we enable printing the new date via
The MWE
gives
The answer was updated to reflect changes in
biblatex
's internals that make defining date fields easier. If you are using a very old version ofbiblatex
you may have to check the edit history.