How to put brackets in a text in bold

Hello,


I would like to know if it is possible to put the brackets of a citation in a text, in bold ?

Example of the text :

From : Sentence ABCD.[1] to : Sentence ABCD. [1 in bold ]


The style I'm using is : https://www.zotero.org/styles?q=id:vancouver-brackets

Its source : https://www.zotero.org/styles/vancouver-brackets?source=1


Thank you in advance !
  • edited May 6, 2020
    Any idea please ?
  • Just the brackets?

    for vancouver-brackets.csl you'd change the citation part to this:


    <citation collapse="citation-number">
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout font-weight="bold" delimiter="," prefix="[" suffix="]">
    <text variable="citation-number" font-weight="normal"/>
    </layout>
    </citation>


    If the brackets AND the number then you just remove the font-weight "normal" bit.

    instructions how to make these changes: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step

    Make sure to read the whole thing and follow it. Especially, regarding the style ID.
  • edited May 6, 2020
    Hello Damnation,

    Thank you very much for your answer !

    Could you please tell me if this code is correct, as i tried to remove "normal" in order to have both brackets and numbers in bold.


    <citation collapse="citation-number">
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout font-weight="bold" delimiter="," prefix="[" suffix="]">
    <text variable="citation-number" font-weight=/>
    </layout>
    </citation>
  • To show code you'll need to put it in code html brackets. Otherwise we can't see it.
  • Sorry, I'm new at this. It's appearing now.
  • Well done.

    Youl also need to remove "font-weight=".

    Test your code with: validator.citationstyles.org/
  • It works !

    Here is the code if anyone needs it :

    <citation collapse="citation-number">
    <sort>
    <key variable="citation-number"/>
    </sort>
    <layout font-weight="bold" delimiter="," prefix="[" suffix="]">
    <text variable="citation-number"/>
    </layout>
    </citation>



    Would it be possible to have a space before the brackets so they don't stick to the sentence?


    Thank you !
  • Change prefix="[" to prefix=" ["
  • Perfect.

    Thank you @bwiernik and @damnation !
Sign In or Register to comment.