Custom Citation Styles in Mendeley
I’m an avid user of Mendeley citation management software (CMS), and am pleased with the capabilities of this cross-platform, open-source, and free referencing tool. However, one limitation I’ve encountered is that it does not have very many citiation styles preinstalled, and although many additional formats are available to download through the Mendeley interface, it does not (yet) provide a built-in style editor to customize citiation styles.
Fortunately, Mendeley uses Citation Style Language v1.0 (CSL) which is also used by Zotero and other CMSs, so not only is it possible to find thousands more citiation styles (e.g., using the Zotero Style Repository), but it’s also easy to create custom CSL files!
This tutorial on the Mendeley blog shows you the basics, although note that for Windows 7, the custom style directory is actually located at
C:\Users\<USERNAME>\AppData\Local\Mendeley Ltd\Mendeley Desktop\citationStyles-1.0
Using the Vancouver style as a template, I easily created a custom citation style for the Open Forest Science Journal, which required modifying a copy of the vancouver.csl file:
To get the numbered citations in text to be displayed using square brackets “[]” rather than round brackets “()”, I changed line 120 from:
<layout prefix="(" suffix=")" delimiter=",">
to
<layout prefix="[" suffix="]" delimiter=",">
Also, to get the square brackets to show up around the numbers in the bibliography I changed line 126 from:
<text variable="citation-number" suffix=". "/>
to
<text variable="citation-number" prefix="[" suffix="] "/>
That’s it! Pretty simple stuff. You can download the modified file here: open-forest-science-journal.