Custom Citation Styles in Mendeley

Nov 7, 2011 · 2 min read
posts

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.

Alex M Chubaty
Authors
Ecologist and simulation modeller

Dr. Chubaty is an ecologist and simulation modeller who builds spatial models of forest landscapes and the species that live in them. He completed his PhD at Simon Fraser University modelling host selection in mountain pine beetle (MPB), followed by postdoctoral research at Université Laval and Natural Resources Canada developing forecasting models of MPB spread.

He runs FOR-CAST Research & Analytics in Calgary, Canada. His recent work includes LANDIS-II forest landscape simulation studies, landscape connectivity modelling, and analyses of insect outbreak dynamics, to inform land management and species-at-risk decisions. He writes open-source R packages for this work, including grainscape for connectivity analysis, landisutils for LANDIS-II simulations, and co-developed the SpaDES simulation platform. He advocates for open data and reproducible workflows.