Need help modifying style for Obstetrics & Gynecology

I am formatting a manuscript for Obstetrics & Gynecology, which uses a citation style similar to JAMA but with references identified with numbers in parentheses. Current JAMA citation style uses superscript reference style.

I'd like to edit a citation style on my own but have no idea how to do it. I managed to get the code into the Zotero Style Editor, but I don't know how to change a style from superscript to standard script in parentheses.

Can anyone help me? The JAMA code I am trying to modify to O&G style is below.

Thanks,
Jennifer


<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" default-locale="en-US">
<info>
<title>JAMA (The Journal of the American Medical Association)</title>
<title-short>JAMA</title-short>
<id>http://www.zotero.org/styles/jama</id>;
<link href="http://www.zotero.org/styles/jama" rel="self"/>
<link href="http://www.zotero.org/styles/american-medical-association" rel="independent-parent"/>
<link href="http://jama.jamanetwork.com/public/instructionsForAuthors.aspx#ManuscriptPreparationandSubmissionRequirements" rel="documentation"/>
<category citation-format="numeric"/>
<category field="medicine"/>
<issn>0098-7484</issn>
<eissn>1538-3598</eissn>
<updated>2013-06-03T16:58:03+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
</style>
  • That is an dependent style (i.e. a redirect) which points to http://www.zotero.org/styles/american-medical-association . That is the style you want to edit. There is a step-by-step guide for editing CLS styles, which might become useful for you.
  • All I need to do is change the citation style from a superscript to a number in parentheses. I don't see specific documentation on how to code that. Can anyone help?

    Thanks,
    Jennifer
  • change
    <citation collapse="citation-number">
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout vertical-align="sup" delimiter=",">
    <text variable="citation-number"/>
    </layout>
    </citation>


    to

    <citation collapse="citation-number">
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter=",">
    <text variable="citation-number"/>
    </layout>
    </citation>
  • Thanks! I successfully changed the code and tested in the editing pane. Now, how do I install this custom style into my Zotero style library?

    Jennifer
  • the link by zuphilip has all the details on that. If anything isn't clear, we'd need to know what.
  • Hi Jennifer,
    Did you manage to prepare the style for Obstetrics & Gynecology? Do you think I could use it?
    Thanks
    Oleguer
Sign In or Register to comment.