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 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>
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
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.
sort-separator=" (" and delimiter="), "
But that doesn't work with your delimiter-precedes-last="never"
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
http://dam.revues.org/docannexe1153.html
It works!
<name name="given" prefix="(" suffix=")" >
Thank you admasmith