Use (PMID) instead of citation numbers

Hi,

An editor requested I use PMID numbers, formatted as (PMID:123234) instead of citation numbers within my article text. They then convert these to pubmed links.

Currently I am using National Library of Medicine (grant proposals with PMCID/PMID) as a citation style and manually replacing the citation numbers in the text with plain text PMID numbers, so the links between them and the bibliography are lost.

Now edits have been requested, and to avoid doing things manually I would like to have a citation style especially for this purpose.

I am a complete programming beginner but can follow simple instructions.

Cheers
  • edited April 21, 2022
    Line 264+272, change to:
    <text variable="PMID" prefix="PMID:" />
    and
    <text variable="PMID" prefix="PMID:" suffix=". "/>

    General instructions you'll need to follow: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
  • Thanks for the reply!

    I managed to change the style, it is a step in the right direction but it doesn't do what I need.
    Here is an example:
    What I have:
    Text:
    "...monocytes, macrophages and fibroblasts)^1"
    Bibliography:
    1. Unger N, Ueberberg B, Schulz S, Saeger W, Mann K, Petersenn S. Differential expression of somatostatin receptor subtype 1-5 proteins in numerous human normal tissues. Exp Clin Endocrinol Diabetes Off J Ger Soc Endocrinol Ger Diabetes Assoc. 2012 Sep;120(8):482–489. PMID: 22976314

    What I need:
    "...monocytes, macrophages and fibroblasts) (PMID:22976314)"
    Bibliography:
    1. Unger N, Ueberberg B, Schulz S, Saeger W, Mann K, Petersenn S. Differential expression of somatostatin receptor subtype 1-5 proteins in numerous human normal tissues. Exp Clin Endocrinol Diabetes Off J Ger Soc Endocrinol Ger Diabetes Assoc. 2012 Sep;120(8):482–489. PMID: 22976314

    Thank you for your help!
  • sorry, line 267, not 264 needs to be changed.
  • So in other words, you're replacing
    <text variable="citation-number"/> by the above
  • Thank you that mostly did it!

    One more thing though, in the text citations appear as superscript, I would need them as plain text, can you give me some code to change this too?

    Thanks!
  • Remove vertical-align="sup" which is in the line starting with <layout just a couple of lines above where you switched the text.
  • That's set on the line with starting with "layout" 1-2 lines above with the vertical-align attribute. Delete that
  • Thank you for all your help, everything woks now as expected!

    Cheers
  • Would you mind sharing this style on the zotero repository so I can download it?
Sign In or Register to comment.