Consider the following example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[american]{babel}
\usepackage[backend=biber]{biblatex}
\DeclareBibliographyDriver{unpublished}{%
\printtext{%
\printfield{location}\addcomma\space%
\printfield{year}\addcomma\space%
\printfield{month}\addcomma\space%
\printfield{day}}%
}
\addbibresource{my.bib}
\begin{document}
\fullcite{something}
\end{document}
and the respective bib file:
@unpublished{something,
author = {Me C. and You K.},
title = {Some Awesome Work},
eventtitle = {Workshop on Awesome Stuff},
location = {Some County in the U.S.},
year = {2018},
month = {9},
day = {7},
howpublished = {http://www.someurl.com}
}
Compiling the above gives ", 2018, Sept.,".
Indeed the field day
is not in the list of available fields given on page 12 of the biblatex manual. However, location
is the list of optional fields, and is still not showing.
Are there any rules that govern this behavior, or is this a bug? Moreover, how can I display fields such as day
above?
I am using the latest update of the 2017 mactex distribution.
location
is a list, so you have to use\printlist{location}
. See also tex.stackexchange.com/q/122095/35864 and tex.stackexchange.com/q/430833/35864\printfield{day}
or\printfield{month}
. Instead you should use\printdate
and customise the date format accordingly (if necessary).\printtext
is unnecessary (though it could be more useful if it applied additional formatting). You should also consider using the punctuation tracker and\setunit{\addcomma\space}
instead of putting\addcomma\space
directly. Have a look at §4.11.7 Using the Punctuation Tracker of the manual.day
is not a problem of your code, it is a problem of your input.day
is not a valid input field.year
andmonth
are supported for backwards compatibility reasons, but day-precision dates must be given in thedate
field in the formYYYY-MM-DD
. Things should work when you saydate = {2018-09-07},
in thebib
file.\newunitpunct
. All this works well, but I am having trouble with\newblockpunct
and\finentrypunct
, as\newblock
and\finentry
don't print anything. Any suggestions?