Skip to Main Content

Zotero

Citation Style Language (CSL)

Citation Style Language is used by quite a few citation generators and bibliographic management software, not just Zotero.

1) Find out if your style already exists

2) Edit/Create your own style

Additional Instructions below.

3) Use/Share your style

You may have created this mostly for yourself or a small group, and that's great! Styles saved local or emailed to other people can be uploaded to individual Zotero users. But if you want to submit your style to be shared with the world, Zotero has a process for that.

Editing the Code

The Visual CSL Editor is where most people start, and it can accomplish most things you'll need.

1) Get Started

There are three ways to get started, listed here in order of preference:

  • Search in the "Search by name" section of the site to find a style that's similar to the one you want to create. Then click "Edit" to edit that style.
    undefined
  • In the Visual Editor, click on Style > Upload Style to upload an existing csl file that you want to edit.
  • In the Visual Editor, click on Style > New Style to create a style from scratch.
The instructions here assume that you will be editing an existing style rather than creating one from scratch.

2) Edit the Style Infoundefined

  1. In the Navigation column, click on "Style Info"
  2. Add/Update the style Title so that you and other style users will know what the style is and how it's different from similar styles.
  3. Add your name as a Contributor to the style.

3) Edit the Style itself

  1. Use the Navigation column to open up the sections that you want to edit.
    • In "Style Info" the "Global Formatting Options" govern many things about your style, including whether to use footnotes or in-text citations, whether bibliographies should use a hanging indent, etc.
    • The "Inline Citations" section will govern how citations will appear in a written document, whether as footnotes or as parenthetical in-text citations.
    • The "bibliography" section governs how citations will appear in a bibliography.
    • "Macros" are units of code that can be used multiple times (for example, how to format an author's name, which will then be used in Inline citations as well as bibliographies).
    • The "Advanced" section gives a few more options for global formatting, inline citations, bibliographies, and macros.
  2. Be aware that you can open up the nested elements on the navigation panel to drill down to more and more specific elements of the style design.

4) Save the Styleundefined

  1. When you are done editing your style, click Style > Save Style.
  2. You will need to click the button that says "Download Style" near the top of the style saving dialog box.
  3. Click through any default options or notifications that it presents and then save the style to your computer.

Your style is now available to you to upload to your installation of Zotero. You can also share the style (by email, Google Drive, etc) with other people. If you want to share the style more broadly, submit it for review and inclusion in the Zotero Style Repository.

Sometimes you can't do what you need to do using the Visual Editor alone. In these cases the Code Editor gives you that freedom to tweak your style even more. However, you will need to be able to understand the code language.

Below you can see an example of the Code Editor page. Any changes you make to the code at the bottom half of the page updates in the example on the top half.

Example: Adjusting APA style

In this example, we added font-weight="bold" and font-style="italic" to the end of the line text variable="publisher-place" you can see that the location of the publisher has become bolded and italicized.

 

You can copy the code and then paste it into the Zotero Style Editor (Zotero>Tools>Preferences>General>Open Style Editor). Save it as a new style, and now you can use your personalized citation style!