Adapation IEEE

Hello everyone,

I would like to customise the IEEE citation style so that the numbers are displayed in a parenthesis, e.g. [1, 3, 7](see image). Currently, each number is displayed in a single parenthesis, for example: [1], [2], [3](see image 2). In addition, consecutive numbers should be summarised [1], [2], [3] should then become [1-3].
Can anyone help me here?
Thank you.
https://s3.amazonaws.com/zotero.org/images/forums/u14885939/cavrc4s2yxfutgqrq47g.png
https://s3.amazonaws.com/zotero.org/images/forums/u14885939/8rmo7h84slw8vwkgybxm.png
  • Is this for a specific journal?
  • no, its for my master thesis
  • edited August 28, 2024
    Change this:
    <citation>
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout delimiter=", ">
    <group prefix="[" suffix="]" delimiter=", ">
    <text variable="citation-number"/>
    <text macro="citation-locator"/>
    </group>
    </layout>
    </citation>


    to this:
    <citation>
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout delimiter="," prefix="[" suffix="]">
    <group delimiter=", ">
    <text variable="citation-number"/>
    <text macro="citation-locator"/>
    </group>
    </layout>
    </citation>


    Follow this guide, otherwise your style will be overwritten: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
  • Perfect, thank you
  • Hello!

    I come because I have the same problem. Thank you so much damnation for your response.

    I paste your code part to replace the citation part of IEEE CSL file and it works for the group delimiter.
    But it is possible to group the number when the citation number are following each other like nowa6656 asked please? I mean for replace "[1, 2, 3, 4, 5]" by "[1-5]"?

    Thanks in advance!
  • Add " collapse="citation-number" to the line that starts with "citation".
  • Thank you very much!
Sign In or Register to comment.