Mendeley uses the Citation Style Language v1.0 to format citations and bibliographies in our Word and OpenOffice plugins. Although we provide styles for 1000+ journals, we realize this isn’t enough for everyone. If you need to customize a citation style and are not scared of editing a little XML (it’s actually not that difficult), read on…
Default styles location
After first installing Mendeley Desktop, 15 commonly used .csl files are placed in the following location: (may differ depending on your system configuration)
C:Program FilesMendeley DesktopcitationStyles-1.0
- GNU/Linux with Debian packages
Custom styles location
To search for more styles, go to the View menu and choose Citation Style -> More Styles….
These additional style files will be placed here: (may differ depending on your system configuration)
- Windows Vista and Windows 7
C:Users<USER_NAME>AppDataLocalMendeley LtdMendeley Desktop citationStyles-1.0
C:Documents and Settings<USER_NAME>Local SettingsApplication Data
Mendeley LtdMendeley DesktopcitationStyles-1.0
~/.local/share/data/Mendeley Ltd./Mendeley Desktop/citationStyles-1.0
/Users/<USER_NAME>/Library/Application Support/Mendeley Desktop/
Tutorial: Editing an existing style
Let’s say you’re writing a paper for a new conference, where the organizers have demanded you use the “American Sociological Association” style, but using square brackets instead or parentheses for in-line citations. So instead of this:
(Andersson et al. 2004)
You need to write this:
[Andersson et al. 2004]
Step 1: Create a new style file
Locate the asa.csl file by referring to the “Default styles location” above. Copy this file to the “Custom styles location” above.
NOTE: Never edit the installed files directly, always create a copy first.
Give the file a new name, say asa_custom.csl
Open the file in your favorite text editor (for Windows, try Notepad++) and change the 4th and 5th lines from:
<title>American Sociological Association</title>
<title>American Sociological Association (custom)</title>
(or something of your own choosing, the important thing is to ensure the id is unique. No two styles are allowed to have the same id, as Mendeley will not be able to load one of them)
Step 2: Customize the style formatting
Don’t worry about understanding everything in the CSL files right away. For now, just know that the bit describing the format of in-line citations starts with “<citation …>” and ends with “</citation>”, which is from line 120 to 130 in your asa_custom.csl file.
To change the parentheses to square brackets, change line 121 from:
<layout prefix=”(” suffix=”)” delimiter=”; “>
<layout prefix=”[” suffix=”]” delimiter=”; “>
Save your edited style file.
Step 3: Use the new style in Mendeley
Restart Mendeley Desktop. Open a new Word or OpenOffice document and select “More Styles…” from the citation style drop-down box. In the dialog that appears you should select “American Sociological Association (custom)” and click Use this Style and then click Done.
Congratulations! You can now cite in your custom style. Here’s a short video showing the process.
To learn more about editing CSL files, check out the official guide as well as reading and experimenting with the styles included with Mendeley (but remember to create copies first as in step 1!) If you’d like more tutorials going into more depth on CSL, please drop us a comment below.
We plan to make the process of editing styles simpler in future, and to expand our database of downloadable citation styles.
I have been using the Global Biochemical Cycles citation style. Several months ago, when I was preparing this paper for initial submission, zotero rendered authors styles in the format [Kwon et al. 2009], with square brackets. Now, it renders them with parentheses (Kwon et al. 2009).
Between when things were working normally and now, I have switched to Zotero 5 standalone from the Zotero 4 Firefox addon (the problem could be unrelated though, I don't have a version of zotero4 to compare against). I checked with the AGU citation style and got the same behaviour. Indeed, I also get this behaviour with the Elsevier Vancouver author-date, which according to this post https://forums.zotero.org/discussion/36537/text-references-with-square-brackets should also use square brackets. I've tested this on both my windows virtual box and on a host linux system with the same behaviour. I also get this same behaviour if I go into Zotero and try to export a bibliography from item and then click citation.
Any ideas about what could be going on?
I thought I could perhaps remedy this problem for myself by modifying the .csl stile-sheet, but it looks like the stylesheet for GBC just has some links to data elsewhere on the internet, rather than containing the specifications itself. Is there a correct way to modify such citations? They seem very mysterious to me.
Happy to provide any other information as requested. Thanks!