Is it possible to have entries in a bib file with custom @entry types? For example, below I have entries I've created for a legal encyclopaedia and a United Nations document.
@undocument{modeleclaw,
Author = {United Nations Commission on International Trade Law (UNCITRAL)},
Date-Added = {2011-04-11 15:27:46 +0800},
Date-Modified = {2011-04-11 15:44:53 +0800},
Shorttitle = {Model Law},
Title = {Guide to Enactment of the UNCITRAL Model Law on Electronic Commerce},
Year = {1996}}
@encyclopaedia{halsbury,
Chapternumber = {7},
Chaptertitle = {Contract: General Principles},
Date = {31 August 2006},
Date-Added = {2011-04-11 11:22:57 +0800},
Date-Modified = {2011-04-11 11:25:06 +0800},
Encyclopaediatitle = {Halsbury's Law of Australia},
Publisher = {LexisNexis},
Title = {An offer is comprised of particular elements},
Titlenumber = {7.1.460},
Volume = {TLA [7.1.460]},
}
I've been through the biblatex manual but I can't find anything that says I can define my own type. Is it possible? Then, if so, how would I define drivers in the bbx and cbx files to manage the types? I tried creating this as an example but I'm not sure I'm on the right track:
% United Nations Document (undocument)
\DeclareBibliographyDriver{undocument}{%
\usebibmacro{bibindex}%
\usebibmacro{title}%
\setunit{\addcomma\space}%
\iffieldundef{resolutionnumber}{}{\thefield{resolutionnumber}\setunit{\addcomma\space}}%
\iffieldundef{officialrecords}{}{\thefield{officialrecords}\setunit{\addcomma\space}}%
\iffieldundef{committeenumber}{}{\thefield{committeenumber}\setunit{\addcomma\space}}%
\iffieldundef{sessionnumber}{}{\thefield{sessionnumber}\setunit{\addcomma\space}}%
\iffieldundef{meetingnumber}{}{\thefield{meetingnumber}\setunit{\addcomma\space}}%
\iffieldundef{agendaitem}{}{Agenda Item \thefield{agendaitem}\setunit{\addcomma\space}}%
\iffieldundef{supplement}{}{Supp No \thefield{supplement}\setunit{\addcomma\space}}%
\iffieldundef{undocnumber}{}{UN Doc\thefield{undocnumber}\setunit{\addcomma\space}}%
\iffieldundef{date}{}{\mkbibparens\thefield{date}\setunit{\addcomma\space}}%
\iffieldundef{annex}{}{\thefield{annex}\setunit{\addcomma\space}}%
{\printlist{publisher}\setunit{\addcomma\addspace}}%
}
% ENCYCLOPAEDIA (encyclopaedia)
\DeclareBibliographyDriver{encyclopaedia}{%
\usebibmacro{bibindex}%
{\printlist{publisher}\setunit{\addcomma\addspace}}%
\usebibmacro{encyclopaediatitle}
}
When I compile my tex file I get this:
Package biblatex Warning: No driver for entry type 'misc'. (biblatex) Skipping entry 'modeleclaw' on input line 146.
I'm not sure if I'm going about this the right way or not.
agendaitem,undocnumberetc. – Mark Ferraretto Apr 12 '11 at 09:16sourcemapoption. See the Biber 0.9.8 manual, section 3.1.1 – PLK Dec 21 '11 at 17:55