Authors' initials in brackets

Hi everyone,
I would like to improve an existing style and put the authors' initials winthin brackets in the bibliography.

I have this :
Alexandre, Planche et Defauconpret (1877) : Alexandre C., Planche M. et Defauconpret C., 1877, Dictionnaire français-grec..., Paris, Hachette.

I want that :
Alexandre, Planche et Defauconpret (1877) : Alexandre (C.), Planche (M.) et Defauconpret (C.), 1877, Dictionnaire français-grec..., Paris, Hachette.

Thank you !

Here are parts of the code :
<macro name="auteurs">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=" " delimiter=", " delimiter-precedes-last="never" initialize-with="." />
<label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>

...

<layout>
<text macro="author-short" suffix=" " font-weight="bold"/>
<text macro="year-date" prefix="(" suffix=") : " font-weight="bold"/>
<text macro="auteurs" suffix=","/>
<date variable="issued" prefix=" " suffix=",">
<date-part name="year"/>
</date>
  • I've never done this, but two ideas:
    You could try experiment if the name-part elements accept prefix and suffix
    http://citationstyles.org/downloads/specification.html#name-part-formatting

    Alternatively, you could try using
    sort-separator=" (" and ininitalize-with=".)"
    My concern there would be that is messes things up when you have two initials.
  • Affixes on the name-part should work with the citeproc-js processor, but I think that it's not allowed by the CSL specification, so a style that puts affixes there won't validate.
  • Can you provide details on what style guide is requiring this behavior? It should be possible to officially add this small detail to a future revision of the CSL spec if necessary, but it's good to document who requires it before initiating that process.
  • or how about
    sort-separator=" (" and delimiter="), "
    But that doesn't work with your delimiter-precedes-last="never"
  • Thank you all for your comments and questions. I was away from Internet, sorry for the delay.
    To ajlon : the style I'm trying to improve is the "traces" one, and I'm trying to make it fit the specs of a French archaeological journal: Documents d'Archeologie Meridionale.
    I'll try all your solutions and let you know.
    Thanx
  • raphaelo - do you have an online style guide for that?
  • Do you mean the journal? If yes, see for instance :
    http://dam.revues.org/docannexe1153.html
  • It being ... which solution?
  • hidden in the html:
    <name name="given" prefix="(" suffix=")" >
  • I didn't see the line was hidden...
    Thank you admasmith
Sign In or Register to comment.