Help to do a better citation style Documents d'Archéologie Française
Hello, I have done a citation style for the Documents d'Archéologie Française (DAF) in CSL 0.8. I Updated it with http://csleditor.quist.de/. I done a few modifications. And the style is here : https://docs.google.com/leaf?id=0B50fj8z1KLPsZmMxMDM4NTQtOWFhYy00OTExLWIyZTUtZmI3MDA5YjA4OWJj&sort=name&layout=list&num=50
The Daf style suppose to obtain that :
Lorblanchet 2001
Lorblanchet (M.) — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).
And I obtain that :
Lorblanchet 2001 Lorblanchet M. — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).
So how can I do a carriage between "Lorblanchet 2001" and "Lorblanchet (M.)".
Is it possible to have the initial of first name between brackets ?
When I have more than one author i don't want to have Toto T., Tata (T.) et Titi (T.) but Toto T., Tata (T.), Titi (T.). What variable can i put in : "name and="text""
Thanks for your help!
The Daf style suppose to obtain that :
Lorblanchet 2001
Lorblanchet (M.) — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).
And I obtain that :
Lorblanchet 2001 Lorblanchet M. — La Grotte ornée de Pergouset (Saint-Géra Lot) : un sanctuaire secret paléolithique. Paris : MSH, 2001. 188 p. : ill. (DAF ; 85).
So how can I do a carriage between "Lorblanchet 2001" and "Lorblanchet (M.)".
Is it possible to have the initial of first name between brackets ?
When I have more than one author i don't want to have Toto T., Tata (T.) et Titi (T.) but Toto T., Tata (T.), Titi (T.). What variable can i put in : "name and="text""
Thanks for your help!
http://citationstyles.org/downloads/specification.html#display
You can leave out the and by simply not having an "and" attribute in the name node.
The parenthesis issue is a little more complicated - we had that recently, maybe someone can quickly find the link to the thread or you could search for it.
edit: thanks Gracile
<name-part name="given" prefix="(" suffix=")"/>
http://forums.zotero.org/discussion/17801/authors-with-no-given-name/#Item_28
And to get the initial, you should add initialize-with="." somewhere (!) too. I'm not sure but try:
<name-part name="given" prefix="(" suffix=")" initialize-with="."/>
To Gracile, I have use the initialize-with="." like this :
<name name-as-sort-order="all" sort-separator=" ">
<name-part name="family" font-variant="small-caps" />
<name-part name="given" prefix="(" suffix=")" initialize-with=". " />
<name delimiter=", " name-as-sort-order="all" sort-separator=" " form="long" initialize-with=". " />
</name>
</names>
I tried to use :
<names variable="author">
<name name-as-sort-order="all" and="text" delimiter-precedes-last="never" form="long" sort-separator=" ">
<name-part name="family" font-variant="small-caps"/>
<name-part name="given" prefix="(" suffix=")"/>
</name>
<substitute>
<text macro="editor"/>
<text macro="translator"/>
</substitute>
</names>
But I don't get any small caps (or braces either). When I put directly font-variant="small-caps" in <name>, I get everything in small caps, though. It is quite like <name-part> have no effect.
Edit : apparently, the problem was caused by the <substitute>. I removed it, and now it works perfectly.
I have a problem when I try to validate it by "validator.nu" :
"Error: Element et-al from namespace http://purl.org/net/xbiblio/csl not allowed as child of element else-if from namespace http://purl.org/net/xbiblio/csl in this context. (Suppressing further errors from this subtree.)
From line 55, column 11; to line 55, column 37
<et-al font-weight="bold"/>↩"
And the same :
"From line 59, column 11; to line 59, column 37"
I need to have the name and the et al in bold but i don't know how to do.
The style is here : https://gist.github.com/anonymous/f6388592b6d004b366fe
Thanks in advance!
with the style on the official repositery : Documents d'archéologie française (French)
I've got a few problem :
- the authors names with accented character (é,à...) lose it when they are put in small capitals. How keep them?
- I dont understand why for a chapter with 2 or more pages I've got the single page prefix "p." and not "pp."
- more annoying, it's the exact opposite for the article-journal (just pp. everytime).
Thanks in advance!
https://github.com/citation-style-language/styles/blob/master/documents-d-archeologie-francaise.csl#L363
and
https://github.com/citation-style-language/styles/blob/master/documents-d-archeologie-francaise.csl#L313
accents in small caps should work (and do for me)--Zotero certainly isn't doing anything to remove them (it can't). Might be the font you're using? Can you get accents on small caps in the font you're using otherwise?
Edit : what adamsmith said. You can replace those lines by
<group>
<label variable="page" form="short"/>
<text variable="page" prefix="&#160;"/>
</group>
I use last version of Zotero (4.0.23.1), connector for word (3.1.18) and word 2003 (with time new roman) : and I don't have the accented character in small capitals.
On the same computer, with the same zotero, with LibreOffice connector (3.5.9)and LO(4.3) with basic character : I have it!
Un grand merci!