Help for editing CSL style
Hello,
I try to create a new style and I almost there, but there are still some problems I need to fix. Could you help me with the following issues ?
For example for a chapter in the book I would like :
SCHÄDLER, U. (small caps), « À quoi joue-t-on ? Les osselets », in V. Dasen et U. Schädler (éds), Jeux et jouets gréco-romains, Archéothéma, 31 (2013), p. 62-63.
I have this :
SCHÄDLER, U. (small caps), « À quoi joue-t-on ? Les osselets », in DASEN, V. et SCHÄDLER, U. (small caps) (éd.), Jeux et jouets gréco-romains, Archéothéma, 31, (2013), p. 62 63.
I can’t manage to obtain éd. in it’s plural form and I can’t delete the comma after 31.
I also want to know if it could be possible to choose small caps in the first place for the name of editors when it appaears like a book - DASEN, V. et SCHÄDLER, U. (éd.), Jeux et jouets gréco-romains, Archéothéma, 31, (2013) – and other display when they are mentioned like in the first example.
I could send you the csl file if you need it.
Thank you for your help
I try to create a new style and I almost there, but there are still some problems I need to fix. Could you help me with the following issues ?
For example for a chapter in the book I would like :
SCHÄDLER, U. (small caps), « À quoi joue-t-on ? Les osselets », in V. Dasen et U. Schädler (éds), Jeux et jouets gréco-romains, Archéothéma, 31 (2013), p. 62-63.
I have this :
SCHÄDLER, U. (small caps), « À quoi joue-t-on ? Les osselets », in DASEN, V. et SCHÄDLER, U. (small caps) (éd.), Jeux et jouets gréco-romains, Archéothéma, 31, (2013), p. 62 63.
I can’t manage to obtain éd. in it’s plural form and I can’t delete the comma after 31.
I also want to know if it could be possible to choose small caps in the first place for the name of editors when it appaears like a book - DASEN, V. et SCHÄDLER, U. (éd.), Jeux et jouets gréco-romains, Archéothéma, 31, (2013) – and other display when they are mentioned like in the first example.
I could send you the csl file if you need it.
Thank you for your help
The CSl file is here : https://hastebin.com/oquvoqefic.xml
Replace line 17 with:
<term name="editor" form="short">
<single>éd.</single>
<multiple>éd.</multiple>
</term>
For removing the small caps for editors (and printing initial and name in the right order):
Remove name-as-sort-order="all" and font-variant="small-caps" from line 36
For removing the comma before the year:
Find
<group delimiter=", ">
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
<text variable="volume"/>
<text variable="issue"/>
<text macro="year-date"/>
<text macro="pages"/>
</group>
Change to
<group delimiter=" ">
<group delimiter=", ">
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
<text variable="volume"/>
<text variable="issue"/>
</group>
<group delimiter=", ">
<text macro="year-date"/>
<text macro="pages"/>
</group>
</group>
For removing the small caps for editors (and printing initial and name in the right order): it is possible to have two different displays ?
For the book itself like this : DASEN V. (éd.), Title....
but different in this case of chapter : AMMAR, H. "Les chariots", in V. Dasen (éd.), Title ....
Thank you for your help !
<macro name="collection">
<group delimiter=" ">
<text variable="collection-title" form="short" font-style="italic"/>
<text variable="collection-number" strip-periods="false" font-variant="normal" suffix=","/>
</group>
</macro>
For the other question, you would need to build a conditional like such:
<macro name="author">
<choose>
<if type="chapter" match="any">
<names variable="author" font-variant="small-caps" delimiter=", ">
<name and="text" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/>
<et-al font-style="italic"/>
<substitute>
<text macro="container-author"/>
</substitute>
</names>
</if>
<else>
<names variable="author" delimiter=", ">
<name and="text" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all"/>
<et-al font-style="italic"/>
<substitute>
<text macro="container-author"/>
</substitute>
</names>
</else>
</choose>
</macro>
You'll need to duplicate the container-author macro and give it a different name. For one you leave the small caps in, for the other, new one, take them out and change the name where you call it in the style.
I have two problems :
1) For editors I need two differents kind of visualizations in two different circumstances :
1a : I have already this one for books :
DASEN, V. (small caps) (éd.), Ludique ! Jouer dans l’Antiquité, Catalogue de
l’exposition, Lyon, Lugdunum, Musée et théâtres romains, 20 juin-1er décembre
2019, Gent (2019).
1b : I need this one when the editor is mentionned for a chapter book.
I have that :
DASEN, V., « Hoops and Coming of Age in Greek and Roman Antiquity », in
BROUGÈRE, G. et ALLEN, M. (small caps) (éds.), 8th International Toy Research
Association World Conference (ITRA), Toys and Material Culture. Hybridisation,
Design and Consumption, Paris (2019), p. 1 21.
I need that :
DASEN, V., « Hoops and Coming of Age in Greek and Roman Antiquity », in G.
BROUGÈRE et M. ALLEN (small caps) (éds.), 8th International Toy Research
Association World Conference (ITRA), Toys and Material Culture. Hybridisation,
Design and Consumption, Paris (2019), p. 1 21.
2) I can't manage for journal articles to visualize the complete date (day, month, year)
I have that :
FRANCE, A., « La vie littéraire », Le temps (1887)
I need that :
FRANCE, A., « La vie littéraire », Le temps (16 octobre 1887).
Duplicate the editor macro, give it a different name like "editor-chapter" and change the setting of "name-as-sort-order" to "first".
Then use/call this macro in line 226 (it will be line 235 after duplicating).
2) easiest for you probably will be to replace line 193 where you call the year-date macro with
<"text macro="year-date"/>
" with<date form="text" variable="issued" prefix="(" suffix=")"/>