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:







  • You need to use <code></code> tags to show XML code here.

    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
  • Thank you, I will re-check it. Here is the code:

    <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>

  • Thanks again, I found it! The name-as-sort-order wasn't set in the macros and in the layout but in the Global Formatting Options it was set for 'all'.
Sign In or Register to comment.