New style: Applied Spectroscopy

I'm new to this, but I have made a new style for the journal "Applied Spectroscopy". The style guide is listed at http://s-a-s.org/authguide/ in both html and pdf form. I haven't added anything for reports or presentations, but unpublished work isn't accepted as references by Applied Spectroscopy anyways.

I don't have a TRAC account, so I wasn't able to contribute the csl directly... I have included the code below. It's a bit of a hack job- so please help me to clean it up! For what it's worth, it's fairly confusing that the zotero styles don't conform to the Citation Style Language 1.0 specification... I'm not sure what version zotero conforms to- it would be helpful if the CSL version was listed on the creating citation styles page (http://www.zotero.org/support/dev/creating_citation_styles).

Thanks,
Francis

------------ AppliedSpectroscopy.csl -------------


<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>Applied Spectroscopy</title>
<id>http://www.zotero.org/styles/applied-spectroscopy</id>;
<link href="http://www.zotero.org/styles/applied-spectroscopy"/>
<author>
<name>Francis Esmonde-White</name>
<email>francis@esmonde-white.com</email>
<uri>http://forums.zotero.org/account/327369/</uri>;
</author>
<category term="numeric"/>
<category term="chemistry"/>
<category term="science"/>
<issn>0003-7028</issn>
<updated>2010-09-16T17:51:00+00:00</updated>
<link href="http://www.s-a-s.org/authguide/" rel="documentation"/>
<summary>Style for Applied Spectroscopy</summary>
<rights>This work is licensed under a Creative Commons
Attribution-Share Alike 3.0 Unported License
http://creativecommons.org/licenses/by-sa/3.0/</rights>;
</info>
<macro name="author">
<names variable="author">
<name initialize-with="." and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="contextual"/>
<label form="short" prefix=", " suffix="." text-case="capitalize-first"/>
<substitute>
<text macro="editor"/>
<text macro="translator"/>
</substitute>
</names>
<text macro="recipient" prefix=". "/>
</macro>
<macro name="access">
<text variable="URL"/>
</macro>
<macro name="contributors">
<names variable="author">
<name initialize-with="." and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="contextual"/>
<substitute>
<text macro="editor"/>
<text macro="translator"/>
</substitute>
</names>
<text macro="recipient" prefix=". "/>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="." and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="contextual"/>
<label form="short" prefix=", " suffix="." text-case="capitalize-first"/>
</names>
</macro>
<macro name="translator">
<names variable="translator">
<name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<label form="verb-short" prefix=", " suffix="."/>
</names>
</macro>
<macro name="recipient-note">
<names variable="recipient" delimiter=", ">
<label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="recipient">
<choose>
<if type="personal_communication">
<choose>
<if variable="genre">
<text variable="genre" text-case="capitalize-first"/>
</if>
<else>
<text term="letter" text-case="capitalize-first"/>
</else>
</choose>
</if>
</choose>
<text macro="recipient-note" prefix=" "/>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="volume">
<text variable="volume" prefix="vol. "/>
</macro>
<macro name="pages">
<label variable="page" form="short" suffix=". "/>
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text variable="title" quotes="true" suffix=", "/>
<text term="in"/>
<text variable="container-title" font-style="italic" suffix=", "/>
<text macro="editor"/>
</group>
</macro>
<macro name="issued">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
</date>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>

<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter=", " vertical-align="sup">
<text variable="citation-number" />
</layout>
</citation>

<bibliography>
<option name="second-field-align" value="margin"/>
<layout suffix=".">
<text variable="citation-number" suffix=". "/>
<group delimiter=". ">
<text macro="author" suffix=", "/>
</group>
<choose>
<if type="book">
<text macro="title" font-style="italic" suffix=" "/>
<group delimiter=" ">
<group class="container" prefix="(" suffix=")" delimiter=", ">
<text macro="editor" prefix=" "/>
<text macro="publisher" />
<text macro="issued"/>
</group>
<text macro="edition" prefix=", "/>
</group>
</if>
<else-if type="chapter">
<group class="container" delimiter=" ">
<text macro="book-container"/>
<group class="container" prefix="(" suffix=")," delimiter=", ">
<text macro="publisher" />
<text macro="issued"/>
</group>
<text macro="pages"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=", ">
<text variable="genre"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
</group>
</else-if>
<else>
<group delimiter=" ">
<text variable="container-title" form="short"/>
<group delimiter="">
<text variable="volume" font-weight="bold" suffix=", "/>
<text variable="issue" suffix=", "/>
<text variable="page" suffix=" " />
<text macro="issued" prefix="(" suffix=")"/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
  • I noticed that other people have uploaded styles to github, from which adamsmith seems to be the one to put them into the CSL repository - it's not clear in the style creation guide how users are expected to upload styles.

    Here is the csl file for Applied Spectroscopy:

    http://gist.github.com/584619

    Thanks!
  • thanks - Zotero uses CSL 0.8 and will switch to CSL1.0 in the 2.1 version, currently in beta.
    Uploading to github (or something comparable) is the easiest way to go, yes. You're right, we should add better instructions, people are just a little stretched thin at the moment.
  • Does it take a long time for the new Style to appear on the styles repository? There seems to be a problem with github at the moment, if you would like my to send the csl file via another method, please let me know.
  • no, I'm just busy, will get to this today.
  • OK, it's up and will show up on the repository within 24hs - usually much faster.
    I took out delimiter-precedes-last="contextual" - this doesn't exist as a term in 0.8 but is still the default setting, so by just removing the line this should be fine and work in both 0.8 and 1.0.
Sign In or Register to comment.