Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some journals will not abbreviate due to "&" vs. "and" conflict #9

Open
ahesse2567 opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@ahesse2567
Copy link

While using Zotero, Quarto, and RStudio to write a manuscript that required abbreviated journal names, I discovered that certain journals weren't converting to their abbreviated form as expected. For example, the "Strength & Conditioning Journal" was supposed to convert to "Strength Cond J". My .bib file formatted the journal name as "Strength & Conditioning Journal", while the nbci-abbreviations.json file documented that journal as the "Strength and conditioning journal" (note the "and" instead of an ampersand &). I manually changed my .bib file to "Strength & Conditioning Journal" and the rendered output properly abbreviated the journal name in the bibliography as "Strength Cond J".

I can manually edit the JSON file for my personal needs, but it may be worth adding new lines to the JSON file so there are versions using "and" and other versions using "&" so more journals abbreviate as expected. In this case, the JSON would look like:

"Strength and conditioning journal": "Strength Cond J",
"Strength & conditioning journal": "Strength Cond J",

Here's what my .bib file looks like:

@article{mcguigan2004,
   title = {A New Approach to Monitoring Resistance Training},
   author = {McGuigan, Michael R. and Foster, Carl},
   year = {2004},
   date = {2004},
   journal = {Strength & Conditioning Journal},
   volume = {26},
   number = {6},
   url = {https://journals.lww.com/nsca-scj/fulltext/2004/12000/a_new_approach_to_monitoring_resistance_training.8.aspx}
}

@article{mcguigan2004,
   title = {A New Approach to Monitoring Resistance Training},
   author = {McGuigan, Michael R. and Foster, Carl},
   year = {2004},
   date = {2004},
   journal = {Strength and Conditioning Journal},
   volume = {26},
   number = {6},
   url = {https://journals.lww.com/nsca-scj/fulltext/2004/12000/a_new_approach_to_monitoring_resistance_training.8.aspx}
}

To reproduce this in Quarto, your YAML header or file needs to contain

citation-abbreviations: "path/to/json_abbreviation_file.json"

I was using the Thieme-German (Deutsch) .csl file.

I tried running a script to do this myself, but I'm fairly new to working with JSON, so I couldn't quite get there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant