Summary of my changes :
Issue 1a. - Various editor format
Formatting of editors is off, the \DeclareNameAlias[collection, incollection]{editor}{given-family:plain} has no effect.
moewe comments was that "\DeclareNameAlias can only accept one value in the optional argument, it doesn't do several comma-separated values. So you need two lines \DeclareNameAlias[collection]{editor}{given-family:plain} \DeclareNameAlias[incollection]{editor}{given-family:plain}."
Change made
Replace the lines
\DeclareNameAlias[collection]{author}{given-family:plain}
\DeclareNameAlias[collection, incollection]{editor}{given-family:plain}
by
\DeclareNameAlias[collection]{author}{given-family:plain}
\DeclareNameAlias[collection]{editor}{given-family:plain}
\DeclareNameAlias[incollection]{editor}{given-family:plain}
Issue 1b. - Formatting title
formatting of the title in the incollection is also off.
moewe comments was that "[f]or the title you want \DeclareFieldFormat[incollection]{title}{#1}. The starred \DeclareFieldFormat*{title} turns all titles into italics, a following \DeclareFieldFormat[incollection]{title}` will then change the formatting for @incollection"
Change made
Replace the line
\DeclareFieldFormat*{title}{\mkbibemph{#1}}
by
\DeclareFieldFormat*{title}{\mkbibemph{#1}}
\DeclareFieldFormat[incollection]{title}{#1}
Issue 1c. - Correction of spacing (missing some %)
There are some funny spacing in front of the collection/incollection entries
moewe comments was that "[t]he unwanted spaces comes again from forgotten %s you need \DeclareBibliographyDriver{collection}{% and \DeclareBibliographyDriver{incollection}{% (i.e. you have to add a % after the {)"
Change made
Replace the line
\DeclareBibliographyDriver{collection}{
by
\DeclareBibliographyDriver{collection}{%
and
Replace the line
\DeclareBibliographyDriver{incollection}{
by
\DeclareBibliographyDriver{incollection}{%
Issue 1d. - Formating of (edit.)
The label "(edit.)" is missing
This issue was caused by two sources : (1) The current ShareLatex version is 3.7. Biblatex v3.8 offers more cutomization (2) My lbx was wrongly formatted and missing some field redefinition. Hence the change
Change made
- Setting the format in .bbx file.
this code was then inserted in the bbx file.
% set delimiter of editor-type to a space (instead of ", ")
\DeclareDelimFormat{editortypedelim}{\addspace}
% add parenthesis around the label of editortype
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
- Workaround for v3.7 code (not needed in recent version)
The spacing was not working, but this is due to my version biblatex being outdated. Hence, I've simply copied the latest version of the code.
% Workaround, due to v3.7, solved in v3.8+ %
% Need to copy the current biblatex 3.11 macro %
\renewbibmacro*{editor}{%
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{\printnames{editor}%
\setunit{\printdelim{editortypedelim}}%
\usebibmacro{editorstrg}%
\clearname{editor}}
{}}
- Changing the lbx code with the custom "edit"
in order to work, my lbx code needs a better formatting, as per Moewe comments. The code hereafter change the default "editor(s)" entry type with my updated version.
\DeclareBibliographyStrings{%
inherit = {french},
editor = {{\'editeur}{\'edit\adddot}},
editors = {{\'editeurs}{\'edit\adddot}},
}
Best Answer
Here is a solution using biblatex 2.0/biber 1.0. You can define your own entrytype for this and then just write your own driver for the new type. Since you "own" this driver, you can do what you want with it, add new fields, format them how you like. This is very easy, I just copied an existing driver from the
standard.bbx
in biblatex and changed it a bit, making it a "standard" driver and referencing the fields I allowed for this type in the datamodel declaration (NUMBER and TYPE). You are really adding to the data model as this already specified that most common fields like AUTHOR, YEAR etc. are allowed in all entry types. NUMBER and TYPE aren't so I added them. I didn't have to actually define these fields in the data model as they already exist - you could of course make completely new fields with new names but then you'd need some\DeclareDatamodelFields
declarations. See section 4.5.3 of the biblatex 2.x documentation.