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.

Dr. Chubaty is an ecologist, simulation modeller, and co-developer of the
open source SpaDES simulation platform. He completed his PhD at Simon
Fraser University modelling host selection in mountain pine beetle (MPB),
and postdoctoral research at Université Laval and Natural Resources Canada
developing forecasting models of MPB spread.
He currently operates FOR-CAST Research & Analytics in Calgary, Canada, which supports the development and integration of models simulating forest vegetation dynamics, wildfire, insect disturbance, and wildlife populations to inform decision making for land management and species at risk. He is an advocate for open source, open data, and reproducible workflows.