Citation of author's names and of patents
Hi everyone,
I was trying to create my own citation style, and almost succeed having what I want. I have just 4 little problems that I don't know how to solve. Here is my .csl file :
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>Elsevier (with titles) (dev)</title>
<id>http://www.zotero.org/styles/elsevier-with-titles</id>
<link href="http://www.zotero.org/styles/elsevier-with-titles"/>
<author>
<name>Richard Karnesky</name>
<email>karnesky+zotero@gmail.com</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</author>
<contributor>
<name>Rintze Zelle</name>
<uri>http://forums.zotero.org/account/831/</uri>
</contributor>
<category term="generic-base"/>
<category term="numeric"/>
<updated>2008-11-11T20:34:47+00:00</updated>
<summary>A style for many of Elsevier's journals that includes article titles in the reference list</summary>
<link href="http://www.zotero.org/styles/elsevier-without-titles.csl" rel="template"/>
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/</rights>
</info>
<macro name="author">
<names variable="author">
<name initialize-with="." delimiter=", " name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="." delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all"/>
<label form="short" prefix=" (" text-case="capitalize-first" suffix=".)"/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
</else>
</choose>
</macro>
<macro name="publisher">
<text variable="publisher-place" suffix=", "/>
<text variable="publisher" suffix=" "/>
<text macro="year-date" prefix="(" suffix=")"/>
</macro>
<macro name="edition">
<!--TODO: CSL should have low numeric be text (e.g. '3'->'third')-->
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=", ">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<option name="entry-spacing" value="0"/>
<option name="second-field-align" value="true"/>
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" prefix=" " suffix=". "/>
<choose>
<if type="book">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text variable="volume" font-weight="bold" suffix=","/>
<text macro="edition" suffix=","/>
<text macro="publisher"/>
<text variable="page" />
</group>
</else-if>
<else-if type="patent">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="number" font-weight="bold"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="genre" suffix="."/>
<text variable="publisher"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text variable="page" />
</group>
</else-if>
<else-if type="speech">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="genre" suffix="."/>
<text variable="publisher"/>
<text variable="publisher-place"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
</else-if>
<else-if type="webpage">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text value="Disponible sur:"/>
<text variable="URL" prefix="<" suffix=">" />
<text macro="year-date" prefix="(date de consultation: " suffix=")"/>
</group>
</else-if>
<else>
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text variable="volume" font-weight="bold"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text variable="page" />
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
My problems are the following :
- I don't know how to cite the assignees for the patents,
- Always about the patents, the date is not cited whereas in the .csl there is, I think, the good command,
- If there are only 2 authors in my reference, there is no comma between each of them (e.g. : "M. Barsoum T. El-Raghy" instead of "M. Barsoum, T. El-Raghy"). There is no problem when there are 3 or more names,
- Eventually, the cited names contain only the first letter of the first name, and I would like all the field related to the first name is cited.
By advance, thank you for your help !
I was trying to create my own citation style, and almost succeed having what I want. I have just 4 little problems that I don't know how to solve. Here is my .csl file :
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>Elsevier (with titles) (dev)</title>
<id>http://www.zotero.org/styles/elsevier-with-titles</id>
<link href="http://www.zotero.org/styles/elsevier-with-titles"/>
<author>
<name>Richard Karnesky</name>
<email>karnesky+zotero@gmail.com</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</author>
<contributor>
<name>Rintze Zelle</name>
<uri>http://forums.zotero.org/account/831/</uri>
</contributor>
<category term="generic-base"/>
<category term="numeric"/>
<updated>2008-11-11T20:34:47+00:00</updated>
<summary>A style for many of Elsevier's journals that includes article titles in the reference list</summary>
<link href="http://www.zotero.org/styles/elsevier-without-titles.csl" rel="template"/>
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/</rights>
</info>
<macro name="author">
<names variable="author">
<name initialize-with="." delimiter=", " name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="." delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all"/>
<label form="short" prefix=" (" text-case="capitalize-first" suffix=".)"/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
</else>
</choose>
</macro>
<macro name="publisher">
<text variable="publisher-place" suffix=", "/>
<text variable="publisher" suffix=" "/>
<text macro="year-date" prefix="(" suffix=")"/>
</macro>
<macro name="edition">
<!--TODO: CSL should have low numeric be text (e.g. '3'->'third')-->
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=", ">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<option name="entry-spacing" value="0"/>
<option name="second-field-align" value="true"/>
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" prefix=" " suffix=". "/>
<choose>
<if type="book">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text macro="edition"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text variable="volume" font-weight="bold" suffix=","/>
<text macro="edition" suffix=","/>
<text macro="publisher"/>
<text variable="page" />
</group>
</else-if>
<else-if type="patent">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="number" font-weight="bold"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="genre" suffix="."/>
<text variable="publisher"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text variable="page" />
</group>
</else-if>
<else-if type="speech">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="genre" suffix="."/>
<text variable="publisher"/>
<text variable="publisher-place"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
</else-if>
<else-if type="webpage">
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text value="Disponible sur:"/>
<text variable="URL" prefix="<" suffix=">" />
<text macro="year-date" prefix="(date de consultation: " suffix=")"/>
</group>
</else-if>
<else>
<group delimiter=" ">
<text variable="title" font-style="italic" suffix="."/>
<text variable="container-title" form="short" text-case="title" suffix=","/>
<text variable="volume" font-weight="bold"/>
<text macro="year-date" prefix="(" suffix=")"/>
<text variable="page" />
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
My problems are the following :
- I don't know how to cite the assignees for the patents,
- Always about the patents, the date is not cited whereas in the .csl there is, I think, the good command,
- If there are only 2 authors in my reference, there is no comma between each of them (e.g. : "M. Barsoum T. El-Raghy" instead of "M. Barsoum, T. El-Raghy"). There is no problem when there are 3 or more names,
- Eventually, the cited names contain only the first letter of the first name, and I would like all the field related to the first name is cited.
By advance, thank you for your help !
To get full first names, you want to take out the initialize-with option entirely.
So the name line would read something like
<name name-as-sort-order="all" sort-separator=", "
delimiter-precedes-last="always" delimiter=", "/>
Before all, I'd like to thank you for your help.
So, I'm pleased to say you that you resolved my problem with the author's names. In fact, my very need was rather:
<name delimiter-precedes-last="always" delimiter=", " name-as-sort-order="all" />
To have something as "M.W. Barsoum, T. El-Raghy".
Otherwise, as I'm not English I don't really undertand your question about the fields of patents. In my patent entries, the field in Zotero (in Firefox) related to the date is filled, but with the .csl I exposed you yesterday, my bibliography inside my document does not have the date, and this is only for patents (for other categories, everything is OK). Do I answer to your question ?
Eventually, about the assignee of the patents, it seems that the XML langage proposed by Zotero team does not take this field into account, but perhaps I'm wrong...
For the date: Zotero uses what's in the "Issue Date" field, not what's in the "Date" field for patents. I don't think you can access the date field. (yes, I find that weird, too).
Otherwise, my citation style may be actually used by other persons. So, how can make it available?
Some last questions:
- have you any idea how to get round my "assignee" problem?
- is it possible to program undividable spaces before ":"?
In French, the rule is a space before ":" ";" "!", etc. and I do not want my ":" to be in other line than the word before. As I don't know if my English is correct, an example:
I would like something like:
"Date de consultation :
2009"
And not:
"Date de consultation
: 2009"
Is it possible ?
the emergency is always to use the extra field (called by text variable="note") but that seems a bad idea here.
The undividable spaces - no idea either, but maybe someone more savvy knows something on this. It seems like this should be possible, but the developers were clearly thinking in English when they developed the current csl, and in English that's not a case that ever occurs. If this isn't possible, you should try to raise it with the people working on csl 1.0 (Frank Bennett here on the forum)
http://forums.zotero.org/discussion/4738/french-citation-style-style-de-citation-en-francais/
So, you just have to write the unicode
& # x 0 A 0 ;
without the spaces, each time you want an individable space.