I need to add a new bibliography string to biblatex, in order to have
unpublished references type print the string "unpublished" at the end
of the bib reference (with correct capitalization, punctuation, etc.)
I thought I would just add a a line to \DeclareBibliographyStrings
command in the the english.lbx file:
unpublished = {{unpublished}{unpubl\adddot}},
and change the bbx file by adding a new macro:
\newbibmacro*{unpublished-label}{%
\bibstring{unpublished}
\setunit{\dot}}
and tweaking the unpublished driver by adding a couple of lines at the
end:
\DeclareBibliographyDriver{unpublished}{%
.....
.....
\usebibmacro{pageref}%
\newunit\newblock % added line
\usebibmacro{unpublished-label} % added line
\usebibmacro{finentry}}
However, on compilation I get the following error:
! Package xkeyval Error: `unpublished' undefined in families
`blx@lbx'.
Can anyone tell me if I skipped a step somewhere? Googling and
searching the group proved unhelpful.
Thanks,
Stefano
For future reference: I did skip something, as it turns out. Namely,
the command:
\NewBibliographyString{unpublished}
which I should have added to the lbx file.
Problem solved.
Stefano