A CSL question: initials before last names
I created a CSL file for an existing style based on the Chicago author-date. All authors' names are written [last_name] [initials] (this works fine), while all collection editors should have initials first, but I can't get this part right. Here is the macro:
Generally speaking, look for
name-as-sort-order
: you want that set to "all" for lastname intials, and you don't want it at all for initials lastname<macro name="container-contributors">
<choose>
<if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<text macro="container-prefix" suffix=" "/>
<group delimiter=", ">
<names variable="container-author" delimiter=", ">
<name form="short" and="text" delimiter-precedes-last="never" initialize-with=""/>
<label form="short" suffix=" "/>
</names>
<names variable="editor translator" delimiter=" ">
<name delimiter="" and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never" et-al-min="3" initialize-with="." sort-separator=" "/>
<label form="short" prefix=" "/>
</names>
</group>
</if>
</choose>
</macro>